summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* make YieldFrom its own distinct from Yield (closes #13780)Benjamin Peterson2012-01-144-21/+67
|
* Fix compilation with C89 compilers (Windows...)Amaury Forgeot d'Arc2012-01-131-1/+1
|
* NULL and no exception set from tp_iternext means StopIterationBenjamin Peterson2012-01-131-1/+2
|
* Closes #13761: add a "flush" keyword argument to print().Georg Brandl2012-01-131-5/+19
|
* Issue #13645: pyc files now contain the size of the corresponding sourceAntoine Pitrou2012-01-133-7/+23
| | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode.
* Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan2012-01-137-115/+198
|
* Issue #13748: Raw bytes literals can now be written with the `rb` prefix as ↵Antoine Pitrou2012-01-121-7/+12
| | | | well as `br`.
* merge 3.2Benjamin Peterson2012-01-121-3/+1
|\
| * fold into one if statementBenjamin Peterson2012-01-121-3/+1
| |
* | remove some usage of Py_UNICODE_TOUPPER/LOWERBenjamin Peterson2012-01-122-15/+21
| |
* | Add a new PyUnicode_Fill() functionVictor Stinner2012-01-031-15/+6
| | | | | | | | | | It is faster than the unicode_fill() function which was implemented in formatter_unicode.c.
* | merge 3.2Benjamin Peterson2012-01-031-1/+1
|\ \ | |/
| * fix formattingBenjamin Peterson2012-01-031-1/+1
| |
* | merge 3.2Benjamin Peterson2012-01-011-1/+1
|\ \ | |/
| * add another year to glorious PSF IPBenjamin Peterson2012-01-011-1/+1
| |
* | Issue #13626: Add support for SSL Diffie-Hellman key exchange, through theAntoine Pitrou2011-12-221-0/+6
| | | | | | | | SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option.
* | _Py_fopen now allows bytes filenames under non-Windows platforms.Antoine Pitrou2011-12-191-2/+2
| |
* | (Merge 3.2) Handle correctly _Py_fopen() error: don't replace the exceptionVictor Stinner2011-12-181-9/+21
|\ \ | |/
* | import.c now catchs _Py_stat() exceptionsVictor Stinner2011-12-182-11/+35
| | | | | | | | _Py_stat() now returns -2 if an exception was raised.
* | Issue #13560: Locale codec functions use the classic "errors" parameter,Victor Stinner2011-12-171-1/+1
| | | | | | | | | | | | instead of surrogateescape So it would be possible to support more error handlers later.
* | Issue #13560: os.strerror() now uses the current locale encoding instead of ↵Victor Stinner2011-12-171-8/+9
| | | | | | | | UTF-8
* | Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()Victor Stinner2011-12-161-9/+16
| | | | | | | | | | | | | | | | | | | | | | * PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() decode a string from the current locale encoding * _Py_char2wchar() writes an "error code" in the size argument to indicate if the function failed because of memory allocation failure or because of a decoding error. The function doesn't write the error message directly to stderr. * Fix time.strftime() (if wcsftime() is missing): decode strftime() result from the current locale encoding, not from the filesystem encoding.
* | Issue #13575: there is only one class type.Florent Xicluna2011-12-122-7/+2
| |
* | Merge 3.2Florent Xicluna2011-12-091-1/+0
|\ \ | |/
| * Remove obsolete py3k comment.Florent Xicluna2011-12-091-1/+0
| |
* | Followup to a541bda2f5e2: Add a short comment.Charles-François Natali2011-12-071-0/+1
| |
* | Issue #11051: Reduce the number of syscalls per import.Charles-François Natali2011-12-071-2/+1
| |
* | Issue #9530: Fix undefined behaviour due to signed overflow in ↵Mark Dickinson2011-12-011-9/+7
| | | | | | | | Python/formatter_unicode.c.
* | PyCodec_IgnoreErrors() avoids the deprecated "u#" formatVictor Stinner2011-12-011-2/+1
| |
* | Issue #7111: Python can now be run without a stdin, stdout or stderr stream.Antoine Pitrou2011-11-281-15/+16
|\ \ | |/ | | | | | | It was already the case with Python 2. However, the corresponding sys module entries are now set to None (instead of an unusable file object).
| * Issue #7111: Python can now be run without a stdin, stdout or stderr stream.Antoine Pitrou2011-11-281-15/+16
| | | | | | | | | | It was already the case with Python 2. However, the corresponding sys module entries are now set to None (instead of an unusable file object).
* | Issue #13444: When stdout has been closed explicitly, we should not attempt ↵Antoine Pitrou2011-11-261-2/+18
|\ \ | |/ | | | | | | | | to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue.
| * Issue #13444: When stdout has been closed explicitly, we should not attempt ↵Antoine Pitrou2011-11-261-2/+18
| | | | | | | | | | | | to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue.
* | PEP 3155 / issue #13448: Qualified name for classes and functions.Antoine Pitrou2011-11-253-21/+125
| |
* | Merge branch 3.2Amaury Forgeot d'Arc2011-11-221-5/+1
|\ \ | |/
| * Issue #13436: commit regenerated Python-ast.cAmaury Forgeot d'Arc2011-11-221-5/+1
| |
* | Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with theCharles-François Natali2011-11-221-4/+5
|\ \ | |/ | | | | | | | | TLS key only if the thread that called fork() had an associated auto thread state (this might not be the case for example for a thread created outside of Python calling into a subinterpreter).
| * Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with theCharles-François Natali2011-11-221-4/+5
| | | | | | | | | | | | TLS key only if the thread that called fork() had an associated auto thread state (this might not be the case for example for a thread created outside of Python calling into a subinterpreter).
* | Remove "#ifdef Py_UNICODE_WIDE": Python is now always wideVictor Stinner2011-11-222-17/+4
| |
* | Use the new Unicode APIVictor Stinner2011-11-221-1/+1
| | | | | | | | | | | | | | | | * 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()
* | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner2011-11-211-5/+5
| | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength()
* | Check for PyUnicode_AS_UNICODE() failureVictor Stinner2011-11-211-1/+6
| |
* | print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()Victor Stinner2011-11-201-1/+1
| |
* | Issue #10227: Add an allocation cache for a single slice object.Antoine Pitrou2011-11-181-0/+1
| | | | | | | | Patch by Stefan Behnel.
* | Catch PyUnicode_AS_UNICODE() errors in fileutils.cVictor Stinner2011-11-161-2/+11
| |
* | Catch PyUnicode_AS_UNICODE() errorsVictor Stinner2011-11-161-14/+33
| |
* | Use PyUnicode_FromFormat() to create the temporary file name.Antoine Pitrou2011-11-151-27/+14
| | | | | | | | | | Also, as in importlib, append the id of an object to make the file name pseudo-random.
* | Fix regression under Windows following b75b41237380 (from issue #13392)Antoine Pitrou2011-11-151-0/+5
| |
* | Issue #13392: Writing a pyc file should now be atomic under Windows as well.Antoine Pitrou2011-11-151-10/+38
| |
* | Issue #13303: Fix bytecode file default permission.Charles-François Natali2011-11-101-6/+5
| |