summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
AgeCommit message (Collapse)AuthorLines
2012-04-25Issue #14605: Make explicit the entries on sys.path_hooks that used toBrett Cannon-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.
2012-04-15Issue #13959: Rename imp to _imp and add Lib/imp.py and beginBrett Cannon-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.
2012-04-15Plug a refleak.Brett Cannon-2/+1
2012-04-14Issue #2377: Make importlib the implementation of __import__().Brett Cannon-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__().
2012-04-03merge 3.2Benjamin Peterson-20/+31
2012-04-03fix parse_syntax_error to clean up its resourcesBenjamin Peterson-20/+31
2012-02-26Close issue #6210: Implement PEP 409Nick Coghlan-1/+5
2012-02-21Fix test failure in test_cmd_line by initializing the hash secret at the ↵Antoine Pitrou-1/+0
earliest point.
2012-02-21Fix test failure in test_cmd_line by initializing the hash secret at the ↵Antoine Pitrou-1/+0
earliest point.
2012-02-21Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl-0/+8
2012-02-20Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl-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.
2012-02-20Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl-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.
2012-01-19Issue #12705: Raise SyntaxError when compiling multiple statements as single ↵Meador Inge-0/+3
interactive statement
2012-01-18Fix a memory leak when initializing the standard I/O streams.Antoine Pitrou-1/+2
2012-01-18Fix a memory leak when initializing the standard I/O streams.Antoine Pitrou-1/+2
2012-01-13Issue #13645: pyc files now contain the size of the corresponding sourceAntoine Pitrou-0/+2
code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode.
2011-12-12Issue #13575: there is only one class type.Florent Xicluna-6/+1
2011-11-28Issue #7111: Python can now be run without a stdin, stdout or stderr stream.Antoine Pitrou-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).
2011-11-28Issue #7111: Python can now be run without a stdin, stdout or stderr stream.Antoine Pitrou-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).
2011-11-26Issue #13444: When stdout has been closed explicitly, we should not attempt ↵Antoine Pitrou-2/+18
to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue.
2011-11-26Issue #13444: When stdout has been closed explicitly, we should not attempt ↵Antoine Pitrou-2/+18
to flush it at shutdown and print an error. This also adds a test for issue #5319, whose resolution introduced the issue.
2011-11-20print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()Victor Stinner-1/+1
2011-11-18Issue #10227: Add an allocation cache for a single slice object.Antoine Pitrou-0/+1
Patch by Stefan Behnel.
2011-10-18Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignoreVictor Stinner-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.
2011-10-14Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis-3/+6
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-16/+16
2011-10-10Use identifier API for PyObject_GetAttrString.Martin v. Löwis-10/+20
2011-10-09Add API for static strings, primarily good for identifiers.Martin v. Löwis-12/+18
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-09-20- Issue #13021: Missing decref on an error path. Thanks to Suman Saha forBarry Warsaw-1/+3
finding the bug and providing a patch.
2011-09-20- Issue #13021: Missing decref on an error path. Thanks to Suman Saha forBarry Warsaw-1/+3
finding the bug and providing a patch.
2011-07-04Issue #9642: Fix filesystem encoding initialization: use the ANSI code page onVictor Stinner-14/+14
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.
2011-05-26print_exception(): handle correctly PyObject_GetAttrString() failureVictor Stinner-1/+1
Bug found by the Clang Static Analyzer.
2011-05-15Merge #6498 fix from 3.2.Georg Brandl-1/+1
2011-05-15Merge #6498 fix from 3.1.Georg Brandl-1/+1
2011-05-15Closes #6498: fix several misspellings of "SystemExit" as "SystemError".Georg Brandl-1/+1
2011-05-07faulthandler: dump all threads by defaultVictor Stinner-1/+1
* Set the default value of all_threads arguments to True * Py_FatalError() dumps all threads, instead of only the current thread Dump only the current thread is not reliable. In some cases, Python is unable to retrieve the state of the current thread and so is unable to dump the traceback. faulthandler keeps a reference to the interpreter and so is always able to dump the traceback of all threads.
2011-05-04Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou-4/+11
interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
2011-05-04Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou-4/+11
interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
2011-04-27Issue #10914: Initialize correctly the filesystem codec when creating a newVictor Stinner-8/+15
subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec. Add fscodec_initialized attribute to the PyInterpreterState structure.
2011-04-27Issue #10914: Initialize correctly the filesystem codec when creating a newVictor Stinner-8/+15
subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec. Add fscodec_initialized attribute to the PyInterpreterState structure.
2011-04-27Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)Victor Stinner-1/+1
... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
2011-04-27Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)Victor Stinner-1/+1
... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
2011-04-05Issue #10785: Store the filename as Unicode in the Python parser.Victor Stinner-16/+24
2011-04-01Issue #11393: The fault handler handles also SIGABRTVictor Stinner-0/+1
2011-03-31Issue #11393: Add the new faulthandler moduleVictor Stinner-0/+21
2011-03-20Fix #11586: typo in initfsencoding()Victor Stinner-1/+1
Patch written by Ray Allen.
2011-03-20Fix #11586: typo in initfsencoding()Victor Stinner-1/+1
Patch written by Ray Allen.
2011-02-23Merged revisions 88530 via svnmerge fromVictor Stinner-1/+10
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88530 | victor.stinner | 2011-02-23 13:07:37 +0100 (mer., 23 févr. 2011) | 4 lines Issue #11272: Fix input() and sys.stdin for Windows newline On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses universal newline (replace '\r\n' by '\n'). ........
2011-02-23Issue #11272: Fix input() and sys.stdin for Windows newlineVictor Stinner-1/+10
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses universal newline (replace '\r\n' by '\n').
2011-01-04Issue #9566: use Py_ssize_t instead of intVictor Stinner-1/+2