Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #15895: my analysis was slightly off. The FILE pointer is only leaked ↵ | Christian Heimes | 2012-09-11 | 1 | -8/+6 |
| | | | | 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. | ||||
* | Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when ↵ | Christian Heimes | 2012-09-11 | 1 | -1/+5 |
| | | | | filename points to a pyc/pyo file and closeit is false. | ||||
* | Close #13119: use "\r\n" newline for sys.stdout/err on Windows | Victor Stinner | 2012-08-03 | 1 | -5/+8 |
| | | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2. | ||||
* | Fix initialization of the faulthandler module | Victor Stinner | 2012-07-31 | 1 | -4/+4 |
| | | | | | | | faulthandler requires the importlib if "-X faulthandler" option is present on the command line, so initialize faulthandler after importlib. Add also an unit test. | ||||
* | Refcounting fixes | Nick Coghlan | 2012-07-15 | 1 | -3/+7 |
| | |||||
* | Make set_main_loader static (noticed by Antoine Pitrou) | Nick Coghlan | 2012-07-15 | 1 | -1/+1 |
| | |||||
* | Actually initialize __main__.__loader__ with loader instances, not the ↵ | Nick Coghlan | 2012-07-15 | 1 | -2/+6 |
| | | | | corresponding type objects | ||||
* | Take the first step in resolving the messy pkgutil vs importlib edge cases ↵ | Nick Coghlan | 2012-07-15 | 1 | -7/+58 |
| | | | | 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) | ||||
* | Issue #15020: The program name used to search for Python's path is now ↵ | Antoine Pitrou | 2012-07-05 | 1 | -0/+4 |
|\ | | | | | | | python3 under Unix, not python. | ||||
| * | Issue #15020: The program name used to search for Python's path is now ↵ | Antoine Pitrou | 2012-07-05 | 1 | -0/+4 |
| | | | | | | | | "python3" under Unix, not "python". | ||||
* | | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵ | David Malcolm | 2012-06-22 | 1 | -1/+1 |
| | | | | | | | | allocation issues | ||||
* | | Issue #14928: Fix importlib bootstrap issues by using a custom executable ↵ | Antoine Pitrou | 2012-06-19 | 1 | -1/+10 |
| | | | | | | | | (Modules/_freeze_importlib) to build Python/importlib.h. | ||||
* | | PEP 415: Implement suppression of __context__ display with an exception ↵ | Benjamin Peterson | 2012-05-15 | 1 | -6/+3 |
| | | | | | | | | | | | | attribute This replaces the original PEP 409 implementation. See #14133. | ||||
* | | Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py. | Brett Cannon | 2012-04-29 | 1 | -4/+0 |
| | | | | | | | | Thanks to Eric Snow for the patch. | ||||
* | | Issue #14605: Make explicit the entries on sys.path_hooks that used to | Brett Cannon | 2012-04-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | be implicit. Added a warning for when sys.path_hooks is found to be empty. Also changed the meaning of None in sys.path_importer_cache to represent trying sys.path_hooks again (an interpretation of previous semantics). Also added a warning for when None was found. The long-term goal is for None in sys.path_importer_cache to represent the same as imp.NullImporter: no finder found for that sys.path entry. | ||||
* | | Issue #13959: Rename imp to _imp and add Lib/imp.py and begin | Brett Cannon | 2012-04-15 | 1 | -2/+2 |
| | | | | | | | | | | | | | | rewriting functionality in pure Python. To start, imp.new_module() has been rewritten in pure Python, put into importlib (privately) and then publicly exposed in imp. | ||||
* | | Plug a refleak. | Brett Cannon | 2012-04-15 | 1 | -2/+1 |
| | | |||||
* | | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 1 | -2/+59 |
| | | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__(). | ||||
* | | merge 3.2 | Benjamin Peterson | 2012-04-03 | 1 | -20/+31 |
|\ \ | |/ | |||||
| * | fix parse_syntax_error to clean up its resources | Benjamin Peterson | 2012-04-03 | 1 | -20/+31 |
| | | |||||
* | | Close issue #6210: Implement PEP 409 | Nick Coghlan | 2012-02-26 | 1 | -1/+5 |
| | | |||||
* | | Fix test failure in test_cmd_line by initializing the hash secret at the ↵ | Antoine Pitrou | 2012-02-21 | 1 | -1/+0 |
|\ \ | |/ | | | | | earliest point. | ||||
| * | Fix test failure in test_cmd_line by initializing the hash secret at the ↵ | Antoine Pitrou | 2012-02-21 | 1 | -1/+0 |
| | | | | | | | | earliest point. | ||||
* | | Merge 3.2: Issue #13703 plus some related test suite fixes. | Georg Brandl | 2012-02-20 | 1 | -0/+8 |
|\ \ | |/ | |||||
| * | Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵ | Georg Brandl | 2012-02-20 | 1 | -0/+8 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | ||||
| | * | Issue #13703: add a way to randomize the hash values of basic types (str, ↵ | Georg Brandl | 2012-02-20 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | ||||
* | | | Issue #12705: Raise SyntaxError when compiling multiple statements as single ↵ | Meador Inge | 2012-01-19 | 1 | -0/+3 |
| | | | | | | | | | | | | interactive statement | ||||
* | | | Fix a memory leak when initializing the standard I/O streams. | Antoine Pitrou | 2012-01-18 | 1 | -1/+2 |
|\ \ \ | |/ / | |||||
| * | | Fix a memory leak when initializing the standard I/O streams. | Antoine Pitrou | 2012-01-18 | 1 | -1/+2 |
| | | | |||||
* | | | Issue #13645: pyc files now contain the size of the corresponding source | Antoine Pitrou | 2012-01-13 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode. | ||||
* | | | Issue #13575: there is only one class type. | Florent Xicluna | 2011-12-12 | 1 | -6/+1 |
| | | | |||||
* | | | Issue #7111: Python can now be run without a stdin, stdout or stderr stream. | Antoine Pitrou | 2011-11-28 | 1 | -15/+16 |
|\ \ \ | |/ / | | | | | | | | | | 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). | ||||
| * | | Issue #7111: Python can now be run without a stdin, stdout or stderr stream. | Antoine Pitrou | 2011-11-28 | 1 | -15/+16 |
| | | | | | | | | | | | | | | | 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). | ||||
* | | | Issue #13444: When stdout has been closed explicitly, we should not attempt ↵ | Antoine Pitrou | 2011-11-26 | 1 | -2/+18 |
|\ \ \ | |/ / | | | | | | | | | | | | | to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue. | ||||
| * | | Issue #13444: When stdout has been closed explicitly, we should not attempt ↵ | Antoine Pitrou | 2011-11-26 | 1 | -2/+18 |
| | | | | | | | | | | | | | | | | | | to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue. | ||||
* | | | print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize() | Victor Stinner | 2011-11-20 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #10227: Add an allocation cache for a single slice object. | Antoine Pitrou | 2011-11-18 | 1 | -0/+1 |
| | | | | | | | | | | | | Patch by Stefan Behnel. | ||||
* | | | Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore | Victor Stinner | 2011-10-18 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | 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. | ||||
* | | | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId. | Martin v. Löwis | 2011-10-14 | 1 | -3/+6 |
| | | | |||||
* | | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -16/+16 |
| | | | |||||
* | | | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 1 | -10/+20 |
| | | | |||||
* | | | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -12/+18 |
| | | | | | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | | | - Issue #13021: Missing decref on an error path. Thanks to Suman Saha for | Barry Warsaw | 2011-09-20 | 1 | -1/+3 |
|\ \ \ | |/ / | | | | | | | finding the bug and providing a patch. | ||||
| * | | - Issue #13021: Missing decref on an error path. Thanks to Suman Saha for | Barry Warsaw | 2011-09-20 | 1 | -1/+3 |
| | | | | | | | | | | | | finding the bug and providing a patch. | ||||
* | | | Issue #9642: Fix filesystem encoding initialization: use the ANSI code page on | Victor Stinner | 2011-07-04 | 1 | -15/+15 |
| | | | | | | | | | | | | | | | | | | Windows if the mbcs codec is not available, and fail with a fatal error if we cannot get the locale encoding (if nl_langinfo(CODESET) is not available) instead of using UTF-8. | ||||
* | | | print_exception(): handle correctly PyObject_GetAttrString() failure | Victor Stinner | 2011-05-26 | 1 | -1/+1 |
| | | | | | | | | | | | | Bug found by the Clang Static Analyzer. | ||||
* | | | Merge #6498 fix from 3.2. | Georg Brandl | 2011-05-15 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | Merge #6498 fix from 3.1. | Georg Brandl | 2011-05-15 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | Closes #6498: fix several misspellings of "SystemExit" as "SystemError". | Georg Brandl | 2011-05-15 | 1 | -1/+1 |
| | | | |||||
| | * | Merged revisions 85980 via svnmerge from | Hirokazu Yamamoto | 2010-10-30 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85980 | hirokazu.yamamoto | 2010-10-31 00:08:15 +0900 | 1 line Issue #10157: Fixed refleaks in pythonrun.c. Patch by Stefan Krah. ........ |