Kaydet (Commit) 67d727e8 authored tarafından Yury Selivanov's avatar Yury Selivanov

inspect.docs: Document that Signature and Parameter are now picklable (issue #20726)

üst 232b9346
...@@ -462,6 +462,9 @@ function. ...@@ -462,6 +462,9 @@ function.
Signature objects are *immutable*. Use :meth:`Signature.replace` to make a Signature objects are *immutable*. Use :meth:`Signature.replace` to make a
modified copy. modified copy.
.. versionchanged:: 3.5
Signature objects are picklable.
.. attribute:: Signature.empty .. attribute:: Signature.empty
A special class-level marker to specify absence of a return annotation. A special class-level marker to specify absence of a return annotation.
...@@ -526,6 +529,9 @@ function. ...@@ -526,6 +529,9 @@ function.
Parameter objects are *immutable*. Instead of modifying a Parameter object, Parameter objects are *immutable*. Instead of modifying a Parameter object,
you can use :meth:`Parameter.replace` to create a modified copy. you can use :meth:`Parameter.replace` to create a modified copy.
.. versionchanged:: 3.5
Parameter objects are picklable.
.. attribute:: Parameter.empty .. attribute:: Parameter.empty
A special class-level marker to specify absence of default values and A special class-level marker to specify absence of default values and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment