summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
Commit message (Collapse)AuthorAgeFilesLines
* initialize map/filter/zip in _PyBuiltin_Init rather than the catch-all functionBenjamin Peterson2012-10-311-9/+0
|
* merge 3.3 (#16369)Benjamin Peterson2012-10-311-0/+24
|\
| * merge 3.2 (#16369)Benjamin Peterson2012-10-311-0/+24
| |\
| | * initialize more global type objects (closes #16369)Benjamin Peterson2012-10-311-0/+24
| | |
| | * Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-051-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Added notimplemented_dealloc for better error reportingArmin Ronacher2012-10-061-1/+10
|/ /
* | Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-051-0/+37
| | | | | | | | | | | | | | | | | | | | | | 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 #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm2012-06-221-0/+12
| | | | | | | | allocation issues
* | Eric Snow's implementation of PEP 421.Barry Warsaw2012-06-031-0/+3
| | | | | | | | Issue 14673: Add sys.implementation
* | Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-231-23/+4
| | | | | | | | Patch from Mark Shannon.
* | merge 3.2 (#14509)Benjamin Peterson2012-04-091-0/+2
|\ \ | |/
* | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou2012-04-041-0/+13
| | | | | | | | the stable ABI.
* | Micro-optimize PyObject_GetAttrString()Victor Stinner2012-03-221-1/+1
| | | | | | | | w cannot be NULL so use Py_DECREF() instead of Py_XDECREF().
* | refactor and avoid warningsBenjamin Peterson2012-03-091-7/+5
| |
* | Issue #14211: _PyObject_GenericSetAttrWithDict() keeps a strong reference toVictor Stinner2012-03-081-4/+5
| | | | | | | | | | the descriptor because it may be destroyed before being used, destroyed during the update of the dict for example.
* | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+1
|\ \ | |/
* | Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-1/+12
|\ \ | |/
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-0/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 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/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | add generic implementation of a __dict__ descriptor for C typesBenjamin Peterson2012-02-201-0/+42
| | |
* | | use the static identifier api for looking up special methodsBenjamin Peterson2012-01-221-4/+4
| | | | | | | | | | | | | | | I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
* | | Consolidate the occurrances of the prime used as the multiplier when hashing.Gregory P. Smith2012-01-141-1/+1
|\ \ \ | |/ /
* | | improve abstract property support (closes #11610)Benjamin Peterson2011-12-151-0/+23
| | | | | | | | | | | | Thanks to Darren Dale for patch.
* | | Fix PyObject_Repr(): don't call PyUnicode_READY() if res is NULLVictor Stinner2011-12-011-1/+3
| | |
* | | PyObject_Repr() ensures that the result is a ready Unicode stringVictor Stinner2011-12-011-0/+8
| | | | | | | | | | | | | | | And PyObject_Str() and PyObject_Repr() don't make strings ready in debug mode to ensure that the caller makes the string ready before using it.
* | | Issue #13411: memoryview objects are now hashable when the underlying object ↵Antoine Pitrou2011-11-211-0/+15
| | | | | | | | | | | | is hashable.
* | | PyObject_Str() ensures that the result string is readyVictor Stinner2011-11-201-0/+5
| | | | | | | | | | | | | | | | | | | | | and check the string consistency. _PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be possible to call this function even if hash(str) was already called.
* | | Make _PyUnicode_FromId return borrowed references.Martin v. Löwis2011-11-071-6/+3
| | | | | | | | | | | | http://mail.python.org/pipermail/python-dev/2011-November/114347.html
* | | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-0/+36
| | | | | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | | Implement PEP 393.Martin v. Löwis2011-09-281-8/+2
| | |
* | | merge 3.2Benjamin Peterson2011-09-011-0/+3
|\ \ \ | |/ /
| * | make sure to initialize the method wrapper typeBenjamin Peterson2011-09-011-0/+3
| | |
* | | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-111-2/+1
| | | | | | | | | | | | The macro was introduced in #12724.
* | | merge 3.2Benjamin Peterson2011-07-301-3/+0
|\ \ \ | |/ /
| * | remove duplicated type readyBenjamin Peterson2011-07-301-3/+0
| | |
* | | also make NotImplementedType callableBenjamin Peterson2011-07-291-0/+35
| | |
* | | make the types of None and Ellipsis callableBenjamin Peterson2011-07-291-0/+34
| | |
* | | Issue 12647: Add __bool__() method to the None object.Raymond Hettinger2011-07-281-2/+44
| | |
* | | quaint and completely out of date commentBenjamin Peterson2011-06-111-3/+2
| | |
* | | allow __dir__ to return any sequenceBenjamin Peterson2011-06-111-30/+15
| | |
* | | move specialized dir implementations into __dir__ methods (closes #12166)Benjamin Peterson2011-05-241-177/+18
| | |
* | | merge 3.2Benjamin Peterson2011-05-231-5/+6
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-05-231-5/+6
| |\ \ | | |/
| | * correctly lookup __dir__Benjamin Peterson2011-05-231-5/+6
| | |
| | * Merged revisions 84717 via svnmerge fromBenjamin Peterson2010-09-111-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84717 | benjamin.peterson | 2010-09-11 11:39:57 -0500 (Sat, 11 Sep 2010) | 1 line fix formatting ........
| | * Merged revisions 84344 via svnmerge fromAntoine Pitrou2010-08-281-48/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........
| | * Merged revisions 83184 via svnmerge fromAntoine Pitrou2010-07-271-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83184 | antoine.pitrou | 2010-07-28 00:08:27 +0200 (mer., 28 juil. 2010) | 3 lines Issue #9294: remove dead code in Objects/object.c. Patch by Grant Limberg. ........
| | * Merged revisions 81250-81253 via svnmerge fromVictor Stinner2010-05-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81250 | victor.stinner | 2010-05-17 03:13:37 +0200 (lun., 17 mai 2010) | 2 lines Issue #6697: Fix a crash if code of "python -c code" contains surrogates ........ r81251 | victor.stinner | 2010-05-17 03:26:01 +0200 (lun., 17 mai 2010) | 3 lines PyObject_Dump() encodes unicode objects to utf8 with backslashreplace (instead of strict) error handler to escape surrogates ........ r81252 | victor.stinner | 2010-05-17 10:58:51 +0200 (lun., 17 mai 2010) | 6 lines handle_system_exit() flushs files to warranty the output order PyObject_Print() writes into the C object stderr, whereas PySys_WriteStderr() writes into the Python object sys.stderr. Each object has its own buffer, so call sys.stderr.flush() and fflush(stderr). ........ r81253 | victor.stinner | 2010-05-17 11:33:42 +0200 (lun., 17 mai 2010) | 6 lines Fix refleak in internal_print() introduced by myself in r81251 _PyUnicode_AsDefaultEncodedString() uses a magical PyUnicode attribute to automatically destroy PyUnicode_EncodeUTF8() result when the unicode string is destroyed. ........
| | * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-1221/+1221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........ ................