Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix 13245: | Giampaolo Rodola' | 2011-11-22 | 6 | -14/+64 |
| | | | | | | | sched.scheduler class constructor's timefunc and delayfunct parameters are now optional. scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter. Patch contributed by Matt Mulsow. | ||||
* | find_maxchar_surrogates() reuses surrogate macros | Victor Stinner | 2011-11-22 | 1 | -4/+4 |
| | |||||
* | Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide | Victor Stinner | 2011-11-22 | 3 | -25/+8 |
| | |||||
* | Issue #13441: Disable temporary the check on the maximum character until | Victor Stinner | 2011-11-22 | 1 | -20/+12 |
| | | | | | | | | | | the Solaris issue is solved. But add assertion on the maximum character in various encoders: UTF-7, UTF-8, wide character (wchar_t*, Py_UNICODE*), unicode-escape, raw-unicode-escape. Fix also unicode_encode_ucs1() for backslashreplace error handler: Python is now always "wide". | ||||
* | Fix compiler warnings | Victor Stinner | 2011-11-22 | 3 | -3/+4 |
| | |||||
* | Use the new Unicode API | Victor Stinner | 2011-11-22 | 10 | -41/+38 |
| | | | | | | | | * Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len) * Replace Py_UNICODE by wchar_t * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead of PyUnicode_FromUnicode() + _snwprintf() | ||||
* | (Merge 3.2) Issue #13093: Fix error handling on PyUnicode_EncodeDecimal() | Victor Stinner | 2011-11-22 | 2 | -4/+14 |
| | |||||
* | PyUnicode_FromKindAndData() fails with a ValueError if size < 0 | Victor Stinner | 2011-11-22 | 1 | -1/+4 |
| | |||||
* | UTF-8 decoder: set consumed value in the latin1 fast-path | Victor Stinner | 2011-11-22 | 1 | -0/+3 |
| | |||||
* | Replace _PyUnicode_READY_REPLACE() and _PyUnicode_ReadyReplace() with ↵ | Victor Stinner | 2011-11-22 | 1 | -143/+150 |
| | | | | | | | | | | unicode_ready() * unicode_ready() has a simpler API * try to reuse unicode_empty and latin1_char singleton everywhere * Fix a reference leak in _PyUnicode_TranslateCharmap() * PyUnicode_InternInPlace() doesn't try to get a singleton anymore, to avoid having to handle a failure | ||||
* | Add a test on str.__getnewargs__() | Victor Stinner | 2011-11-22 | 1 | -0/+7 |
| | | | | It tests indirectly PyUnicode_Copy(): ensure that the string is a copy. | ||||
* | Rewrite PyUnicode_TransformDecimalToASCII() to use the new Unicode API | Victor Stinner | 2011-11-21 | 1 | -17/+26 |
| | |||||
* | Remove an unused variable from PyUnicode_Copy() | Victor Stinner | 2011-11-21 | 1 | -2/+0 |
| | |||||
* | Simplify PyUnicode_Copy() | Victor Stinner | 2011-11-21 | 1 | -26/+7 |
| | | | | USe PyUnicode_Copy() in fixup() | ||||
* | Fix a compiler warning in _PyUnicode_CheckConsistency() | Victor Stinner | 2011-11-21 | 1 | -1/+1 |
| | |||||
* | Rewrite PyUnicode_EncodeDecimal() to use the new Unicode API | Victor Stinner | 2011-11-21 | 3 | -46/+132 |
| | | | | | Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII(). | ||||
* | Issue #12328: Under Windows, refactor handling of Ctrl-C events and | Antoine Pitrou | 2011-11-21 | 8 | -98/+84 |
| | | | | | make _multiprocessing.win32.WaitForMultipleObjects interruptible when the wait_flag parameter is false. Patch by sbt. | ||||
* | Issue #13411: memoryview objects are now hashable when the underlying object ↵ | Antoine Pitrou | 2011-11-21 | 9 | -19/+100 |
| | | | | is hashable. | ||||
* | Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case. | Antoine Pitrou | 2011-11-21 | 3 | -107/+278 |
| | | | | | This almost catches up with pre-PEP 393 performance, when decoding needed only one pass. | ||||
* | Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is | Antoine Pitrou | 2011-11-21 | 5 | -60/+152 |
|\ | | | | | | | | | | | | | raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt. | ||||
| * | Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is | Antoine Pitrou | 2011-11-21 | 5 | -62/+152 |
| | | | | | | | | | | | | | | raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt. | ||||
* | | Issue #13441: Reenable strxfrm() tests on Solaris | Victor Stinner | 2011-11-21 | 2 | -6/+0 |
| | | |||||
* | | Remove temporary hacks for the issue #13441 | Victor Stinner | 2011-11-21 | 1 | -46/+0 |
| | | |||||
* | | Another temporary hack to debug the issue #13441 | Victor Stinner | 2011-11-21 | 1 | -0/+20 |
| | | | | | | | | Dump the wchar_t that we are going to decode and dump the locale | ||||
* | | Issue #13441: _PyUnicode_CheckConsistency() dumps the string if the maximum | Victor Stinner | 2011-11-21 | 2 | -0/+39 |
| | | | | | | | | | | | | | | character is bigger than U+10FFFF and locale.localeconv() dumps the string before decoding it. Temporary hack to debug the issue #13441. | ||||
* | | What's new in Python 3.3: Rephrase PEP 393 doc | Victor Stinner | 2011-11-21 | 1 | -36/+43 |
| | | |||||
* | | winreg module avoids the deprecated Unicode API | Victor Stinner | 2011-11-21 | 1 | -24/+36 |
| | | |||||
* | | Issue #13441: Disable temporary localeconv() tests on Solaris | Victor Stinner | 2011-11-21 | 1 | -0/+2 |
| | | |||||
* | | CJK codecs checks for conversion to Py_UNICODE* failures | Victor Stinner | 2011-11-21 | 1 | -3/+10 |
| | | |||||
* | | MultibyteCodec_Encode() checks if PyUnicode_AS_UNICODE() failed | Victor Stinner | 2011-11-21 | 1 | -2/+5 |
| | | |||||
* | | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() | Victor Stinner | 2011-11-21 | 10 | -19/+18 |
| | | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength() | ||||
* | | PyUnicode_GET_SIZE() checks that PyUnicode_AsUnicode() succeed | Victor Stinner | 2011-11-21 | 1 | -6/+7 |
| | | | | | | | | using an assertion | ||||
* | | Fix a typo in PC/_subprocess.c | Victor Stinner | 2011-11-21 | 1 | -1/+1 |
| | | |||||
* | | ctypes check for PyUnicode_GET_SIZE() failure | Victor Stinner | 2011-11-21 | 2 | -6/+16 |
| | | |||||
* | | test_widechar() uses the new Unicode API | Victor Stinner | 2011-11-21 | 1 | -1/+1 |
| | | | | | | | | PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() | ||||
* | | Check for PyUnicode_AS_UNICODE() failure | Victor Stinner | 2011-11-21 | 4 | -7/+38 |
| | | |||||
* | | UnicodeTranslateError uses the new Unicode API | Victor Stinner | 2011-11-21 | 1 | -3/+3 |
| | | | | | | | | The index is a character index, not a index in a Py_UNICODE* string. | ||||
* | | Issue #13441: Disable temporary strxfrm() tests on Solaris | Victor Stinner | 2011-11-21 | 1 | -0/+4 |
| | | |||||
* | | (Merge 3.2) Close #13401: Skip TestFileTypeW of test_argparse if the current ↵ | Victor Stinner | 2011-11-20 | 1 | -0/+2 |
|\ \ | |/ | | | | | | | | | user is root Patch written by Arfrever Frehtes Taifersar Arahesis. | ||||
| * | Close #13401: Skip TestFileTypeW of test_argparse if the current user is root | Victor Stinner | 2011-11-20 | 1 | -0/+2 |
| | | | | | | | | Patch written by Arfrever Frehtes Taifersar Arahesis. | ||||
* | | UnicodeEncodeError uses the new Unicode API | Victor Stinner | 2011-11-20 | 1 | -3/+3 |
| | | | | | | | | The index is a character index, not a index in a Py_UNICODE* string. | ||||
* | | PyObject_Str() ensures that the result string is ready | Victor Stinner | 2011-11-20 | 2 | -2/+5 |
| | | | | | | | | | | | | | | and check the string consistency. _PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be possible to call this function even if hash(str) was already called. | ||||
* | | Use PyUnicode_CompareWithASCIIString() instead of Py_UNICODE_strcmp() to avoid | Victor Stinner | 2011-11-20 | 1 | -2/+1 |
| | | | | | | | | the deprecate Py_UNICODE type | ||||
* | | stringlib: remove unused STRINGLIB_FILL | Victor Stinner | 2011-11-20 | 6 | -6/+0 |
| | | |||||
* | | print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize() | Victor Stinner | 2011-11-20 | 1 | -1/+1 |
| | | |||||
* | | PyUnicode_AsUTF32String() calls directly _PyUnicode_EncodeUTF32(), | Victor Stinner | 2011-11-20 | 1 | -6/+1 |
| | | | | | | | | instead of calling the deprecated PyUnicode_EncodeUTF32() function | ||||
* | | _PyUnicode_CheckConsistency() also checks maxchar maximum value, | Victor Stinner | 2011-11-20 | 2 | -8/+17 |
| | | | | | | | | not only its minimum value | ||||
* | | Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macros | Victor Stinner | 2011-11-20 | 1 | -18/+0 |
| | | |||||
* | | Reuse surrogate macros in UTF-16 decoder | Victor Stinner | 2011-11-20 | 1 | -5/+4 |
| | | |||||
* | | Fix PyUnicode_CopyCharacters() doc | Victor Stinner | 2011-11-20 | 1 | -2/+1 |
| | |