Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | _PyUnicode_Ready() cannot be used on ready strings anymore | Victor Stinner | 2011-09-29 | 1 | -23/+15 |
| | | | | | | * Change its prototype: PyObject* instead of PyUnicodeoObject*. * Remove an old assertion, the result of PyUnicode_READY (_PyUnicode_Ready) must be checked instead | ||||
* | Move _PyUnicode_UTF8() and _PyUnicode_UTF8_LENGTH() outside unicodeobject.h | Victor Stinner | 2011-09-29 | 1 | -0/+8 |
| | | | | Move these macros to unicodeobject.c | ||||
* | Add a note in PyUnicode_CopyCharacters() doc: it doesn't write null character | Victor Stinner | 2011-09-29 | 1 | -41/+42 |
| | | | | Cleanup also the code (avoid the goto). | ||||
* | Fix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODE | Victor Stinner | 2011-09-29 | 2 | -4/+4 |
| | |||||
* | Use the new Py_ARRAY_LENGTH macro | Victor Stinner | 2011-09-28 | 3 | -5/+4 |
| | |||||
* | Fix 'c' format of PyUnicode_Format() | Victor Stinner | 2011-09-28 | 1 | -1/+1 |
| | | | | formatbuf is now an array of Py_UCS4, not of Py_UNICODE | ||||
* | Oops, fix my previous commit: unicode => to | Victor Stinner | 2011-09-28 | 1 | -2/+2 |
| | |||||
* | PyUnicode_CopyCharacters() marks the string as dirty (reset the hash) | Victor Stinner | 2011-09-28 | 1 | -1/+5 |
| | |||||
* | PyUnicode_CopyCharacters() fails if 'to' has more than 1 reference | Victor Stinner | 2011-09-28 | 1 | -0/+8 |
| | |||||
* | Clean up a few tabs that went in with PEP393. | Ezio Melotti | 2011-09-28 | 2 | -73/+73 |
| | |||||
* | #13054: sys.maxunicode is now always 0x10FFFF. | Ezio Melotti | 2011-09-28 | 1 | -1/+2 |
| | |||||
* | Check size of wchar_t using the preprocessor | Victor Stinner | 2011-09-28 | 1 | -29/+27 |
| | |||||
* | PyUnicode_CopyCharacters() initializes overflow | Victor Stinner | 2011-09-28 | 1 | -0/+1 |
| | |||||
* | Mark PyUnicode_FromUCS[124] as private | Victor Stinner | 2011-09-28 | 4 | -13/+13 |
| | |||||
* | Oops, fix Py_MIN/Py_MAX case | Victor Stinner | 2011-09-28 | 1 | -2/+2 |
| | |||||
* | Mark _PyUnicode_FindMaxCharAndNumSurrogatePairs() as private | Victor Stinner | 2011-09-28 | 1 | -7/+10 |
| | |||||
* | Strip trailing spaces in unicodeobject.[ch] | Victor Stinner | 2011-09-28 | 1 | -10/+10 |
| | |||||
* | Check for PyUnicode_CopyCharacters() failure | Victor Stinner | 2011-09-28 | 1 | -41/+79 |
| | |||||
* | PyUnicode_CopyCharacters() checks for buffer and character overflow | Victor Stinner | 2011-09-28 | 1 | -82/+77 |
| | | | | It now returns the number of written characters on success. | ||||
* | Mark PyUnicode_CONVERT_BYTES as private | Victor Stinner | 2011-09-28 | 1 | -10/+25 |
| | |||||
* | Rename new macros to conform to naming rules (function macros have "Py" ↵ | Georg Brandl | 2011-09-28 | 1 | -9/+9 |
| | | | | prefix, not "PY"). | ||||
* | don't check that the first character is XID_Continue | Benjamin Peterson | 2011-09-28 | 1 | -1/+1 |
| | | | | Current, XID_Continue is a superset of XID_Start, but that may sometime change. | ||||
* | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 31 | -3798/+4790 |
| | |||||
* | Issue #1621: Fix undefined behaviour from signed overflow in datetime module ↵ | Mark Dickinson | 2011-09-25 | 2 | -11/+9 |
| | | | | hashes, array and list iterations, and get_integer (stringlib/string_format.h) | ||||
* | Issue #1621: Fix undefined behaviour from signed overflow in get_integer ↵ | Mark Dickinson | 2011-09-24 | 1 | -9/+7 |
| | | | | (stringlib/formatter.h) | ||||
* | Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, ↵ | Mark Dickinson | 2011-09-24 | 5 | -25/+26 |
| | | | | tuple.__hash__, frozenset.__hash__ and set indexing operations. | ||||
* | Issue #13012: Allow 'keepends' to be passed as a keyword argument in ↵ | Mark Dickinson | 2011-09-24 | 3 | -10/+16 |
| | | | | str.splitlines, bytes.splitlines and bytearray.splitlines. | ||||
* | Merge issue #12973 list_repeat fix. | Mark Dickinson | 2011-09-19 | 1 | -3/+3 |
|\ | |||||
| * | Issue #12973: Fix undefined-behaviour-inducing overflow check in list_repeat. | Mark Dickinson | 2011-09-19 | 1 | -3/+3 |
| | | |||||
* | | Merge fix for issue #12963. | Stefan Krah | 2011-09-12 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Issue #12963: PyLong_AsSize_t() now returns (size_t)-1 in all error cases. | Stefan Krah | 2011-09-12 | 1 | -3/+3 |
| | | |||||
* | | Issue #12909: Make PyLong_As* functions consistent in their use of exceptions. | Nadeem Vawda | 2011-09-07 | 1 | -2/+10 |
| | | | | | | | | | | | | PyLong_AsDouble() and PyLong_AsUnsignedLongLong() now raise TypeError (rather than SystemError) when passed a non-integer argument, matching the behavior of all the other PyLong_As*() functions. | ||||
* | | Merge 3.2: Fix PyUnicode_AsWideCharString() doc | Victor Stinner | 2011-09-06 | 1 | -5/+5 |
|\ \ | |/ | | | | | | | | | - Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character - Fix spelling of the null character | ||||
| * | Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character | Victor Stinner | 2011-09-06 | 1 | -5/+5 |
| | | | | | | | | Fix also spelling of the null character. | ||||
* | | merge 3.2 | Benjamin Peterson | 2011-09-01 | 2 | -6/+6 |
|\ \ | |/ | |||||
| * | make sure to initialize the method wrapper type | Benjamin Peterson | 2011-09-01 | 2 | -6/+6 |
| | | |||||
* | | #9200: merge with 3.2. | Ezio Melotti | 2011-08-22 | 1 | -41/+51 |
|\ \ | |/ | |||||
| * | #9200: The str.is* methods now work with strings that contain non-BMP ↵ | Ezio Melotti | 2011-08-22 | 1 | -41/+60 |
| | | | | | | | | characters even in narrow Unicode builds. | ||||
* | | Issue #12791: Break reference cycles early when a generator exits with an ↵ | Antoine Pitrou | 2011-08-20 | 1 | -0/+11 |
|\ \ | |/ | | | | | exception. | ||||
| * | Issue #12791: Break reference cycles early when a generator exits with an ↵ | Antoine Pitrou | 2011-08-20 | 1 | -0/+11 |
| | | | | | | | | exception. | ||||
* | | merge 3.2 | Benjamin Peterson | 2011-08-18 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | the named of the character is actually NUL | Benjamin Peterson | 2011-08-18 | 1 | -1/+1 |
| | | |||||
* | | merge 3.2 | Benjamin Peterson | 2011-08-18 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | NUL -> NULL | Benjamin Peterson | 2011-08-18 | 1 | -1/+1 |
| | | |||||
* | | make __doc__ mutable on heaptypes (closes #12773) | Benjamin Peterson | 2011-08-17 | 1 | -1/+10 |
| | | |||||
* | | factor out common checks for setting special type attributes | Benjamin Peterson | 2011-08-17 | 1 | -27/+19 |
| | | |||||
* | | crush other possible refleaks in this section | Benjamin Peterson | 2011-08-17 | 1 | -0/+1 |
| | | |||||
* | | merge 3.2 | Benjamin Peterson | 2011-08-17 | 1 | -1/+3 |
|\ \ | |/ | |||||
| * | fix possible refleaks | Benjamin Peterson | 2011-08-17 | 1 | -1/+3 |
| | | |||||
* | | complain when a class variable shadows a name in __slots__ (closes #12766) | Benjamin Peterson | 2011-08-16 | 1 | -0/+6 |
| | |