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
Victor Stinner
9e30aa52fd
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
And PyUnicode_GetSize() => PyUnicode_GetLength()
14 years ago
Victor Stinner
3335447646
Check for PyUnicode_AS_UNICODE() failure
14 years ago
Victor Stinner
e251d6d69d
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
14 years ago
Antoine Pitrou
f34a0cdc6c
Issue #10227 : Add an allocation cache for a single slice object.
Patch by Stefan Behnel.
14 years ago
Victor Stinner
ee587eaa36
Catch PyUnicode_AS_UNICODE() errors in fileutils.c
14 years ago
Victor Stinner
1f7951711c
Catch PyUnicode_AS_UNICODE() errors
14 years ago
Antoine Pitrou
8ad982cccf
Use PyUnicode_FromFormat() to create the temporary file name.
Also, as in importlib, append the id of an object to make the file name
pseudo-random.
14 years ago
Antoine Pitrou
1d8f3f451c
Fix regression under Windows following b75b41237380 (from issue #13392 )
14 years ago
Antoine Pitrou
28e401e717
Issue #13392 : Writing a pyc file should now be atomic under Windows as well.
14 years ago
Charles-François Natali
0c929d9d39
Issue #13303 : Fix bytecode file default permission.
14 years ago
Martin v. Löwis
d10759f6ed
Make _PyUnicode_FromId return borrowed references.
http://mail.python.org/pipermail/python-dev/2011-November/114347.html
14 years ago
Philip Jenvey
50add04836
quote the type name for improved readability
14 years ago
Antoine Pitrou
0d776b1ce8
Issue #13342 : input() used to ignore sys.stdin's and sys.stdout's unicode
error handler in interactive mode (when calling into PyOS_Readline()).
14 years ago
Amaury Forgeot d'Arc
97c1bef6a4
Issue #13343 : Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
14 years ago
Victor Stinner
c06bb7affd
Avoid the Py_UNICODE type in codecs.c
14 years ago
Victor Stinner
b31f1bcd99
PyCodec_XMLCharRefReplaceError(): Remove unused variable
14 years ago
Martin v. Löwis
8ba79306d1
Fix C89 incompatibility.
14 years ago
Martin v. Löwis
b09af03b8a
Port error handlers from Py_UNICODE indexing to code point indexing.
14 years ago
Éric Araujo
5df1108de2
Add signatures to the docstring of functions added to imp by PEP 3147
14 years ago
Antoine Pitrou
8db076cf8a
Issue #10363 : Deallocate global locks in Py_Finalize().
14 years ago
Florent Xicluna
4d46c2a722
Remove unused variable.
14 years ago
Nick Coghlan
de31b191e5
Issue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.
14 years ago
Charles-François Natali
e695eec24a
Issue #13303 : Fix a race condition in the bytecode file creation.
14 years ago
Victor Stinner
f4afa43fd4
Issue #13226 : Update sys.setdlopenflags() docstring
Refer to os.RTLD_xxx constants instead of ctypes and DLFCN modules.
14 years ago
Martin v. Löwis
f45dee998f
Port import_module_level to Unicode API.
14 years ago
Martin v. Löwis
796ea53937
Port PyImport_ReloadModule to Unicode API.
14 years ago
Antoine Pitrou
b528fcf954
Fix test_imp failure under Windows
14 years ago
Martin v. Löwis
9af29d39af
Rewrite find_module_path using unicode API.
14 years ago
Martin v. Löwis
2cc0cc54a2
Fix off-by-one error.
14 years ago
Martin v. Löwis
fadcd317fa
Drop unused macros. Use CACHEDIR consistently.
14 years ago
Martin v. Löwis
8a0ef78e8c
Rewrite make_source_pathname using Unicode API.
14 years ago
Martin v. Löwis
30260a7fe3
Add ready checks for make_compiled_pathname.
14 years ago
Martin v. Löwis
2db72863fb
Reformulate make_compiled_pathname in terms of unicode objects.
14 years ago
Victor Stinner
3a50e7056e
Issue #12281 : Rewrite the MBCS codec to handle correctly replace and ignore
error handlers on all Windows versions. The MBCS codec is now supporting all
error handlers, instead of only replace to encode and ignore to decode.
14 years ago
Victor Stinner
9ea8e4c29d
Instantiate the OS-related exception as soon as we raise it, so that "except"
works properly.
PyErr_SetFromErrnoWithFilenameObject() was already fixed by the changeset
793c75177d28. This commit fixes PyErr_SetExcFromWindowsErrWithFilenameObject(),
used on Windows.
14 years ago
Antoine Pitrou
707033a694
Issue #13146 : Writing a pyc file is now atomic under POSIX.
14 years ago
Martin v. Löwis
1c67dd9b15
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.
14 years ago
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
14 years ago
Victor Stinner
f5cff56a1b
Issue #13088 : Add shared Py_hexdigits constant to format a number into base 16
14 years ago
Victor Stinner
9d663d0788
convertsimple(): "str without bytes" => "str without characters"
14 years ago