- 05 Eki, 2011 10 kayıt (commit)
-
-
Victor Stinner yazdı
* 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
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Amaury Forgeot d'Arc yazdı
-
Amaury Forgeot d'Arc yazdı
-
Charles-François Natali yazdı
would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC.
-
Senthil Kumaran yazdı
-
Senthil Kumaran yazdı
-
- 04 Eki, 2011 11 kayıt (commit)
-
-
Charles-François Natali yazdı
-
Charles-François Natali yazdı
root, since the semantics varies across Unix variants.
-
Charles-François Natali yazdı
root (directory permissions are ignored).
-
Antoine Pitrou yazdı
-
Antoine Pitrou yazdı
-
Antoine Pitrou yazdı
Reported and diagnosed by Thomas Kluyver.
-
Antoine Pitrou yazdı
-
Antoine Pitrou yazdı
if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John O'Connor.
-
Antoine Pitrou yazdı
- bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption
-
Antoine Pitrou yazdı
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
-
Meador Inge yazdı
-
- 03 Eki, 2011 1 kayıt (commit)
-
-
Amaury Forgeot d'Arc yazdı
-
- 05 Eki, 2011 4 kayıt (commit)
-
-
Victor Stinner yazdı
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.
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Charles-François Natali yazdı
would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC.
-
- 04 Eki, 2011 4 kayıt (commit)
-
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
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.
-
- 05 Eki, 2011 10 kayıt (commit)
-
-
Senthil Kumaran yazdı
-
Senthil Kumaran yazdı
-
Georg Brandl yazdı
-
Georg Brandl yazdı
-
Georg Brandl yazdı
-
Georg Brandl yazdı
-
Victor Stinner yazdı
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).
-
Victor Stinner yazdı
If we have at least one character in U+10000-U+10FFFF, we know that we must use PyUnicode_4BYTE_KIND kind.
-
Victor Stinner yazdı
* 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
-
Victor Stinner yazdı
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
-