Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix my last change on PyUnicode_Join(): don't process separator if len==1 | Victor Stinner | 2011-10-06 | 1 | -28/+32 |
| | |||||
* | str.replace() avoids memory when it's possible | Victor Stinner | 2011-10-06 | 1 | -18/+84 |
| | |||||
* | _copy_characters() fails more quickly in debug mode on inconsistent state | Victor Stinner | 2011-10-06 | 1 | -6/+18 |
| | |||||
* | Fix find_module_path(): make the string ready | Victor Stinner | 2011-10-06 | 1 | -0/+3 |
| | |||||
* | Fix a compiler warning: don't define unicode_is_singleton() in release mode | Victor Stinner | 2011-10-06 | 1 | -0/+2 |
| | |||||
* | Fix _warnings.c: make the filename string ready | Victor Stinner | 2011-10-06 | 1 | -3/+10 |
| | |||||
* | rephrase PyUnicode_1BYTE_KIND documentation | Victor Stinner | 2011-10-05 | 1 | -6/+7 |
| | |||||
* | Don't check for the maximum character when copying from unicodeobject.c | Victor Stinner | 2011-10-05 | 3 | -193/+198 |
| | | | | | | | | * Create copy_characters() function which doesn't check for the maximum character in release mode * _PyUnicode_CheckConsistency() is no more static to be able to use it in _PyUnicode_FormatAdvanced() (in formatter_unicode.c) * _PyUnicode_CheckConsistency() checks the string hash | ||||
* | Fix post-condition in unicode_repr(): check the result, not the input | Victor Stinner | 2011-10-05 | 1 | -1/+1 |
| | |||||
* | replace() uses unicode_fromascii() if the input and replace string is ASCII | Victor Stinner | 2011-10-05 | 1 | -1/+4 |
| | |||||
* | unicode_fromascii() checks that the input is ASCII in debug mode | Victor Stinner | 2011-10-05 | 1 | -3/+11 |
| | |||||
* | traceback: fix dump_ascii() for string with kind=PyUnicode_WCHAR_KIND | Victor Stinner | 2011-10-05 | 1 | -3/+13 |
| | |||||
* | Merge from 3.2 | Amaury Forgeot d'Arc | 2011-10-05 | 1 | -2/+2 |
|\ | |||||
| * | Enable the only tests for sys.gettrace | Amaury Forgeot d'Arc | 2011-10-05 | 1 | -2/+2 |
| | | |||||
* | | Fix a few ResourceWarnings in idle | Amaury Forgeot d'Arc | 2011-10-03 | 2 | -1/+6 |
| | | |||||
* | | Add asciilib: similar to ucs1, ucs2 and ucs4 library, but specialized to ASCII | Victor Stinner | 2011-10-05 | 4 | -49/+153 |
| | | | | | | | | | | | | ucs1, ucs2 and ucs4 libraries have to scan created substring to find the maximum character, whereas it is not need to ASCII strings. Because ASCII strings are common, it is useful to optimize ASCII. | ||||
* | | Fix PyUnicode_Partition(): str_in->str_obj | Victor Stinner | 2011-10-05 | 1 | -5/+5 |
| | | |||||
* | | Fix my_basename(): make the string ready | Victor Stinner | 2011-10-05 | 1 | -2/+7 |
| | | |||||
* | | Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle | Charles-François Natali | 2011-10-05 | 3 | -0/+24 |
|\ \ | |/ | | | | | | | would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC. | ||||
| * | Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle | Charles-François Natali | 2011-10-05 | 3 | -0/+24 |
| | | | | | | | | | | would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC. | ||||
* | | Ensure that newly created strings use the most efficient store in debug mode | Victor Stinner | 2011-10-04 | 1 | -14/+75 |
| | | |||||
* | | Document requierements of Unicode kinds | Victor Stinner | 2011-10-04 | 1 | -4/+20 |
| | | |||||
* | | Replace PyUnicodeObject* with PyObject* where it was inappropriate | Victor Stinner | 2011-10-04 | 1 | -40/+40 |
| | | |||||
* | | unicodeobject.c doesn't make output strings ready in debug mode | Victor Stinner | 2011-10-04 | 1 | -0/+4 |
| | | | | | | | | | | Try to only create non ready strings in debug mode to ensure that all functions (not only in unicodeobject.c, everywhere) make input strings ready. | ||||
* | | merge from 3.2. Issue13104 - Fix urllib.request.thishost() utility function. | Senthil Kumaran | 2011-10-05 | 2 | -1/+5 |
|\ \ | |/ | |||||
| * | Issue13104 - Fix urllib.request.thishost() utility function. | Senthil Kumaran | 2011-10-05 | 2 | -1/+5 |
| | | |||||
* | | merge from 3.2. Issue #13073 - Address the review comments made by Ezio. | Senthil Kumaran | 2011-10-05 | 2 | -10/+9 |
|\ \ | |/ | |||||
| * | Issue #13073 - Address the review comments made by Ezio. | Senthil Kumaran | 2011-10-05 | 2 | -10/+9 |
| | | |||||
* | | More fixes. | Georg Brandl | 2011-10-05 | 1 | -2/+2 |
| | | |||||
* | | 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 |
| | | | |