mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
[Issue 15476] Make "code object" its own entry in the index
This commit is contained in:
parent
a6f6edbda8
commit
e9b8403a1f
4 changed files with 8 additions and 11 deletions
|
@ -16,7 +16,6 @@ rarely does). [#]_
|
|||
.. index::
|
||||
module: pickle
|
||||
module: shelve
|
||||
object: code
|
||||
|
||||
This is not a general "persistence" module. For general persistence and
|
||||
transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
|
||||
|
@ -34,6 +33,8 @@ supports a substantially wider range of objects than marshal.
|
|||
maliciously constructed data. Never unmarshal data received from an
|
||||
untrusted or unauthenticated source.
|
||||
|
||||
.. index:: object; code, code object
|
||||
|
||||
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
|
||||
|
|
|
@ -4436,13 +4436,13 @@ attribute, you need to explicitly set it on the underlying function object::
|
|||
See :ref:`types` for more information.
|
||||
|
||||
|
||||
.. index:: object; code, code object
|
||||
|
||||
.. _bltin-code-objects:
|
||||
|
||||
Code Objects
|
||||
------------
|
||||
|
||||
.. index:: object: code
|
||||
|
||||
.. index::
|
||||
builtin: compile
|
||||
single: __code__ (function object attribute)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue