Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Close #17932: Fix an integer overflow issue on Windows 64-bit in iterators: | Victor Stinner | 2013-06-04 | 1 | -1/+1 |
| | | | | change the C type of seqiterobject.it_index from long to Py_ssize_t. | ||||
* | Issue #9369: The types of `char*` arguments of PyObject_CallFunction() and | Serhiy Storchaka | 2013-05-29 | 1 | -7/+10 |
| | | | | | PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck. | ||||
* | rewrite the parsing of field names to be more consistent wrt recursive expansion | Benjamin Peterson | 2013-05-17 | 1 | -62/+53 |
| | |||||
* | merge 3.3 | Benjamin Peterson | 2013-05-17 | 1 | -2/+8 |
|\ | |||||
| * | only recursively expand in the format spec (closes #17644) | Benjamin Peterson | 2013-05-17 | 1 | -2/+8 |
| | | |||||
* | | merge | Raymond Hettinger | 2013-05-17 | 1 | -7/+11 |
|\ \ | |/ | |||||
| * | Issue #17563: Fix dict resize performance regression. | Raymond Hettinger | 2013-05-17 | 1 | -7/+11 |
| | | |||||
| * | when arguments are cells clear the locals slot (backport of #17927) | Benjamin Peterson | 2013-05-15 | 1 | -0/+12 |
| | | |||||
* | | Backout c89febab4648 following private feedback by Guido. | Antoine Pitrou | 2013-05-14 | 2 | -266/+239 |
| | | | | | | | | (Issue #17807: Generators can now be finalized even when they are part of a reference cycle) | ||||
* | | when an argument is a cell, set the local copy to NULL (see #17927) | Benjamin Peterson | 2013-05-12 | 1 | -3/+11 |
| | | |||||
* | | Touch up grammar for dict.update() docstring. | Brett Cannon | 2013-05-11 | 1 | -4/+4 |
| | | |||||
* | | Issue #17237: Fix crash in the ASCII decoder on m68k. | Antoine Pitrou | 2013-05-11 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Issue #17237: Fix crash in the ASCII decoder on m68k. | Antoine Pitrou | 2013-05-11 | 1 | -0/+9 |
| | | |||||
* | | #17927: Keep frame from referencing cell-ified arguments. | Guido van Rossum | 2013-05-10 | 1 | -0/+4 |
| | | |||||
* | | Issue #17807: Generators can now be finalized even when they are part of a ↵ | Antoine Pitrou | 2013-05-08 | 2 | -239/+266 |
| | | | | | | | | reference cycle. | ||||
* | | Use Py_intptr_t to store the difference between two pointers, instead of int | Victor Stinner | 2013-05-07 | 1 | -1/+1 |
| | | | | | | | | Fix a compiler warning on Windows 64-bit | ||||
* | | Fix uninitialized value in charmap_decode_mapping() | Victor Stinner | 2013-05-06 | 1 | -1/+1 |
| | | |||||
* | | Issue #7330: Implement width and precision (ex: "%5.3s") for the format string | Victor Stinner | 2013-05-06 | 1 | -46/+109 |
| | | | | | | | | of PyUnicode_FromFormat() function, original patch written by Ysj Ray. | ||||
* | | Issue #17408: Avoid using an obsolete instance of the copyreg module when ↵ | Antoine Pitrou | 2013-05-04 | 1 | -5/+17 |
|\ \ | |/ | | | | | the interpreter is shutdown and then started again. | ||||
| * | Issue #17408: Avoid using an obsolete instance of the copyreg module when ↵ | Antoine Pitrou | 2013-05-04 | 1 | -5/+17 |
| | | | | | | | | the interpreter is shutdown and then started again. | ||||
* | | #17115,17116: Have modules initialize the __package__ and __loader__ | Brett Cannon | 2013-05-04 | 1 | -13/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attributes to None. The long-term goal is for people to be able to rely on these attributes existing and checking for None to see if they have been set. Since import itself sets these attributes when a loader does not the only instances when the attributes are None are from someone overloading __import__() and not using a loader or someone creating a module from scratch. This patch also unifies module initialization. Before you could have different attributes with default values depending on how the module object was created. Now the only way to not get the same default set of attributes is to circumvent initialization by calling ModuleType.__new__() directly. | ||||
* | | Closes #17892: Fix the name of _PyObject_CallMethodObjIdArgs | Alexandre Vassalotti | 2013-05-02 | 1 | -1/+1 |
| | | |||||
* | | Merge removal of trailing whitespace from 3.3. | Ezio Melotti | 2013-04-21 | 1 | -7/+7 |
|\ \ | |/ | |||||
| * | Remove trailing whitespace. | Ezio Melotti | 2013-04-21 | 1 | -7/+7 |
| | | |||||
* | | Partial revert of changeset 9744b2df134c | Victor Stinner | 2013-04-18 | 1 | -5/+4 |
| | | | | | | | | | | PyUnicode_Append() cannot call directly resize_compact(): I forgot that a string can be ready *and* not compact (a legacy string can also be ready). | ||||
* | | Split PyUnicode_DecodeCharmap() into subfunction for readability | Victor Stinner | 2013-04-17 | 1 | -178/+213 |
| | | |||||
* | | Fix bug in Unicode decoders related to _PyUnicodeWriter | Victor Stinner | 2013-04-17 | 1 | -6/+14 |
| | | | | | | | | Bug introduced by changesets 7ed9993d53b4 and edf029fc9591. | ||||
* | | Fix typo in unicode_decode_call_errorhandler_writer() | Victor Stinner | 2013-04-17 | 1 | -1/+1 |
| | | | | | | | | Bug introduced by changeset 7ed9993d53b4. | ||||
* | | Close #17694: Add minimum length to _PyUnicodeWriter | Victor Stinner | 2013-04-17 | 5 | -60/+63 |
| | | | | | | | | | | | | | | | | | | | | | | | | * Add also min_char attribute to _PyUnicodeWriter structure (currently unused) * _PyUnicodeWriter_Init() has no more argument (except the writer itself): min_length and overallocate must be set explicitly * In error handlers, only enable overallocation if the replacement string is longer than 1 character * CJK decoders don't use overallocation anymore * Set min_length, instead of preallocating memory using _PyUnicodeWriter_Prepare(), in many decoders * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow | ||||
* | | Cleanup PyUnicode_Contains() | Victor Stinner | 2013-04-14 | 1 | -11/+6 |
| | | | | | | | | | | | | * No need to double-check that strings are ready: test already done by PyUnicode_FromObject() * Remove useless kind variable (use kind1 instead) | ||||
* | | Minor change: fix character in do_strip() for the ASCII case | Victor Stinner | 2013-04-14 | 1 | -2/+2 |
| | | |||||
* | | Cleanup PyUnicode_Append() | Victor Stinner | 2013-04-14 | 1 | -18/+14 |
| | | | | | | | | | | | | | | * Check also that right is a Unicode object * call directly resize_compact() instead of unicode_resize() for a more explicit error handling, and to avoid testing some properties twice (ex: unicode_modifiable()) | ||||
* | | PyUnicode_Join(): move use_memcpy test out of the loop to cleanup and ↵ | Victor Stinner | 2013-04-14 | 1 | -20/+28 |
| | | | | | | | | optimize the code | ||||
* | | Optimize repr(str): use _PyUnicode_FastCopyCharacters() when no character is ↵ | Victor Stinner | 2013-04-14 | 1 | -69/+78 |
| | | | | | | | | escaped | ||||
* | | Optimize ascii(str): don't encode/decode repr if repr is already ASCII | Victor Stinner | 2013-04-14 | 2 | -1/+4 |
| | | |||||
* | | stringlib: remove unused STRINGLIB_RESIZE macro | Victor Stinner | 2013-04-14 | 7 | -7/+0 |
| | | |||||
* | | Add _PyUnicodeWriter_WriteCharInline() | Victor Stinner | 2013-04-14 | 1 | -71/+35 |
| | | |||||
* | | Issue #16061: Speed up str.replace() for replacing 1-character strings. | Serhiy Storchaka | 2013-04-13 | 2 | -26/+91 |
| | | |||||
* | | Issue #17715: Merge fix from 3.3. | Mark Dickinson | 2013-04-13 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Issue #17715: Add missing NULL Check to PyNumber_Long. | Mark Dickinson | 2013-04-13 | 1 | -0/+2 |
| | | |||||
* | | Issue #17643: Add __callback__ attribute to weakref.ref. | Mark Dickinson | 2013-04-13 | 1 | -1/+6 |
| | | |||||
* | | Issue #16447: Merge fix from 3.3. | Mark Dickinson | 2013-04-13 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Issue #16447: Fix potential segfault when setting __name__ on a class. | Mark Dickinson | 2013-04-13 | 1 | -1/+4 |
| | | |||||
* | | Close #17693: Rewrite CJK decoders to use the _PyUnicodeWriter API instead of | Victor Stinner | 2013-04-11 | 1 | -0/+10 |
| | | | | | | | | | | | | the legacy Py_UNICODE API. Add also a new _PyUnicodeWriter_WriteChar() function. | ||||
* | | Fix supernumerary 's' in sys._debugmallocstats() output. | Antoine Pitrou | 2013-04-11 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix supernumerary 's' in sys._debugmallocstats() output. | Antoine Pitrou | 2013-04-11 | 1 | -1/+1 |
| | | |||||
* | | merge 3.3 (#17669) | Benjamin Peterson | 2013-04-10 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | don't run frame if it has no stack (closes #17669) | Benjamin Peterson | 2013-04-10 | 1 | -1/+1 |
| | | |||||
* | | Issue #17615: On Windows (VS2010), Performances of wmemcmp() to compare Unicode | Victor Stinner | 2013-04-09 | 1 | -9/+0 |
| | | | | | | | | | | | | | | | | strings are not convincing. For UCS2 (16-bit wchar_t type), use a dummy loop instead of wmemcmp(). The dummy loop is as fast, or a little bit faster. wchar_t is only 16-bit long on Windows. wmemcmp() is still used for 32-bit wchar_t. | ||||
* | | replace(): only call PyUnicode_DATA(u) once | Victor Stinner | 2013-04-09 | 1 | -3/+4 |
| | |