Victor Stinner
a4ac600d6f
Issue #13706 : Support non-ASCII fill characters
14 years ago
Eric V. Smith
d25cfe66f5
Improve exception text. Closes issue 13811.
14 years ago
Meador Inge
fa21bf015d
Issue #12705 : Raise SyntaxError when compiling multiple statements as single interactive statement
14 years ago
Antoine Pitrou
1b468af7be
Issue #13722 : Avoid silencing ImportErrors when initializing the codecs registry.
14 years ago
Antoine Pitrou
aa5c5c60f1
Finally fix all test_capi refleaks
14 years ago
Antoine Pitrou
6c40eb7f42
Fix the builtin module initialization code to store the init function for future reinitialization.
14 years ago
Antoine Pitrou
2fabface50
Fix a memory leak when initializing the standard I/O streams.
14 years ago
Benjamin Peterson
c64ae92bf1
fix indentation
14 years ago
Benjamin Peterson
c8909ddd28
break out switch at correct place
14 years ago
Benjamin Peterson
205ad61313
only finish error if one occurred
14 years ago
Benjamin Peterson
c0beabc2a5
move LINENO define to where it actually belongs
14 years ago
Benjamin Peterson
55e0043a51
streamline normalizer identification a bit
14 years ago
Benjamin Peterson
d3af6e30a2
fix spelling
14 years ago
Benjamin Peterson
de5827dcd2
invert condition (head bang)
14 years ago
Benjamin Peterson
0fa35ea8f3
fix possible refleaks
14 years ago
Benjamin Peterson
89f8b80202
use helpful PyUnicode_IS_ASCII macro
14 years ago
Benjamin Peterson
5eda913cd2
PyUnicode_DecodeUTF8 will always return a ready string
14 years ago
Benjamin Peterson
8f56e0909f
rewrite such that this actually makes sense
14 years ago
Meador Inge
3388060127
Issue #13629 : Renumber the tokens in token.h to match the _PyParser_TokenNames indexes.
14 years ago
Benjamin Peterson
527c622926
make YieldFrom its own distinct from Yield ( closes #13780 )
14 years ago
Amaury Forgeot d'Arc
0a239e9191
Fix compilation with C89 compilers (Windows...)
14 years ago
Benjamin Peterson
0010256de4
fold into one if statement
14 years ago
Benjamin Peterson
a12d5c62f7
fix formatting
14 years ago
Benjamin Peterson
f606e682a4
add another year to glorious PSF IP
14 years ago
Benjamin Peterson
0296a56520
NULL and no exception set from tp_iternext means StopIteration
14 years ago
Georg Brandl
bc3b682923
Closes #13761 : add a "flush" keyword argument to print().
14 years ago
Antoine Pitrou
5136ac0ca2
Issue #13645 : pyc files now contain the size of the corresponding source
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
14 years ago
Nick Coghlan
1f7ce62bd6
Implement PEP 380 - 'yield from' ( closes #11682 )
14 years ago
Antoine Pitrou
3a5d4cb940
Issue #13748 : Raw bytes literals can now be written with the `rb` prefix as well as `br`.
14 years ago
Benjamin Peterson
21e0da228d
remove some usage of Py_UNICODE_TOUPPER/LOWER
14 years ago
Victor Stinner
3fe553160c
Add a new PyUnicode_Fill() function
It is faster than the unicode_fill() function which was implemented in
formatter_unicode.c.
14 years ago
Antoine Pitrou
0e576f1f50
Issue #13626 : Add support for SSL Diffie-Hellman key exchange, through the
SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option.
14 years ago
Antoine Pitrou
2b1cc89572
_Py_fopen now allows bytes filenames under non-Windows platforms.
14 years ago
Victor Stinner
bd0850b857
import.c now catchs _Py_stat() exceptions
_Py_stat() now returns -2 if an exception was raised.
14 years ago
Victor Stinner
1b57967b96
Issue #13560 : Locale codec functions use the classic "errors" parameter,
instead of surrogateescape
So it would be possible to support more error handlers later.
14 years ago
Victor Stinner
1f33f2b0c3
Issue #13560 : os.strerror() now uses the current locale encoding instead of UTF-8
14 years ago
Victor Stinner
af02e1c85a
Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()
* 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.
14 years ago
Florent Xicluna
aa6c1d240f
Issue #13575 : there is only one class type.
14 years ago
Florent Xicluna
5126df602c
Remove obsolete py3k comment.
14 years ago
Charles-François Natali
1659b83b1d
Followup to a541bda2f5e2: Add a short comment.
14 years ago
Charles-François Natali
7c0b0cc9f9
Issue #11051 : Reduce the number of syscalls per import.
14 years ago
Mark Dickinson
47862d4c0e
Issue #9530 : Fix undefined behaviour due to signed overflow in Python/formatter_unicode.c.
14 years ago
Victor Stinner
ee450093a9
PyCodec_IgnoreErrors() avoids the deprecated "u#" format
14 years ago
Antoine Pitrou
11942a58a1
Issue #7111 : Python can now be run without a stdin, stdout or stderr stream.
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).
14 years ago
Antoine Pitrou
d7c8fbf89e
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
This also adds a test for issue #5319 , whose resolution introduced the issue.
14 years ago
Antoine Pitrou
86a36b500a
PEP 3155 / issue #13448 : Qualified name for classes and functions.
14 years ago
Amaury Forgeot d'Arc
5e8f810411
Issue #13436 : commit regenerated Python-ast.c
14 years ago
Charles-François Natali
a233df885b
Issue #13156 : _PyGILState_Reinit(): Re-associate the auto thread state with the
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).
14 years ago
Victor Stinner
63ab875cfe
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide
14 years ago
Victor Stinner
9d3b93ba30
Use the new Unicode API
* 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()
14 years ago