summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-4/+3
| | | | error messages and comments.
* Issue #16741: Fix an error reporting in int().Serhiy Storchaka2013-08-031-24/+5
|
* Issue #17715: Add missing NULL Check to PyNumber_Long.Mark Dickinson2013-04-131-0/+2
|
* Revert a premature patch for issue #14010 (changeset aaaf36026511).Serhiy Storchaka2013-04-061-5/+2
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-2/+5
| | | | (builting and in itertools module, i.e. map(), itertools.chain(), etc).
* Issue #16060: Fix a double DECREF in int() implementation. Thanks Serhiy ↵Mark Dickinson2012-09-271-4/+3
| | | | Storchaka.
* Merge 3.2.Stefan Krah2012-08-211-0/+7
|\
| * Issue #15736: Fix overflow in _PySequence_BytesToCharpArray().Stefan Krah2012-08-211-0/+7
| |
* | Merge 3.2.Stefan Krah2012-08-201-0/+5
|\ \ | |/
| * Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().Stefan Krah2012-08-201-0/+5
| | | | | | | | Found by Coverity.
* | Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.Stefan Krah2012-07-281-56/+0
| |
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-0/+29
| | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* | long() -> int()Benjamin Peterson2012-03-211-2/+2
| |
* | make _PyNumber_ConvertIntegralToInt static, since it's only used in abstract.cBenjamin Peterson2012-03-211-4/+10
| |
* | rewrite this function, which was still accounting for classic classesBenjamin Peterson2012-03-211-24/+12
| |
* | correctly lookup __trunc__ in int() constructorBenjamin Peterson2012-03-211-2/+3
| |
* | some more identifier goodnessBenjamin Peterson2012-03-211-27/+8
| |
* | Whitespace.Stefan Krah2012-03-061-1/+1
| |
* | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-251-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | use the static identifier api for looking up special methodsBenjamin Peterson2012-01-221-8/+8
| | | | | | | | | | I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
* | Add a separate NEWS entry for a change to PyObject_CallMethod in the PEP 380 ↵Nick Coghlan2012-01-141-2/+0
| | | | | | | | patch, and make the private CallMethod variants consistent with the public one
* | Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan2012-01-131-2/+0
| |
* | fix weird indentationBenjamin Peterson2011-12-281-1/+1
| |
* | Use the new Unicode APIVictor Stinner2011-11-221-1/+1
| | | | | | | | | | | | | | | | * Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len) * Replace Py_UNICODE by wchar_t * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead of PyUnicode_FromUnicode() + _snwprintf()
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-3/+3
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-36/+75
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Implement PEP 393.Martin v. Löwis2011-09-281-3/+1
| |
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-111-2/+1
| | | | | | | | The macro was introduced in #12724.
* | Close #10616: mention bytes and bytearray in PyObject_AsCharBuffer() errorVictor Stinner2011-05-301-1/+2
| | | | | | | | message
* | Issue #7330, #10833: Replace %100s by %.100s and %200s by %.200sVictor Stinner2011-03-221-1/+1
|/ | | | | I suppose that the author would like to truncate the type name, not get a string of 100/200 characters.
* code styleBenjamin Peterson2010-11-201-8/+4
|
* #1574217: only swallow AttributeErrors in isinstance, not everything.R. David Murray2010-11-201-3/+12
| | | | Patch and tests by Brian Harring, with improvements by Ralf Schmitt.
* check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834Benjamin Peterson2010-09-111-3/+3
|
* Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() becomeAntoine Pitrou2010-09-011-9/+9
| | | | _Py_add_one_to_C() and _Py_add_one_to_F(), respectively.
* Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99Alexander Belopolsky2010-08-111-9/+1
| | | | | va_copy, but available on all python platforms. Untabified a few unrelated files.
* update error messageBenjamin Peterson2010-06-281-2/+1
|
* Merged revisions 81712 via svnmerge fromBenjamin Peterson2010-06-051-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81712 | benjamin.peterson | 2010-06-04 21:07:01 -0500 (Fri, 04 Jun 2010) | 1 line _PyObject_LookupSpecial returns a new reference ........
* Merged revisions 81706-81707 via svnmerge fromBenjamin Peterson2010-06-051-27/+15
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81706 | benjamin.peterson | 2010-06-04 19:32:50 -0500 (Fri, 04 Jun 2010) | 1 line properly lookup the __format__ special method ........ r81707 | benjamin.peterson | 2010-06-04 19:38:22 -0500 (Fri, 04 Jun 2010) | 1 line remove PyType_Ready call; float should be initialized in interpreter startup ........
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1905/+1905
| | | | | | | | | | 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. ........
* * Fix the refcount leak in _PySequence_BytesToCharpArray from r78946.Gregory P. Smith2010-03-151-1/+4
| | | | | * Also fixes a potential extra DECREF of an arg in the error case within _posixsubprocess.fork_exec() by not reusing the process_args variable.
* * Replaces the internals of the subprocess module from fork through exec onGregory P. Smith2010-03-141-0/+60
| | | | | | | | | | | | | | | POSIX systems with a C extension module. This is required in order for the subprocess module to be made thread safe. The pure python implementation is retained so that it can continue to be used if for some reason the _posixsubprocess extension module is not available. The unittest executes tests on both code paths to guarantee compatibility. * Moves PyLong_FromPid and PyLong_AsPid from posixmodule.c into longobject.h. Code reviewed by jeffrey.yasskin at http://codereview.appspot.com/223077/show
* Merged revisions 76052,76522,76591,76689,76697,76733 via svnmerge fromBenjamin Peterson2009-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76052 | gregory.p.smith | 2009-11-01 20:02:38 -0600 (Sun, 01 Nov 2009) | 5 lines see issue1006238, this merges in the following patch to ease cross compiling the printf %zd check. http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/python-2.5-cross-printf.patch?rev=1.1&view=markup ........ r76522 | barry.warsaw | 2009-11-25 12:38:32 -0600 (Wed, 25 Nov 2009) | 2 lines Add mktime_tz to __all__. It's documented as being available in email.utils. ........ r76591 | benjamin.peterson | 2009-11-29 16:26:26 -0600 (Sun, 29 Nov 2009) | 4 lines now that deepcopy can handle instance methods, this hack can be removed #7409 Thanks Robert Collins ........ r76689 | benjamin.peterson | 2009-12-06 11:37:48 -0600 (Sun, 06 Dec 2009) | 1 line rewrite translate_newlines for clarity ........ r76697 | benjamin.peterson | 2009-12-06 15:24:30 -0600 (Sun, 06 Dec 2009) | 2 lines fix test_parser from tokenizer tweak ........ r76733 | benjamin.peterson | 2009-12-09 21:37:59 -0600 (Wed, 09 Dec 2009) | 1 line substitute PyDict_Check() for PyObject_IsInstance ........
* Slightly improve buffer-related error message.Georg Brandl2009-08-041-1/+1
|
* Merged revisions 72907 via svnmerge fromBenjamin Peterson2009-05-251-2/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72907 | benjamin.peterson | 2009-05-24 21:40:21 -0500 (Sun, 24 May 2009) | 1 line handle errors from _PyObject_LookupSpecial when __get__ fails ........
* Remove unused variables.Georg Brandl2009-05-171-2/+1
|
* Merged revisions 72690 via svnmerge fromBenjamin Peterson2009-05-161-16/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72690 | benjamin.peterson | 2009-05-16 16:44:25 -0500 (Sat, 16 May 2009) | 1 line properly lookup __instancecheck__ and __subclasscheck__ ........
* only need to catch an TypeError hereBenjamin Peterson2009-05-091-3/+2
|
* Merged revisions 72518 via svnmerge fromBenjamin Peterson2009-05-091-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72518 | benjamin.peterson | 2009-05-09 14:18:36 -0500 (Sat, 09 May 2009) | 1 line clear error state properly ........
* Merged revisions 72508 via svnmerge fromBenjamin Peterson2009-05-091-13/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72508 | benjamin.peterson | 2009-05-09 11:36:39 -0500 (Sat, 09 May 2009) | 1 line convert some more special methods to use _PyObject_LookupSpecial ........
* Merged revisions 71607,71653,71696,71771,71786 via svnmerge fromGeorg Brandl2009-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71607 | benjamin.peterson | 2009-04-14 23:23:09 +0200 (Di, 14 Apr 2009) | 1 line tupel -> tuple ........ r71653 | raymond.hettinger | 2009-04-16 20:16:10 +0200 (Do, 16 Apr 2009) | 1 line Clarify the behavior of any() and all() with an empty iterable. ........ r71696 | georg.brandl | 2009-04-18 10:26:21 +0200 (Sa, 18 Apr 2009) | 1 line "not subscriptable" should be a bit more understandable than "unsubscriptable". ........ r71771 | raymond.hettinger | 2009-04-20 20:23:57 +0200 (Mo, 20 Apr 2009) | 1 line Fix typo ........ r71786 | georg.brandl | 2009-04-21 20:23:08 +0200 (Di, 21 Apr 2009) | 1 line #5757: fix copy-paste error in notify(). ........