summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Small clean-up. Factor-out common code for add, contains, and discard ↵Raymond Hettinger2014-12-271-43/+27
| | | | function pairs.
* Issue #23107: Tighten-up loops in setobject.cRaymond Hettinger2014-12-271-55/+46
| | | | | | * Move the test for an exact key match to after a hash match * Use "used" as a loop counter instead of "fill" * Minor improvements to variable names and code consistency
* Issue #22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EXSerhiy Storchaka2014-12-161-98/+62
| | | | opcode if possible.
* Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-052-5/+4
|\
| * Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-052-5/+4
| |
* | Issue #20335: bytes constructor now raises TypeError when encoding or errorsSerhiy Storchaka2014-12-021-7/+7
|\ \ | |/ | | | | is specified with non-string argument. Based on patch by Renaud Blanch.
| * Issue #20335: bytes constructor now raises TypeError when encoding or errorsSerhiy Storchaka2014-12-021-7/+7
| | | | | | | | is specified with non-string argument. Based on patch by Renaud Blanch.
* | Issue #22975: Close block at right place.Serhiy Storchaka2014-12-011-1/+1
|\ \ | |/
| * Issue #22975: Close block at right place.Serhiy Storchaka2014-12-011-1/+1
| |
* | merge 3.4 (#22954)Benjamin Peterson2014-11-271-1/+1
|\ \ | |/
| * remove tautological condition (closes #22954)Benjamin Peterson2014-11-271-1/+1
| |
* | Issue #22869: Split pythonrun into two modulesNick Coghlan2014-11-201-0/+16
| | | | | | | | | | | | | | - interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags
* | Issue #20948: Inline makefmt() in unicode_fromformat_arg()Victor Stinner2014-11-181-44/+9
| |
* | Issue #22847: Improve method cache efficiency.Antoine Pitrou2014-11-141-4/+36
| |
* | Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff ↵Antoine Pitrou2014-11-022-11/+18
|\ \ | |/ | | | | bytes on a 32-bit platform.
| * Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff ↵Antoine Pitrou2014-11-022-11/+18
| | | | | | | | bytes on a 32-bit platform.
* | merge with 3.4Georg Brandl2014-10-311-2/+2
|\ \ | |/
| * Closes #22772: fix __ifloordiv__ and __itruediv__ docstring.Georg Brandl2014-10-311-2/+2
| |
* | Issue #22653: Fix an assertion failure in debug mode when doing a reentrant ↵Antoine Pitrou2014-10-171-3/+3
|\ \ | |/ | | | | dict insertion in debug mode.
| * Issue #22653: Fix an assertion failure in debug mode when doing a reentrant ↵Antoine Pitrou2014-10-171-3/+3
| | | | | | | | dict insertion in debug mode.
| * Merge 3.3Benjamin Peterson2014-10-161-1/+1
| |\
| | * Fixed signed/unsigned comparison warningAntoine Pitrou2014-10-151-1/+1
| | |
* | | Fixed signed/unsigned comparison warningAntoine Pitrou2014-10-151-1/+1
| | |
* | | merge 3.4 (closes #22643)Benjamin Peterson2014-10-151-3/+2
|\ \ \ | |/ /
| * | merge 3.3Benjamin Peterson2014-10-151-3/+2
| |\ \ | | |/
| | * it suffices to check for PY_SSIZE_T_MAX overflow (#22643)Benjamin Peterson2014-10-151-3/+2
| | |
* | | Merge 3.4Benjamin Peterson2014-10-151-1/+1
|\ \ \ | |/ /
| * | Merge 3.3Benjamin Peterson2014-10-151-1/+1
| |\ \ | | |/
| | * make sure length is unsignedBenjamin Peterson2014-10-151-1/+1
| | |
* | | merge 3.4 (#22643)Benjamin Peterson2014-10-151-0/+5
|\ \ \ | |/ /
| * | merge 3.3 (#22643)Benjamin Peterson2014-10-151-0/+5
| |\ \ | | |/
| | * fix integer overflow in unicode case operations (closes #22643)Benjamin Peterson2014-10-151-0/+5
| | |
* | | Issue #22615: Argument Clinic now supports the "type" argument for theLarry Hastings2014-10-131-1/+1
| | | | | | | | | | | | | | | int converter. This permits using the int converter with enums and typedefs.
* | | Issue #22604: Fix assertion error in debug mode when dividing a complex ↵Antoine Pitrou2014-10-101-2/+6
|\ \ \ | |/ / | | | | | | number by (nan+0j).
| * | Issue #22604: Fix assertion error in debug mode when dividing a complex ↵Antoine Pitrou2014-10-101-2/+6
| | | | | | | | | | | | number by (nan+0j).
* | | #16518: Bring error messages in harmony with docs ("bytes-like object")R David Murray2014-10-056-14/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some time ago we changed the docs to consistently use the term 'bytes-like object' in all the contexts where bytes, bytearray, memoryview, etc are used. This patch (by Ezio Melotti) completes that work by changing the error messages that previously reported that certain types did "not support the buffer interface" to instead say that a bytes-like object is required. (The glossary entry for bytes-like object references the discussion of the buffer protocol in the docs.)
* | | Closes #22540: speed up PyObject_IsInstance and PyObject_IsSubclass in the ↵Georg Brandl2014-10-031-0/+15
| | | | | | | | | | | | common case that the second argument has metaclass "type".
* | | Fix "warning: comparison between signed and unsigned integer expressions"Gregory P. Smith2014-09-301-5/+5
| | | | | | | | | | | | | | | | | | -Wsign-compare warnings in unicodeobject.c. These were all a result of sizeof() being unsigned and being compared to a Py_ssize_t. Not actual problems.
* | | merge 3.4 (#22520)Benjamin Peterson2014-09-301-11/+17
|\ \ \ | |/ /
| * | merge 3.3 (#22520)Benjamin Peterson2014-09-301-11/+17
| |\ \ | | |/
| | * prevent overflow in unicode_repr (closes #22520)Benjamin Peterson2014-09-301-11/+17
| | |
* | | merge 3.4Benjamin Peterson2014-09-291-1/+1
|\ \ \ | |/ /
| * | merge 3.3Benjamin Peterson2014-09-291-1/+1
| |\ \ | | |/
| | * these variables ought to be Py_ssize_tBenjamin Peterson2014-09-291-1/+1
| | |
* | | merge 3.4 (#22519)Benjamin Peterson2014-09-291-12/+16
|\ \ \ | |/ /
| * | merge 3.3 (closes #22519)Benjamin Peterson2014-09-291-12/+16
| |\ \ | | |/
| | * fix overflow checking in PyBytes_Repr (closes #22519)Benjamin Peterson2014-09-291-12/+16
| | |
* | | merge 3.4 (closes #22518)Benjamin Peterson2014-09-291-17/+47
|\ \ \ | |/ /
| * | merge 3.3 (closes #22518)Benjamin Peterson2014-09-291-17/+47
| |\ \ | | |/
| | * cleanup overflowing handling in unicode_decode_call_errorhandler and ↵Benjamin Peterson2014-09-291-18/+56
| | | | | | | | | | | | unicode_encode_ucs1 (closes #22518)