summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* More typoes.Georg Brandl2011-10-051-7/+7
|
* Fix a few typos in the unicode header.Georg Brandl2011-10-051-11/+11
|
* Fix grammar.Georg Brandl2011-10-051-1/+1
|
* Speedup str[a:b:step] for step != 1Victor Stinner2011-10-051-3/+23
| | | | | Try to stop the scanner of the maximum character before the end using a limit depending on the kind (e.g. 256 for PyUnicode_2BYTE_KIND).
* Speedup find_maxchar_surrogates() for 32-bit wchar_tVictor Stinner2011-10-051-8/+6
| | | | | If we have at least one character in U+10000-U+10FFFF, we know that we must use PyUnicode_4BYTE_KIND kind.
* Speedup str[a:b] and PyUnicode_FromKindAndDataVictor Stinner2011-10-052-27/+51
| | | | | | | | * str[a:b] doesn't scan the string for the maximum character if the string is ascii only * PyUnicode_FromKindAndData() stops if we are sure that we cannot use a shorter character type. For example, _PyUnicode_FromUCS1() stops if we have at least one character in range U+0080-U+00FF
* Speedup the ASCII decoderVictor Stinner2011-10-051-27/+53
| | | | | | | | | | | | | | | It is faster for long string and a little bit faster for short strings, benchmark on Linux 32 bits, Intel Core i5 @ 3.33GHz: ./python -m timeit 'x=b"a"' 'x.decode("ascii")' ./python -m timeit 'x=b"x"*80' 'x.decode("ascii")' ./python -m timeit 'x=b"abc"*4096' 'x.decode("ascii")' length | before | after -------+------------+----------- 1 | 0.234 usec | 0.229 usec 80 | 0.381 usec | 0.357 usec 12,288 | 11.2 usec | 3.01 usec
* Fix text failures when ctypes is not availableAntoine Pitrou2011-10-052-28/+39
| | | | (followup to Victor's 85d11cf67aa8 and 7a50e549bd11)
* Merge.Charles-François Natali2011-10-043-17/+60
|\
| * Fix usage og PyUnicode_READY()Victor Stinner2011-10-043-12/+27
| |
| * _PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()Victor Stinner2011-10-041-1/+1
| |
| * Add DONT_MAKE_RESULT_READY to unicodeobject.c to help detecting bugsVictor Stinner2011-10-041-2/+28
| | | | | | | | Use also _PyUnicode_READY_REPLACE() when it's applicable.
| * Add assertion to _Py_ReleaseInternedUnicodeStrings() if READY failsVictor Stinner2011-10-041-2/+4
| |
* | os.geteuid() may not be available...Charles-François Natali2011-10-041-1/+1
|\ \ | |/ |/|
| * os.geteuid() may not be available...Charles-François Natali2011-10-041-1/+1
| |
* | Issue #11956: Always skip test_import.test_unwritable_directory when run asCharles-François Natali2011-10-041-2/+2
|\ \ | |/ | | | | root, since the semantics varies across Unix variants.
| * Issue #11956: Always skip test_import.test_unwritable_directory when run asCharles-François Natali2011-10-041-2/+2
| | | | | | | | root, since the semantics varies across Unix variants.
* | Fix naïve heuristic in unicode slicing (followup to 1b4f886dc9e2)Antoine Pitrou2011-10-041-7/+15
| |
* | Merge.Charles-François Natali2011-10-041-17/+18
|\ \
| * \ MergeAntoine Pitrou2011-10-047-38/+15
| |\ \
| * | | Add a necessary call to PyUnicode_READY() (followup to ab5086539ab9)Antoine Pitrou2011-10-041-0/+3
| | | |
| * | | Optimize string slicing to use the new APIAntoine Pitrou2011-10-041-17/+15
| | | |
* | | | Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run asCharles-François Natali2011-10-041-0/+3
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| root (directory permissions are ignored).
| * | Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run asCharles-François Natali2011-10-041-0/+3
| | | | | | | | | | | | root (directory permissions are ignored).
* | | #13054: fix usage of sys.maxunicode after PEP-393.Ezio Melotti2011-10-047-38/+15
| |/ |/|
* | Also fix pickletesterAntoine Pitrou2011-10-041-3/+3
| |
* | An embarassing litle typoAntoine Pitrou2011-10-041-1/+1
| |
* | When expandtabs() would be a no-op, don't create a duplicate stringAntoine Pitrou2011-10-042-0/+11
| |
* | Migrate test_bigmem to PEP 393-compliant size calculations (hopefully)Antoine Pitrou2011-10-041-33/+21
| |
* | Migrate str.expandtabs to the new APIAntoine Pitrou2011-10-041-48/+39
| |
* | Try to fix linking failures under WindowsAntoine Pitrou2011-10-041-3/+3
|\ \ | |/
| * Try to fix linking failures under WindowsAntoine Pitrou2011-10-041-3/+3
| |
* | Remove all other uses of the C tolower()/toupper() which could break with a ↵Antoine Pitrou2011-10-043-6/+6
|\ \ | |/ | | | | Turkish locale.
| * Remove all other uses of the C tolower()/toupper() which could break with a ↵Antoine Pitrou2011-10-043-6/+6
| | | | | | | | Turkish locale.
* | Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.Antoine Pitrou2011-10-043-2/+6
|\ \ | |/ | | | | Reported and diagnosed by Thomas Kluyver.
| * Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.Antoine Pitrou2011-10-043-2/+6
| | | | | | | | Reported and diagnosed by Thomas Kluyver.
* | Fix compilation error under WindowsAntoine Pitrou2011-10-041-1/+2
| |
* | Issue #13087: BufferedReader.seek() now always raises UnsupportedOperationAntoine Pitrou2011-10-043-0/+15
|\ \ | |/ | | | | | | if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John OConnor.
| * Add John to ACKSAntoine Pitrou2011-10-041-0/+1
| |
| * Issue #13087: BufferedReader.seek() now always raises UnsupportedOperationAntoine Pitrou2011-10-043-0/+15
| | | | | | | | | | if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John O'Connor.
* | Collect stats a bit more oftenAntoine Pitrou2011-10-041-1/+1
| |
* | Use the faulthandler module's infrastructure to write a GIL-lessAntoine Pitrou2011-10-042-43/+249
| | | | | | | | memory watchdog for timely stats collection.
* | Fix test failureAntoine Pitrou2011-10-041-2/+2
| |
* | Start fixing test_bigmem:Antoine Pitrou2011-10-047-173/+207
|\ \ | |/ | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption
| * Start fixing test_bigmem:Antoine Pitrou2011-10-046-164/+203
| | | | | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption
* | Issue #7689: Allow pickling of dynamically created classes when theirAntoine Pitrou2011-10-045-13/+40
|\ \ | |/ | | | | | | metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
| * Issue #7689: Allow pickling of dynamically created classes when theirAntoine Pitrou2011-10-045-13/+40
| | | | | | | | | | metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
* | Issue #12881: ctypes: Fix segfault with large structure field names.Meador Inge2011-10-043-1/+21
|\ \ | |/
| * Issue #12881: ctypes: Fix segfault with large structure field names.Meador Inge2011-10-043-1/+21
| |
* | fix parensBenjamin Peterson2011-10-031-1/+1
| |