summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Replace PyUnicodeObject type by PyObjectVictor Stinner2011-11-032-146/+132
| | | | | * _PyUnicode_CheckConsistency() now takes a PyObject* instead of void* * Remove now useless casts to PyObject*
* Cleanup decode_code_page_stateful() and encode_code_page()Victor Stinner2011-11-031-111/+75
| | | | | | * Fix decode_code_page_errors() result * Inline decode_code_page() and encode_code_page_chunk() * Replace the PyUnicodeObject type by PyObject
* Adapt the code page encoder to the new unicode_encode_call_errorhandler()Victor Stinner2011-11-031-34/+50
| | | | The code is not correct, but at least it doesn't crash anymore.
* Fix a compile error (apparently Windows only) introduced in 295fdfd4f422Brian Curtin2011-11-021-2/+3
|
* Port UCS1 and charmap codecs to new API.Martin v. Löwis2011-11-021-84/+127
|
* Introduce PyObject* API for raising encode errors.Martin v. Löwis2011-11-021-3/+49
|
* Drop Py_UCS4_ functions. Closes #13246.Martin v. Löwis2011-10-312-101/+90
|
* merge 3.2Benjamin Peterson2011-10-301-1/+1
|\
| * remove unused variableBenjamin Peterson2011-10-301-1/+1
| |
* | Fix the return value of set_discard (issue #10519)Petri Lehtinen2011-10-301-2/+3
|\ \ | |/
| * Fix the return value of set_discard (issue #10519)Petri Lehtinen2011-10-301-2/+3
| |
* | Avoid unnecessary recursive function calls (#closes #10519)Petri Lehtinen2011-10-301-2/+2
|\ \ | |/
| * Avoid unnecessary recursive function calls (closes #10519)Petri Lehtinen2011-10-301-2/+2
| |
* | PyUnicode_AsUnicodeCopy() uses PyUnicode_AsUnicodeAndSize() to get directly ↵Victor Stinner2011-10-231-4/+4
| | | | | | | | the length
* | Fix PyUnicode_InternImmortal(): PyUnicode_InternInPlace() may changes *pVictor Stinner2011-10-231-3/+1
| |
* | Cast directly to unsigned char, instead of using Py_CHARMASKVictor Stinner2011-10-231-2/+2
| | | | | | | | We don't need "& 0xff" on an unsigned char.
* | Replace PyUnicodeObject* by PyObject* where it was irrevelantVictor Stinner2011-10-232-143/+130
| | | | | | | | | | | | A Unicode string can now be a PyASCIIObject, PyCompactUnicodeObject or PyUnicodeObject. Aliasing a PyASCIIObject* or PyCompactUnicodeObject* to PyUnicodeObject* is wrong
* | Fix data variable in _PyUnicode_Dump() for compact ASCIIVictor Stinner2011-10-231-2/+10
| |
* | Remove last references to the removed Unicode free listVictor Stinner2011-10-231-23/+0
| |
* | PyUnicode_FSDecoder() ensures that the decoded string is readyVictor Stinner2011-10-261-0/+4
| |
* | merge headsPetri Lehtinen2011-10-241-15/+23
|\ \
| * | Issue #12965: Fix some inaccurate comments in Objects/longobject.c. Thanks ↵Mark Dickinson2011-10-231-15/+23
| | | | | | | | | | | | Stefan Krah.
* | | Merge 3.2Petri Lehtinen2011-10-241-4/+12
|\ \ \ | |/ / |/| / | |/
| * Issue #13018: Fix reference leaks in error paths in dictobject.c.Petri Lehtinen2011-10-241-4/+12
| | | | | | | | Patch by Suman Saha.
* | Issue #13201: equality for range objects is now based on equality of the ↵Mark Dickinson2011-10-231-2/+133
| | | | | | | | underlying sequences. Thanks Sven Marnach for the patch.
* | Merge issue 1294232 patch from 3.2Nick Coghlan2011-10-231-20/+41
|\ \ | |/
| * Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵Nick Coghlan2011-10-231-20/+41
| | | | | | | | metaclass inheritance. Patch by Daniel Urban.
* | Fix unicode_subtype_new() on debug buildVictor Stinner2011-10-221-1/+1
| | | | | | | | Patch written by Stefan Behnel.
* | Remove unused variable.Ezio Melotti2011-10-211-1/+0
| |
* | #12753: Add support for Unicode name aliases and named sequences.Ezio Melotti2011-10-211-1/+1
| |
* | Issue #12170: The count(), find(), rfind(), index() and rindex() methodsAntoine Pitrou2011-10-203-31/+133
| | | | | | | | | | of bytes and bytearray objects now accept an integer between 0 and 255 as their first argument. Patch by Petri Lehtinen.
* | merge 3.2Benjamin Peterson2011-10-191-5/+4
|\ \ | |/
| * adjust braces a bitBenjamin Peterson2011-10-191-5/+4
| |
* | Add consistency check to _PyUnicode_New()Victor Stinner2011-10-181-0/+1
| |
* | Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignoreVictor Stinner2011-10-181-141/+609
| | | | | | | | | | error handlers on all Windows versions. The MBCS codec is now supporting all error handlers, instead of only replace to encode and ignore to decode.
* | Issue #13188: When called without an explicit traceback argument,Antoine Pitrou2011-10-181-0/+5
|\ \ | |/ | | | | | | generator.throw() now gets the traceback from the passed exception's ``__traceback__`` attribute. Patch by Petri Lehtinen.
| * Issue #13188: When called without an explicit traceback argument,Antoine Pitrou2011-10-181-0/+5
| | | | | | | | | | generator.throw() now gets the traceback from the passed exception's `__traceback__` attribute. Patch by Petri Lehtinen.
* | Fix typoAntoine Pitrou2011-10-171-1/+1
| |
* | merge 3.2 (#13199)Benjamin Peterson2011-10-171-1/+5
|\ \ | |/
| * plug possible refleak (closes #13199)Benjamin Peterson2011-10-171-1/+5
| |
* | remove some duplicationBenjamin Peterson2011-10-151-10/+4
| |
* | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis2011-10-142-3/+4
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-1410-29/+29
| |
* | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16Victor Stinner2011-10-144-67/+63
| |
* | dictviews_or() uses _Py_identifierVictor Stinner2011-10-131-1/+3
| |
* | Use GetAttrId directly. Proposed by Amaury.Martin v. Löwis2011-10-131-8/+1
| |
* | Reuse the stringlib in findchar(), and make its signature more convenientAntoine Pitrou2011-10-131-39/+41
| |
* | Add a comment explaining this heuristic.Antoine Pitrou2011-10-131-0/+3
| |
* | Simplify heuristic for when to use memchrAntoine Pitrou2011-10-131-11/+1
| |
* | Optimize unicode_subscript() for step != 1 and ascii stringsVictor Stinner2011-10-121-8/+12
| |