mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Issue #6477: Added support for pickling the types of built-in singletons.
This commit is contained in:
parent
f8ceb04fcf
commit
19b6fa6ebb
6 changed files with 58 additions and 4 deletions
|
@ -831,6 +831,9 @@ they can have object code that is not dependent on Python compilation flags.
|
|||
PyAPI_FUNC(void) Py_IncRef(PyObject *);
|
||||
PyAPI_FUNC(void) Py_DecRef(PyObject *);
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyNone_Type;
|
||||
PyAPI_DATA(PyTypeObject) PyNotImplemented_Type;
|
||||
|
||||
/*
|
||||
_Py_NoneStruct is an object of undefined type which can be used in contexts
|
||||
where NULL (nil) is not suitable (since NULL often means 'error').
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue