From 23a28ed730099b4e5332310a845ef33b911f3d16 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 13 Nov 2024 14:55:22 -0500 Subject: [PATCH] gh-125063: Document that slices can be marshalled --- Doc/library/marshal.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst index 9e4606df0f774e..3116b2f930d7df 100644 --- a/Doc/library/marshal.rst +++ b/Doc/library/marshal.rst @@ -44,9 +44,9 @@ Not all Python object types are supported; in general, only objects whose value is independent from a particular invocation of Python can be written and read by this module. The following types are supported: booleans, integers, floating-point numbers, complex numbers, strings, bytes, bytearrays, tuples, lists, sets, -frozensets, dictionaries, and code objects (if *allow_code* is true), +frozensets, dictionaries, slices, and code objects (if *allow_code* is true), where it should be understood that -tuples, lists, sets, frozensets and dictionaries are only supported as long as +tuples, lists, sets, frozensets, dictionaries, and slices are only supported as long as the values contained therein are themselves supported. The singletons :const:`None`, :const:`Ellipsis` and :exc:`StopIteration` can also be marshalled and unmarshalled. @@ -154,4 +154,3 @@ In addition, the following constants are defined: around in a self-contained form. Strictly speaking, "to marshal" means to convert some data from internal to external form (in an RPC buffer for instance) and "unmarshalling" for the reverse process. -