Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More typoes. | Georg Brandl | 2011-10-05 | 1 | -7/+7 |
| | |||||
* | Fix a few typos in the unicode header. | Georg Brandl | 2011-10-05 | 1 | -11/+11 |
| | |||||
* | Fix grammar. | Georg Brandl | 2011-10-05 | 1 | -1/+1 |
| | |||||
* | Speedup str[a:b:step] for step != 1 | Victor Stinner | 2011-10-05 | 1 | -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_t | Victor Stinner | 2011-10-05 | 1 | -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_FromKindAndData | Victor Stinner | 2011-10-05 | 2 | -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 decoder | Victor Stinner | 2011-10-05 | 1 | -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 available | Antoine Pitrou | 2011-10-05 | 2 | -28/+39 |
| | | | | (followup to Victor's 85d11cf67aa8 and 7a50e549bd11) | ||||
* | Merge. | Charles-François Natali | 2011-10-04 | 3 | -17/+60 |
|\ | |||||
| * | Fix usage og PyUnicode_READY() | Victor Stinner | 2011-10-04 | 3 | -12/+27 |
| | | |||||
| * | _PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new() | Victor Stinner | 2011-10-04 | 1 | -1/+1 |
| | | |||||
| * | Add DONT_MAKE_RESULT_READY to unicodeobject.c to help detecting bugs | Victor Stinner | 2011-10-04 | 1 | -2/+28 |
| | | | | | | | | Use also _PyUnicode_READY_REPLACE() when it's applicable. | ||||
| * | Add assertion to _Py_ReleaseInternedUnicodeStrings() if READY fails | Victor Stinner | 2011-10-04 | 1 | -2/+4 |
| | | |||||
* | | os.geteuid() may not be available... | Charles-François Natali | 2011-10-04 | 1 | -1/+1 |
|\ \ | |/ |/| | |||||
| * | os.geteuid() may not be available... | Charles-François Natali | 2011-10-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #11956: Always skip test_import.test_unwritable_directory when run as | Charles-François Natali | 2011-10-04 | 1 | -2/+2 |
|\ \ | |/ | | | | | root, since the semantics varies across Unix variants. | ||||
| * | Issue #11956: Always skip test_import.test_unwritable_directory when run as | Charles-François Natali | 2011-10-04 | 1 | -2/+2 |
| | | | | | | | | root, since the semantics varies across Unix variants. | ||||
* | | Fix naïve heuristic in unicode slicing (followup to 1b4f886dc9e2) | Antoine Pitrou | 2011-10-04 | 1 | -7/+15 |
| | | |||||
* | | Merge. | Charles-François Natali | 2011-10-04 | 1 | -17/+18 |
|\ \ | |||||
| * \ | Merge | Antoine Pitrou | 2011-10-04 | 7 | -38/+15 |
| |\ \ | |||||
| * | | | Add a necessary call to PyUnicode_READY() (followup to ab5086539ab9) | Antoine Pitrou | 2011-10-04 | 1 | -0/+3 |
| | | | | |||||
| * | | | Optimize string slicing to use the new API | Antoine Pitrou | 2011-10-04 | 1 | -17/+15 |
| | | | | |||||
* | | | | Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as | Charles-François Natali | 2011-10-04 | 1 | -0/+3 |
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | root (directory permissions are ignored). | ||||
| * | | Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as | Charles-François Natali | 2011-10-04 | 1 | -0/+3 |
| | | | | | | | | | | | | root (directory permissions are ignored). | ||||
* | | | #13054: fix usage of sys.maxunicode after PEP-393. | Ezio Melotti | 2011-10-04 | 7 | -38/+15 |
| |/ |/| | |||||
* | | Also fix pickletester | Antoine Pitrou | 2011-10-04 | 1 | -3/+3 |
| | | |||||
* | | An embarassing litle typo | Antoine Pitrou | 2011-10-04 | 1 | -1/+1 |
| | | |||||
* | | When expandtabs() would be a no-op, don't create a duplicate string | Antoine Pitrou | 2011-10-04 | 2 | -0/+11 |
| | | |||||
* | | Migrate test_bigmem to PEP 393-compliant size calculations (hopefully) | Antoine Pitrou | 2011-10-04 | 1 | -33/+21 |
| | | |||||
* | | Migrate str.expandtabs to the new API | Antoine Pitrou | 2011-10-04 | 1 | -48/+39 |
| | | |||||
* | | Try to fix linking failures under Windows | Antoine Pitrou | 2011-10-04 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Try to fix linking failures under Windows | Antoine Pitrou | 2011-10-04 | 1 | -3/+3 |
| | | |||||
* | | Remove all other uses of the C tolower()/toupper() which could break with a ↵ | Antoine Pitrou | 2011-10-04 | 3 | -6/+6 |
|\ \ | |/ | | | | | Turkish locale. | ||||
| * | Remove all other uses of the C tolower()/toupper() which could break with a ↵ | Antoine Pitrou | 2011-10-04 | 3 | -6/+6 |
| | | | | | | | | Turkish locale. | ||||
* | | Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale. | Antoine Pitrou | 2011-10-04 | 3 | -2/+6 |
|\ \ | |/ | | | | | Reported and diagnosed by Thomas Kluyver. | ||||
| * | Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale. | Antoine Pitrou | 2011-10-04 | 3 | -2/+6 |
| | | | | | | | | Reported and diagnosed by Thomas Kluyver. | ||||
* | | Fix compilation error under Windows | Antoine Pitrou | 2011-10-04 | 1 | -1/+2 |
| | | |||||
* | | Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation | Antoine Pitrou | 2011-10-04 | 3 | -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 ACKS | Antoine Pitrou | 2011-10-04 | 1 | -0/+1 |
| | | |||||
| * | Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation | Antoine Pitrou | 2011-10-04 | 3 | -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 often | Antoine Pitrou | 2011-10-04 | 1 | -1/+1 |
| | | |||||
* | | Use the faulthandler module's infrastructure to write a GIL-less | Antoine Pitrou | 2011-10-04 | 2 | -43/+249 |
| | | | | | | | | memory watchdog for timely stats collection. | ||||
* | | Fix test failure | Antoine Pitrou | 2011-10-04 | 1 | -2/+2 |
| | | |||||
* | | Start fixing test_bigmem: | Antoine Pitrou | 2011-10-04 | 7 | -173/+207 |
|\ \ | |/ | | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption | ||||
| * | Start fixing test_bigmem: | Antoine Pitrou | 2011-10-04 | 6 | -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 their | Antoine Pitrou | 2011-10-04 | 5 | -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 their | Antoine Pitrou | 2011-10-04 | 5 | -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 Inge | 2011-10-04 | 3 | -1/+21 |
|\ \ | |/ | |||||
| * | Issue #12881: ctypes: Fix segfault with large structure field names. | Meador Inge | 2011-10-04 | 3 | -1/+21 |
| | | |||||
* | | fix parens | Benjamin Peterson | 2011-10-03 | 1 | -1/+1 |
| | |