summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
Commit message (Collapse)AuthorAgeFilesLines
* use NULL not 0Benjamin Peterson2014-06-271-9/+6
|
* Better assertion in PyObject_Call() to detect functions returning a result withVictor Stinner2013-12-191-1/+2
| | | | an exception set (invalid state).
* Issue #17576: Deprecation warning emitted now when __int__() or __index__()Serhiy Storchaka2013-12-111-56/+36
|\ | | | | | | | | return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions.
| * Issue #17576: Deprecation warning emitted now when __int__() or __index__()Serhiy Storchaka2013-12-111-56/+36
| | | | | | | | | | return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions.
* | Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() andVictor Stinner2013-10-291-0/+2
| | | | | | | | PyTuple_New() failure
* | Issue #19369: Optimized the usage of __length_hint__().Serhiy Storchaka2013-10-241-8/+10
| |
* | Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-4/+4
| |
* | Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-4/+3
|\ \ | |/ | | | | error messages and comments.
| * 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 #16741: Fix an error reporting in int().Serhiy Storchaka2013-08-031-24/+5
| |
* | Issue #18408: add more assertions on PyErr_Occurred() in ceval.c to detect bugsVictor Stinner2013-07-151-2/+1
| | | | | | | | earlier
* | Issue #18408: PyObject_Call() now fails with an assertion error in debug modeVictor Stinner2013-07-151-1/+7
| | | | | | | | | | if the function called failed whereas no exception was raised, to detect bugs earlier.
* | Issue #18203: Replace malloc() with PyMem_Malloc() in ↵Victor Stinner2013-07-071-8/+11
| | | | | | | | _PySequence_BytesToCharpArray()
* | Issue #9369: The types of `char*` arguments of PyObject_CallFunction() andSerhiy Storchaka2013-05-291-7/+10
| | | | | | | | | | PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck.
* | Closes #17892: Fix the name of _PyObject_CallMethodObjIdArgsAlexandre Vassalotti2013-05-021-1/+1
| |
* | Issue #17715: Merge fix from 3.3.Mark Dickinson2013-04-131-0/+2
|\ \ | |/
| * Issue #17715: Add missing NULL Check to PyNumber_Long.Mark Dickinson2013-04-131-0/+2
| |
* | Revert a premature patch for issue #14010 (changeset 846bd418aee5).Serhiy Storchaka2013-04-061-5/+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 #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 #16148: Small improvements and cleanup. Added version informationArmin Ronacher2012-10-071-7/+8
| | | | | | | | to docs.
* | and another oneChristian Heimes2012-10-061-2/+2
| |
* | move var declaration to top of block to fix compilation on Windows, fixes ↵Christian Heimes2012-10-061-2/+4
| | | | | | | | a7ec0a1b0f7c
* | Issue #16148: implemented PEP 424Armin Ronacher2012-10-061-29/+47
|/
* 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