Victor Stinner
|
d8e61c348e
|
Remove last references to the removed Unicode free list
|
2011-10-23 19:43:33 +02:00 |
|
Victor Stinner
|
065836ec9c
|
PyUnicode_FSDecoder() ensures that the decoded string is ready
|
2011-10-27 01:56:33 +02:00 |
|
Petri Lehtinen
|
08a95cabe3
|
merge heads
|
2011-10-24 21:22:39 +03:00 |
|
Petri Lehtinen
|
24bd5adcff
|
Merge 3.2
|
2011-10-24 21:17:52 +03:00 |
|
Petri Lehtinen
|
a94200e6ce
|
Issue #13018: Fix reference leaks in error paths in dictobject.c.
Patch by Suman Saha.
|
2011-10-24 21:12:58 +03:00 |
|
Mark Dickinson
|
8d48b43ea9
|
Issue #12965: Fix some inaccurate comments in Objects/longobject.c. Thanks Stefan Krah.
|
2011-10-23 20:47:14 +01:00 |
|
Mark Dickinson
|
36645681c8
|
Issue #13201: equality for range objects is now based on equality of the underlying sequences. Thanks Sven Marnach for the patch.
|
2011-10-23 19:53:01 +01:00 |
|
Nick Coghlan
|
9715d26305
|
Merge issue 1294232 patch from 3.2
|
2011-10-23 22:36:42 +10:00 |
|
Nick Coghlan
|
de31b191e5
|
Issue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.
|
2011-10-23 22:04:16 +10:00 |
|
Victor Stinner
|
dd18d3ad9e
|
Fix unicode_subtype_new() on debug build
Patch written by Stefan Behnel.
|
2011-10-22 11:08:10 +02:00 |
|
Ezio Melotti
|
f881751ded
|
Remove unused variable.
|
2011-10-22 01:01:32 +03:00 |
|
Ezio Melotti
|
931b8aac80
|
#12753: Add support for Unicode name aliases and named sequences.
|
2011-10-21 21:57:36 +03:00 |
|
Antoine Pitrou
|
ac65d96777
|
Issue #12170: The count(), find(), rfind(), index() and rindex() methods
of bytes and bytearray objects now accept an integer between 0 and 255
as their first argument. Patch by Petri Lehtinen.
|
2011-10-20 23:54:17 +02:00 |
|
Benjamin Peterson
|
dc37ce95e8
|
merge 3.2
|
2011-10-19 16:58:15 -04:00 |
|
Benjamin Peterson
|
9d9141f5db
|
adjust braces a bit
|
2011-10-19 16:57:40 -04:00 |
|
Victor Stinner
|
6707293e75
|
Add consistency check to _PyUnicode_New()
|
2011-10-18 22:10:14 +02:00 |
|
Victor Stinner
|
3a50e7056e
|
Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore
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.
|
2011-10-18 21:21:00 +02:00 |
|
Antoine Pitrou
|
cf28eacafe
|
Issue #13188: When called without an explicit traceback argument,
generator.throw() now gets the traceback from the passed exception's
``__traceback__`` attribute. Patch by Petri Lehtinen.
|
2011-10-18 16:42:55 +02:00 |
|
Antoine Pitrou
|
551ba20e8e
|
Issue #13188: When called without an explicit traceback argument,
generator.throw() now gets the traceback from the passed exception's
`__traceback__` attribute. Patch by Petri Lehtinen.
|
2011-10-18 16:40:50 +02:00 |
|
Antoine Pitrou
|
5b9f4c1539
|
Fix typo
|
2011-10-17 19:21:04 +02:00 |
|
Benjamin Peterson
|
897d059221
|
merge 3.2 (#13199)
|
2011-10-17 13:10:24 -04:00 |
|
Benjamin Peterson
|
2963fe0711
|
plug possible refleak (closes #13199)
|
2011-10-17 13:09:27 -04:00 |
|
Benjamin Peterson
|
7a6debe79c
|
remove some duplication
|
2011-10-15 09:25:28 -04:00 |
|
Martin v. Löwis
|
1c67dd9b15
|
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.
|
2011-10-14 15:16:45 +02:00 |
|
Martin v. Löwis
|
bd928fef42
|
Rename _Py_identifier to _Py_IDENTIFIER.
|
2011-10-14 10:20:37 +02:00 |
|
Victor Stinner
|
f5cff56a1b
|
Issue #13088: Add shared Py_hexdigits constant to format a number into base 16
|
2011-10-14 02:13:11 +02:00 |
|
Victor Stinner
|
d1a9cc29b9
|
dictviews_or() uses _Py_identifier
|
2011-10-13 22:51:17 +02:00 |
|
Martin v. Löwis
|
bfc6d74b25
|
Use GetAttrId directly. Proposed by Amaury.
|
2011-10-13 20:03:57 +02:00 |
|
Antoine Pitrou
|
f0b934b01a
|
Reuse the stringlib in findchar(), and make its signature more convenient
|
2011-10-13 18:55:09 +02:00 |
|
Antoine Pitrou
|
c198d0599b
|
Add a comment explaining this heuristic.
|
2011-10-13 18:07:37 +02:00 |
|
Antoine Pitrou
|
dda339e6d2
|
Simplify heuristic for when to use memchr
|
2011-10-13 17:58:11 +02:00 |
|
Victor Stinner
|
55c991197b
|
Optimize unicode_subscript() for step != 1 and ascii strings
|
2011-10-13 01:17:06 +02:00 |
|
Victor Stinner
|
127226ba69
|
Don't use PyUnicode_MAX_CHAR_VALUE() macro in Py_MAX()
|
2011-10-13 01:12:34 +02:00 |
|
Victor Stinner
|
9e7a1bcfd6
|
Optimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchr
|
2011-10-13 00:18:12 +02:00 |
|
Antoine Pitrou
|
dd4e2f0153
|
Issue #13155: Optimize finding the optimal character width of an unicode string
|
2011-10-13 00:02:27 +02:00 |
|
Victor Stinner
|
49a0a21f37
|
Unicode replace() avoids calling unicode_adjust_maxchar() when it's useless
Add also a special case if the result is an empty string.
|
2011-10-12 23:46:10 +02:00 |
|
Antoine Pitrou
|
6b4883dec0
|
PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.
|
2011-10-12 02:54:14 +02:00 |
|
Victor Stinner
|
983b1434bd
|
Backed out changeset 952d91a7d376
If maxchar == PyUnicode_MAX_CHAR_VALUE(unicode), we do an useless copy.
|
2011-10-12 00:54:35 +02:00 |
|
Antoine Pitrou
|
e55ad2dff0
|
Relax condition
|
2011-10-12 00:36:51 +02:00 |
|
Victor Stinner
|
d218bf14cc
|
stringlib: Fix STRINGLIB_STR for UCS2/UCS4
|
2011-10-12 00:14:32 +02:00 |
|
Victor Stinner
|
4e10100dee
|
Fix compiler warning in _PyUnicode_FromUCS2()
|
2011-10-11 23:27:52 +02:00 |
|
Victor Stinner
|
8cc70dcf70
|
Fix fastsearch for UCS2 and UCS4
* If needle is 0, try (p[0] >> 16) & 0xff for UCS4
* Disable fastsearch_memchr_1char() if needle is zero for UCS2 and UCS4
|
2011-10-11 23:22:22 +02:00 |
|
Antoine Pitrou
|
950468e553
|
Use _PyUnicode_CONVERT_BYTES() where applicable.
|
2011-10-11 22:45:48 +02:00 |
|
Victor Stinner
|
577db2c9f0
|
PyUnicode_AsUnicodeCopy() now checks if PyUnicode_AsUnicode() failed
|
2011-10-11 22:12:48 +02:00 |
|
Victor Stinner
|
c4f281eba3
|
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
|
2011-10-11 22:11:42 +02:00 |
|
Victor Stinner
|
ed2682be2f
|
Reuse PyUnicode_Copy() in validate_and_copy_tuple()
|
2011-10-11 21:53:24 +02:00 |
|
Antoine Pitrou
|
e459a0877e
|
Issue #13136: speed up conversion between different character widths.
|
2011-10-11 20:58:41 +02:00 |
|
Antoine Pitrou
|
2c3b2302ad
|
Issue #13134: optimize finding single-character strings using memchr
|
2011-10-11 20:29:21 +02:00 |
|
Antoine Pitrou
|
2871698546
|
/* Remove unused code. It has been committed out since 2000 (!). */
|
2011-10-11 03:17:47 +02:00 |
|
Antoine Pitrou
|
53bb548f22
|
Avoid exporting private helpers
(thanks "make smelly")
|
2011-10-10 23:49:24 +02:00 |
|