525 Commits (e4d65e3aab980cd8c2347d71bc6e26c19227953b)

Author SHA1 Message Date
Victor Stinner ba30883f60 Issue #18520: Fix initstdio(), handle PySys_SetObject() failure 13 years ago
Victor Stinner 62ce62a3a1 Issue #18520: initsite() is a little bit more verbose when import site fails 13 years ago
Victor Stinner 1c8f059019 Issue #18520: Add a new PyStructSequence_InitType2() function, same than 13 years ago
Victor Stinner d786ad55ef Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() error 13 years ago
Victor Stinner 26f91999b4 Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in structseq.c 13 years ago
Victor Stinner 49fc8ece81 Issue #18203: Add _PyMem_RawStrdup() and _PyMem_Strdup() 13 years ago
Victor Stinner 51fa458d0a Issue #18203: Fix Py_Finalize(): destroy the GIL after the last call to 13 years ago
Antoine Pitrou 5f454a07a0 Issue #1545463: Global variables caught in reference cycles are now garbage-collected at shutdown. 13 years ago
Antoine Pitrou fd417cc54b Fix crash caused by 8c1385205a35 13 years ago
Brett Cannon 13853a67cf #17115: I hate you MS for not supporting C99. 13 years ago
Antoine Pitrou 957a23b088 Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again. 13 years ago
Brett Cannon 4c14b5de1c #17115,17116: Have modules initialize the __package__ and __loader__ 13 years ago
Benjamin Peterson fe1b22af0a ignore errors when trying to fetch sys.stdin.encoding (closes #17863) 13 years ago
Antoine Pitrou 208ac5cf65 Issue #17832: fix a compilation warning about a function prototype. 13 years ago
Ezio Melotti 1f8898a591 #17323: The "[X refs, Y blocks]" printed by debug builds has been disabled by default. It can be re-enabled with the `-X showrefcount` option. 13 years ago
Antoine Pitrou f9d0b1256f Issue #13390: New function :func:`sys.getallocatedblocks()` returns the number of memory blocks currently allocated. 13 years ago
Hynek Schlawack b271b3e188 Issue #15001: fix segfault on "del sys.modules['__main__']" 13 years ago
Hynek Schlawack 5c6b3e214c Issue #15001: fix segfault on "del sys.module['__main__']" 13 years ago
Andrew Svetlov 90c0eb28c5 Issue #16218: Support non ascii characters in python launcher. 13 years ago
Christian Heimes 6d29352cfd Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening. 13 years ago
Christian Heimes 6a77af690f Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false. 13 years ago
Christian Heimes 04ac4c1cb8 Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening. 13 years ago
Christian Heimes eeb5635843 Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false. 13 years ago
Victor Stinner 90ef747e04 Close #13119: use "\r\n" newline for sys.stdout/err on Windows 14 years ago
Victor Stinner 7b3f0fa68e Close #13119: use "\r\n" newline for sys.stdout/err on Windows 14 years ago
Victor Stinner d5698cbbca Fix initialization of the faulthandler module 14 years ago
Nick Coghlan b7a5894c64 Refcounting fixes 14 years ago
Nick Coghlan ceda83c6a9 Make set_main_loader static (noticed by Antoine Pitrou) 14 years ago
Nick Coghlan 3f94cbf9eb Actually initialize __main__.__loader__ with loader instances, not the corresponding type objects 14 years ago
Nick Coghlan 85e729ec3b Take the first step in resolving the messy pkgutil vs importlib edge cases by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ correctly so that runpy still works (Affects #15343, #15314, #15357) 14 years ago
Antoine Pitrou 01cca5e451 Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python". 14 years ago
David Malcolm 49526f48fc Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues 14 years ago
Antoine Pitrou e67f48ce5e Issue #14928: Fix importlib bootstrap issues by using a custom executable (Modules/_freeze_importlib) to build Python/importlib.h. 14 years ago
Benjamin Peterson d5a1c44455 PEP 415: Implement suppression of __context__ display with an exception attribute 14 years ago
Brett Cannon 62228dbd6c Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py. 14 years ago
Brett Cannon e0d88a173c Issue #14605: Make explicit the entries on sys.path_hooks that used to 14 years ago
Brett Cannon 6f44d66bc4 Issue #13959: Rename imp to _imp and add Lib/imp.py and begin 14 years ago
Brett Cannon fc9ca274b8 Plug a refleak. 14 years ago
Brett Cannon fd0741555b Issue #2377: Make importlib the implementation of __import__(). 14 years ago
Benjamin Peterson 80d50428ce fix parse_syntax_error to clean up its resources 14 years ago
Benjamin Peterson b9348e76e4 fix parse_syntax_error to clean up its resources 14 years ago
Nick Coghlan ab7bf2143e Close issue #6210: Implement PEP 409 14 years ago
Antoine Pitrou 776af4002b Fix crash at startup with -W options. 14 years ago
Antoine Pitrou cc3fa88a9c Fix crash at startup with -W options. 14 years ago
Antoine Pitrou 86838b02f0 Fix test failure in test_cmd_line by initializing the hash secret at the earliest point. 14 years ago
Barry Warsaw 1e13eb084f - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED 14 years ago
Georg Brandl 2daf6ae249 Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) 14 years ago
Meador Inge fa21bf015d Issue #12705: Raise SyntaxError when compiling multiple statements as single interactive statement 14 years ago
Antoine Pitrou 2fabface50 Fix a memory leak when initializing the standard I/O streams. 14 years ago
Antoine Pitrou 5136ac0ca2 Issue #13645: pyc files now contain the size of the corresponding source 14 years ago