Antoine Pitrou
24201d497c
Issue #18776 : atexit callbacks now display their full traceback when they raise an exception.
12 years ago
Kristján Valur Jónsson
0a7697b718
Catch a few extra error cases in marshal.c
12 years ago
Kristján Valur Jónsson
5983258bf2
Issue #19219 Remove a lot of "retval = NULL" statements, now that retval
is pre-initialized to that value. Test show a 5% speedup as a bonus.
12 years ago
Christian Heimes
3572842c19
Issue #19219 : retval may be used uninitialized value
CID 486239: Uninitialized pointer read (UNINIT)
12 years ago
Antoine Pitrou
b30f271299
Try to fix weird assertion error on the Fedora buildbot.
12 years ago
Antoine Pitrou
d01d396e7f
Issue #4555 : All exported C symbols are now prefixed with either "Py" or "_Py".
("make smelly" now clean)
12 years ago
Antoine Pitrou
409b53840b
Don't export internal symbols ("make smelly")
12 years ago
Antoine Pitrou
1164dfcb86
Issue #19219 : Speed up marshal.loads(), and make pyc files slightly (5% to 10%) smaller.
12 years ago
Victor Stinner
8d19767403
Close #19199 : Remove ``PyThreadState.tick_counter`` field
12 years ago
Antoine Pitrou
59c900d3bf
Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.
12 years ago
Georg Brandl
c6a2c9b466
Closes #15213 : update comment for _PyOS_URandom
12 years ago
Eric Snow
5c4b4c530f
[issue19152] Revert 832579dbafd6.
12 years ago
Eric Snow
af8566c847
[issue19152] Add ExtensionFileLoader.get_filename().
12 years ago
Eric Snow
5179445520
[issue19152] Add ExtensionFileLoader.get_filename().
12 years ago
Eric Snow
efbc475278
[issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
12 years ago
Eric Snow
e8bbfebee0
[issue19951] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
12 years ago
Benjamin Peterson
305e5aac85
don't scale compiler stack frames if the recursion limit is huge ( closes #19098 )
12 years ago
Serhiy Storchaka
bf28d2dcad
Issue #18818 : The "encodingname" part of PYTHONIOENCODING is now optional.
12 years ago
Antoine Pitrou
7b4769937f
Issue #18808 : Thread.join() now waits for the underlying thread state to be destroyed before returning.
This prevents unpredictable aborts in Py_EndInterpreter() when some non-daemon threads are still running.
13 years ago
Victor Stinner
b034eee711
Close #18954 : Fix some typo in fileutils.c comments
Patch written by Vajrasky Kok.
13 years ago
Meador Inge
c9e1dcdd53
Issue #16826 : Revert fix while Windows issues are being worked out.
13 years ago
Meador Inge
d151da9ef7
Issue #16826 : Don't check for PYTHONCASEOK when using -E.
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
13 years ago
Raymond Hettinger
69492dab07
Factor-out the common code for setting a KeyError.
13 years ago
Antoine Pitrou
4879a963d4
Issue #18756 : os.urandom() now uses a lazily-opened persistent file descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads.
13 years ago
Victor Stinner
55a1220bdb
pythonrun.c: use MAXPATHLEN instead of PATH_MAX
PATH_MAX is not available on "MIPS IRIX 6.5.30 [SB] 3.x" buildbot
13 years ago
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
13 years ago
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
error messages and comments.
13 years ago
Victor Stinner
14e461d5b9
Close #11619 : The parser and the import machinery do not encode Unicode
filenames anymore on Windows.
13 years ago
Victor Stinner
c82bfd871f
Issue #18664 , #18408 : Rewrite PyErr_WriteUnraisable() to handle errors
* Catch PyFile_WriteString() and PyFile_WriteObject() errors
* Clear the current exception on _PyObject_GetAttrId() failure
* Use PyUnicode_CompareWithASCIIString() and PyFile_WriteObject() instead of
_PyUnicode_AsString() and strcmp() to avoid Unicode encoding error. stderr
has a more tolerant error handler than utf-8/strict.
13 years ago
Ezio Melotti
4af4d273bd
#18839 : document that sys.exit() will not accept a non-integer numeric value as exit status.
13 years ago
Antoine Pitrou
7eaf3f7080
Issue #18808 : Non-daemon threads are now automatically joined when a sub-interpreter is shutdown (it would previously dump a fatal error).
13 years ago
Benjamin Peterson
3a7dffa4ce
remove support for compiling on systems without getcwd()
Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.
13 years ago
Victor Stinner
cba2e3c2e9
remove unused declaration
13 years ago
Christian Heimes
01a513b5d3
Remove last bit of GNU pth thread
PEP 11:
Name: Systems using --with-pth (GNU pth threads)
Unsupported in: Python 3.2
Code removed in: Python 3.3
13 years ago
Antoine Pitrou
ec34ab5010
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
13 years ago
Antoine Pitrou
9ed5f27266
Issue #18722 : Remove uses of the "register" keyword in C code.
13 years ago
Antoine Pitrou
40322e6ad5
Issue #10241 : Clear extension module dict copies at interpreter shutdown.
Patch by Neil Schemenauer, minimally modified.
(re-apply after fix for tkinter-related crash)
13 years ago
Christian Heimes
ad73a9cf97
Issue #16400 : Add command line option for isolated mode.
-I
Run Python in isolated mode. This also implies -E and -s. In isolated mode
sys.path contains neither the script’s directory nor the user’s
site-packages directory. All PYTHON* environment variables are ignored,
too. Further restrictions may be imposed to prevent the user from
injecting malicious code.
13 years ago
Antoine Pitrou
79ba3882ad
Improve verbose reporting of shutdown phase by using the "public" module name
13 years ago
Antoine Pitrou
58720d6145
Issue #17934 : Add a clear() method to frame objects, to help clean up expensive details (local variables) and break reference cycles.
13 years ago
Antoine Pitrou
95db2e7b8a
Backout 62658d9d8926 (issue #10241 ): it causes a crash at shutdown when deallocating a Tkapp object.
13 years ago
Antoine Pitrou
84f31a5676
Issue #10241 : Clear extension module dict copies at interpreter shutdown.
Patch by Neil Schemenauer, minimally modified.
13 years ago
Antoine Pitrou
dcedaf6e53
Issue #18214 : Improve finalization of Python modules to avoid setting their globals to None, in most cases.
13 years ago
Antoine Pitrou
32d483c39b
Fix style
13 years ago
Victor Stinner
da2cbb4fc8
Issue #15893 : Remove dead code
13 years ago
Victor Stinner
c588feeea9
Issue #15893 : Improve error handling in main() and Py_FrozenMain()
* handle _PyMem_RawStrdup() failure
* Py_FrozenMain() releases memory on error
* Py_FrozenMain() duplicates the old locale, as done in main()
13 years ago
Victor Stinner
739cf4e3e6
Py_FrozenMain() now uses _Py_char2wchar() to decode command line arguments, as
done in main()
13 years ago
Victor Stinner
b5245bec93
Issue #18203 : Replace PyMem_Malloc() with PyMem_RawMalloc() at Python initialization
13 years ago
Victor Stinner
36577e4e8c
Issue #15893 : frozenmain.c now handles PyMem_Malloc() failure
13 years ago
Christian Heimes
70c94e7896
Issue #18552 : Check return value of PyArena_AddPyObject() in obj2ast_object().
13 years ago