summaryrefslogtreecommitdiffstats
path: root/Include/object.h
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-091-2/+2
| | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* Issue #17162: Add PyType_GetSlot.Martin v. Löwis2014-02-041-0/+3
|
* Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-4/+2
| | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* Issue #20390: Small fixes and improvements for Argument Clinic.Larry Hastings2014-01-261-2/+6
|
* Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-0/+3
| | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* Issue #19526: Exclude all new API from the stable ABI.Martin v. Löwis2014-01-031-0/+2
|
* Issue #6477: Merge with 3.3.Alexandre Vassalotti2013-12-011-2/+2
|\
| * Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private.Alexandre Vassalotti2013-12-011-2/+2
| |
* | Issue #6477: Merge with 3.3.Alexandre Vassalotti2013-12-011-0/+3
|\ \ | |/
| * Issue #6477: Added support for pickling the types of built-in singletons.Alexandre Vassalotti2013-12-011-0/+3
| |
* | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-201-17/+0
| | | | | | | | Python now uses SipHash24 on all major platforms.
* | Issue #19512, #19515: remove shared identifiers, move identifiers where theyVictor Stinner2013-11-071-8/+0
| | | | | | | | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
* | Issue #19512: add _PyUnicode_CompareWithId() functionVictor Stinner2013-11-061-2/+3
| | | | | | | | | | | | | | _PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString() when both strings are equal and interned. Add also _PyId_builtins identifier for "builtins" common string.
* | Issue #19512: add some common identifiers to only create common strings once,Victor Stinner2013-11-061-2/+10
| | | | | | | | | | | | | | instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter.
* | mergeRaymond Hettinger2013-10-011-0/+1
|\ \ | |/
| * Issue #18594: Fix the fast path for collections.Counter().Raymond Hettinger2013-10-011-0/+1
| | | | | | | | The path wasn't being taken due to an over-restrictive type check.
* | Issue #18772: fix the gdb plugin after the set implementation changesAntoine Pitrou2013-08-241-1/+0
| |
* | Issue #18112: PEP 442 implementation (safe object finalization).Antoine Pitrou2013-07-301-0/+10
| |
* | don't expand the operand to Py_XINCREF/XDECREF/CLEAR/DECREF multiple times ↵Benjamin Peterson2013-05-271-14/+20
| | | | | | | | | | | | (closes #17206) A patch from Illia Polosukhin.
* | remove unused flag (closes #16505)Benjamin Peterson2012-11-191-1/+0
| |
* | Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsignedVictor Stinner2012-10-301-21/+21
|/ | | | | | ... (unsigned long and unsigned int) to avoid an undefined behaviour with Py_TPFLAGS_TYPE_SUBCLASS ((1 << 31). PyType_GetFlags() result type is now unsigned too (unsigned long, instead of long).
* Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-051-9/+18
|\ | | | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Note that the trashcan functions are part of the stable ABI, therefore they have to be kept around for binary compatibility of extensions.
| * Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-051-9/+18
| | | | | | | | | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Because of this change, a couple extension modules compiled for 3.2.4 (those which use the trashcan mechanism, despite it being undocumented) will not be loadable by 3.2.3 and earlier. However, extension modules compiled for 3.2.3 and earlier will be loadable by 3.2.4.
* | Issue #15146: Add PyType_FromSpecWithBases. Patch by Robin Schreiber.Martin v. Löwis2012-06-231-0/+3
| |
* | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm2012-06-221-0/+8
| | | | | | | | allocation issues
* | Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-231-1/+1
| | | | | | | | Patch from Mark Shannon.
* | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou2012-04-041-0/+5
| | | | | | | | the stable ABI.
* | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-251-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and lifetime issues of dynamically allocated Py_buffer members (#9990) as well as crashes (#8305, #7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner. Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas. - Issue #12834: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays. - Issue #5231: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory.
* | merge 3.2Benjamin Peterson2012-02-211-0/+4
|\ \ | |/
| * merge 3.2Benjamin Peterson2012-02-211-0/+4
| |\
| | * ensure no one tries to hash things before the random seed is foundBenjamin Peterson2012-02-211-0/+4
| | |
* | | Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-0/+6
|\ \ \ | |/ /
| * | Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-0/+6
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Merged revisions 84344 via svnmerge fromAntoine Pitrou2010-08-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84344 | antoine.pitrou | 2010-08-28 20:17:03 +0200 (sam., 28 août 2010) | 4 lines Issue #1868: Eliminate subtle timing issues in thread-local objects by getting rid of the cached copy of thread-local attribute dictionary. ........
| | * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-253/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
* | | add generic implementation of a __dict__ descriptor for C typesBenjamin Peterson2012-02-201-0/+2
| | |
* | | use the static identifier api for looking up special methodsBenjamin Peterson2012-01-221-1/+30
| | | | | | | | | | | | | | | I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
* | | improve abstract property support (closes #11610)Benjamin Peterson2011-12-151-0/+1
| | | | | | | | | | | | Thanks to Darren Dale for patch.
* | | PEP 3155 / issue #13448: Qualified name for classes and functions.Antoine Pitrou2011-11-251-1/+1
| | |
* | | Issue #13411: memoryview objects are now hashable when the underlying object ↵Antoine Pitrou2011-11-211-0/+1
| | | | | | | | | | | | is hashable.
* | | Merge issue 1294232 patch from 3.2Nick Coghlan2011-10-231-0/+1
|\ \ \ | |/ /
| * | Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵Nick Coghlan2011-10-231-0/+1
| | | | | | | | | | | | metaclass inheritance. Patch by Daniel Urban.
* | | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-0/+4
| | | | | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | | Add Py_RETURN_NOTIMPLEMENTED macro. Fixes #12724.Brian Curtin2011-08-111-0/+4
|/ /
* | Issue #11135: Remove redundant doc field from PyType_Spec.Martin v. Löwis2011-02-111-1/+0
| | | | | | | | Reviewed by Georg Brandl.
* | Issue #11067: Add PyType_GetFlags, to support PyUnicode_CheckMartin v. Löwis2011-02-051-0/+6
| | | | | | | | in the limited ABI
* | Remove buffer API from stable ABI for now, see #10181.Martin v. Löwis2011-01-061-1/+2
| |
* | Merge branches/pep-0384.Martin v. Löwis2010-12-031-1/+47
| |
* | Issue #10293: Remove obsolete field in the PyMemoryView structure,Antoine Pitrou2010-11-041-1/+0
| | | | | | | | | | unused undocumented value PyBUF_SHADOW, and strangely-looking code in PyMemoryView_GetContiguous.