summaryrefslogtreecommitdiffstats
path: root/Objects/namespaceobject.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112)Serhiy Storchaka2019-02-251-2/+5
|
* bpo-35454: Fix miscellaneous minor issues in error handling. (#11077)Serhiy Storchaka2018-12-111-9/+9
| | | | | | * bpo-35454: Fix miscellaneous minor issues in error handling. * Fix a null pointer dereference.
* Fix misleading mentions of tp_size in comments (GH-9093)Peter Eisentraut2018-09-101-1/+1
| | | | Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
* bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵Siddhesh Poyarekar2018-04-291-1/+1
| | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument.
* bpo-31655: Validate keyword names in SimpleNamespace constructor. (#3909)Serhiy Storchaka2017-10-071-1/+5
|
* bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096)Serhiy Storchaka2017-04-191-9/+3
| | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate.
* use c++ style commentsBenjamin Peterson2016-09-071-4/+4
|
* Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka2015-05-221-4/+3
| | | | | Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
* Don't use deprecated function PyUnicode_GET_SIZE()Victor Stinner2013-11-131-1/+1
| | | | Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
* Issue #18722: Remove uses of the "register" keyword in C code.Antoine Pitrou2013-08-131-1/+1
|
* Issue #9566: Fix a compiler warning on Windows 64-bit in namespace_init()Victor Stinner2013-06-041-1/+1
| | | | | | The result type is int, return -1 to avoid a compiler warning (cast Py_ssize_t to int). PyObject_Size() can only fail with -1, and anyway a constructor should return -1 on error, not an arbitrary negative number.
* Issue #15022: Ensure all pickle protocols are supported.Eric Snow2013-02-171-1/+24
|
* Issue #15022: Add pickle and comparison support to types.SimpleNamespace.Eric Snow2013-02-161-9/+24
|
* Close #16160: Subclass support now works for types.SimpleNamespace. Thanks ↵Eric Snow2012-10-171-12/+12
| | | | to RDM for noticing.
* Eric Snow's implementation of PEP 421.Barry Warsaw2012-06-031-0/+225
Issue 14673: Add sys.implementation