mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
@ -1459,7 +1459,7 @@ static PyNumberMethods none_as_number = {
|
|||
0, /* nb_index */
|
||||
};
|
||||
|
||||
static PyTypeObject PyNone_Type = {
|
||||
PyTypeObject PyNone_Type = {
|
||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||
"NoneType",
|
||||
0,
|
||||
|
@ -1524,7 +1524,7 @@ notimplemented_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
Py_RETURN_NOTIMPLEMENTED;
|
||||
}
|
||||
|
||||
static PyTypeObject PyNotImplemented_Type = {
|
||||
PyTypeObject PyNotImplemented_Type = {
|
||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||
"NotImplementedType",
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue