summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix my last change on PyUnicode_Join(): don't process separator if len==1Victor Stinner2011-10-061-28/+32
|
* str.replace() avoids memory when it's possibleVictor Stinner2011-10-061-18/+84
|
* _copy_characters() fails more quickly in debug mode on inconsistent stateVictor Stinner2011-10-061-6/+18
|
* Fix find_module_path(): make the string readyVictor Stinner2011-10-061-0/+3
|
* Fix a compiler warning: don't define unicode_is_singleton() in release modeVictor Stinner2011-10-061-0/+2
|
* Fix _warnings.c: make the filename string readyVictor Stinner2011-10-061-3/+10
|
* rephrase PyUnicode_1BYTE_KIND documentationVictor Stinner2011-10-051-6/+7
|
* Don't check for the maximum character when copying from unicodeobject.cVictor Stinner2011-10-053-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 inputVictor Stinner2011-10-051-1/+1
|
* replace() uses unicode_fromascii() if the input and replace string is ASCIIVictor Stinner2011-10-051-1/+4
|
* unicode_fromascii() checks that the input is ASCII in debug modeVictor Stinner2011-10-051-3/+11
|
* traceback: fix dump_ascii() for string with kind=PyUnicode_WCHAR_KINDVictor Stinner2011-10-051-3/+13
|
* Merge from 3.2Amaury Forgeot d'Arc2011-10-051-2/+2
|\
| * Enable the only tests for sys.gettraceAmaury Forgeot d'Arc2011-10-051-2/+2
| |
* | Fix a few ResourceWarnings in idleAmaury Forgeot d'Arc2011-10-032-1/+6
| |
* | Add asciilib: similar to ucs1, ucs2 and ucs4 library, but specialized to ASCIIVictor Stinner2011-10-054-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_objVictor Stinner2011-10-051-5/+5
| |
* | Fix my_basename(): make the string readyVictor Stinner2011-10-051-2/+7
| |
* | Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycleCharles-François Natali2011-10-053-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 cycleCharles-François Natali2011-10-053-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 modeVictor Stinner2011-10-041-14/+75
| |
* | Document requierements of Unicode kindsVictor Stinner2011-10-041-4/+20
| |
* | Replace PyUnicodeObject* with PyObject* where it was inappropriateVictor Stinner2011-10-041-40/+40
| |
* | unicodeobject.c doesn't make output strings ready in debug modeVictor Stinner2011-10-041-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 Kumaran2011-10-052-1/+5
|\ \ | |/
| * Issue13104 - Fix urllib.request.thishost() utility function.Senthil Kumaran2011-10-052-1/+5
| |
* | merge from 3.2. Issue #13073 - Address the review comments made by Ezio.Senthil Kumaran2011-10-052-10/+9
|\ \ | |/
| * Issue #13073 - Address the review comments made by Ezio.Senthil Kumaran2011-10-052-10/+9
| |
* | More fixes.Georg Brandl2011-10-051-2/+2
| |
* | 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
| | | |