summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix 13245:Giampaolo Rodola'2011-11-226-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 macrosVictor Stinner2011-11-221-4/+4
|
* Remove "#ifdef Py_UNICODE_WIDE": Python is now always wideVictor Stinner2011-11-223-25/+8
|
* Issue #13441: Disable temporary the check on the maximum character untilVictor Stinner2011-11-221-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 warningsVictor Stinner2011-11-223-3/+4
|
* Use the new Unicode APIVictor Stinner2011-11-2210-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 Stinner2011-11-222-4/+14
|
* PyUnicode_FromKindAndData() fails with a ValueError if size < 0Victor Stinner2011-11-221-1/+4
|
* UTF-8 decoder: set consumed value in the latin1 fast-pathVictor Stinner2011-11-221-0/+3
|
* Replace _PyUnicode_READY_REPLACE() and _PyUnicode_ReadyReplace() with ↵Victor Stinner2011-11-221-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 Stinner2011-11-221-0/+7
| | | | It tests indirectly PyUnicode_Copy(): ensure that the string is a copy.
* Rewrite PyUnicode_TransformDecimalToASCII() to use the new Unicode APIVictor Stinner2011-11-211-17/+26
|
* Remove an unused variable from PyUnicode_Copy()Victor Stinner2011-11-211-2/+0
|
* Simplify PyUnicode_Copy()Victor Stinner2011-11-211-26/+7
| | | | USe PyUnicode_Copy() in fixup()
* Fix a compiler warning in _PyUnicode_CheckConsistency()Victor Stinner2011-11-211-1/+1
|
* Rewrite PyUnicode_EncodeDecimal() to use the new Unicode APIVictor Stinner2011-11-213-46/+132
| | | | | Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII().
* Issue #12328: Under Windows, refactor handling of Ctrl-C events andAntoine Pitrou2011-11-218-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 Pitrou2011-11-219-19/+100
| | | | is hashable.
* Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case.Antoine Pitrou2011-11-213-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 isAntoine Pitrou2011-11-215-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 isAntoine Pitrou2011-11-215-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 SolarisVictor Stinner2011-11-212-6/+0
| |
* | Remove temporary hacks for the issue #13441Victor Stinner2011-11-211-46/+0
| |
* | Another temporary hack to debug the issue #13441Victor Stinner2011-11-211-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 maximumVictor Stinner2011-11-212-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 docVictor Stinner2011-11-211-36/+43
| |
* | winreg module avoids the deprecated Unicode APIVictor Stinner2011-11-211-24/+36
| |
* | Issue #13441: Disable temporary localeconv() tests on SolarisVictor Stinner2011-11-211-0/+2
| |
* | CJK codecs checks for conversion to Py_UNICODE* failuresVictor Stinner2011-11-211-3/+10
| |
* | MultibyteCodec_Encode() checks if PyUnicode_AS_UNICODE() failedVictor Stinner2011-11-211-2/+5
| |
* | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner2011-11-2110-19/+18
| | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength()
* | PyUnicode_GET_SIZE() checks that PyUnicode_AsUnicode() succeedVictor Stinner2011-11-211-6/+7
| | | | | | | | using an assertion
* | Fix a typo in PC/_subprocess.cVictor Stinner2011-11-211-1/+1
| |
* | ctypes check for PyUnicode_GET_SIZE() failureVictor Stinner2011-11-212-6/+16
| |
* | test_widechar() uses the new Unicode APIVictor Stinner2011-11-211-1/+1
| | | | | | | | PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
* | Check for PyUnicode_AS_UNICODE() failureVictor Stinner2011-11-214-7/+38
| |
* | UnicodeTranslateError uses the new Unicode APIVictor Stinner2011-11-211-3/+3
| | | | | | | | The index is a character index, not a index in a Py_UNICODE* string.
* | Issue #13441: Disable temporary strxfrm() tests on SolarisVictor Stinner2011-11-211-0/+4
| |
* | (Merge 3.2) Close #13401: Skip TestFileTypeW of test_argparse if the current ↵Victor Stinner2011-11-201-0/+2
|\ \ | |/ | | | | | | | | user is root Patch written by Arfrever Frehtes Taifersar Arahesis.
| * Close #13401: Skip TestFileTypeW of test_argparse if the current user is rootVictor Stinner2011-11-201-0/+2
| | | | | | | | Patch written by Arfrever Frehtes Taifersar Arahesis.
* | UnicodeEncodeError uses the new Unicode APIVictor Stinner2011-11-201-3/+3
| | | | | | | | The index is a character index, not a index in a Py_UNICODE* string.
* | PyObject_Str() ensures that the result string is readyVictor Stinner2011-11-202-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 avoidVictor Stinner2011-11-201-2/+1
| | | | | | | | the deprecate Py_UNICODE type
* | stringlib: remove unused STRINGLIB_FILLVictor Stinner2011-11-206-6/+0
| |
* | print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()Victor Stinner2011-11-201-1/+1
| |
* | PyUnicode_AsUTF32String() calls directly _PyUnicode_EncodeUTF32(),Victor Stinner2011-11-201-6/+1
| | | | | | | | instead of calling the deprecated PyUnicode_EncodeUTF32() function
* | _PyUnicode_CheckConsistency() also checks maxchar maximum value,Victor Stinner2011-11-202-8/+17
| | | | | | | | not only its minimum value
* | Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macrosVictor Stinner2011-11-201-18/+0
| |
* | Reuse surrogate macros in UTF-16 decoderVictor Stinner2011-11-201-5/+4
| |
* | Fix PyUnicode_CopyCharacters() docVictor Stinner2011-11-201-2/+1
| |