- 12 Sep, 2010 3 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Benjamin Peterson authored
-
- 11 Sep, 2010 14 commits
-
-
Hirokazu Yamamoto authored
-
R. David Murray authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Éric Araujo authored
-
Victor Stinner authored
mbcs (Windows default filesystem encoding) is now strict by default, and depending on the code page, TESTFN_UNICODE may not be encodable to bytes. Remove also unused "encoded" argument from _do_directory() method.
-
Vinay Sajip authored
-
Raymond Hettinger authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Victor Stinner authored
a non-ASCII byte in the format string. Document also the encoding.
-
Nick Coghlan authored
-
Victor Stinner authored
os.listdir(str) always returns unicode and it can return non-ascii filenames even if supports_unicode_filenames is False.
-
Raymond Hettinger authored
-
- 10 Sep, 2010 23 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Victor Stinner authored
-
Victor Stinner authored
the value with filesystem encoding and surrogateescape (instead of utf-8 in strict mode).
-
Benjamin Peterson authored
-
Victor Stinner authored
Py_Main() uses _Py_wchar2char() + PyUnicode_FromWideChar() instead of PyUnicode_DecodeFSDefault(), because the PyCodec machinery is not ready yet.
-
Benjamin Peterson authored
-
Victor Stinner authored
Fix a crash if Python is compiled in pydebug mode.
-
Victor Stinner authored
os.environ.data was a str dict in Python 3.1. In Python 3.2 on UNIX/BSD, os.environ.data is now a bytes dict: mark it as protected to avoid confusion.
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Victor Stinner authored
environment variable to set the filesystem encoding at Python startup. sys.setfilesystemencoding() creates inconsistencies because it is unable to reencode all filenames in all objects.
-
Benjamin Peterson authored
-
Amaury Forgeot d'Arc authored
namespace if it occurs as a free variable in a nested block. This limitation of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF). This sample was valid in 2.6, but fails to compile in 3.x without this change:: >>> def f(): ... def print_error(): ... print(e) ... try: ... something ... except Exception as e: ... print_error() ... # implicit "del e" here This sample has always been invalid in Python, and now works:: >>> def outer(x): ... def inner(): ... return x ... inner() ... del x There is no need to bump the PYC magic number: the new opcode is used for code that did not compile before.
-
Georg Brandl authored
-
Amaury Forgeot d'Arc authored
Use it here again.
-
Antoine Pitrou authored
be built as a shared library. Patch by Sébastien Sablé.
-
Amaury Forgeot d'Arc authored
nested inside the test suite. def test_me(): exec("""if 1: ...code... """) No other change here.
-
Benjamin Peterson authored
-
Antoine Pitrou authored
-
Amaury Forgeot d'Arc authored
-
Nick Coghlan authored
-
Nick Coghlan authored
-