summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
AgeCommit message (Collapse)AuthorLines
2018-07-24bpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. ↵Miss Islington (bot)-0/+4
(GH-8262) (GH-8424) (cherry picked from commit aba24ff3601ddc86b85e01880a8be596fb799287) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-12bpo-34080: Fix a memory leak in the compiler. (GH-8222) (GH-8257)Miss Islington (bot)-1/+1
(cherry picked from commit 993030aac576710a46b3dd0b4864f819d4a94145) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-03bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit ↵Miss Islington (bot)-1/+2
(GH-7918) (GH-8069) PyErr_Print() will not return when the exception is a SystemExit, so decref the __main__ module object in that case. (cherry picked from commit d8cba5d16f1333fd625726fc72e66afbd45b8d00) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-23bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)Miss Islington (bot)-6/+9
Directly executed pyc files were being kept open longer than necessary. (cherry picked from commit ea737751b10fff752aafed0231e8a02b82ba365d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2017-11-12[3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). ↵xdegaye-18/+42
(#4379) (cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
2017-10-24[3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)xdegaye-3/+9
(cherry picked from commit 66caacf2f0d6213b049a3097556e28e30440b900)
2017-10-18[3.6] bpo-28603: Fix formatting tracebacks for unhashable exceptions ↵Miss Islington (bot)-3/+18
(GH-4014) (#4024) (cherry picked from commit de86073a761cd3539aaca6f886a1f55effc0d9da)
2016-12-19Issue #25677: Merge SyntaxError caret positioning from 3.5Martin Panter-1/+1
2016-12-11Issue #25677: Correct syntax error caret for indented blocks.Martin Panter-1/+1
Based on patch by Michael Layzell.
2016-11-20Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka-4/+4
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
2016-11-16Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.Serhiy Storchaka-1/+1
The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
2016-11-16Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.Serhiy Storchaka-1/+1
The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
2016-09-05Avoid calling functions with an empty string as format stringVictor Stinner-2/+2
Directly pass NULL rather than an empty string.
2016-08-22Rename _PyObject_FastCall() to _PyObject_FastCallDict()Victor Stinner-1/+1
Issue #27809: * Rename _PyObject_FastCall() function to _PyObject_FastCallDict() * Add _PyObject_FastCall(), _PyObject_CallNoArg() and _PyObject_CallArg1() macros calling _PyObject_FastCallDict()
2016-08-20PyErr_PrintEx() now uses fast callVictor Stinner-3/+7
Issue #27128.
2016-05-26Issue #27076: Merge spelling from 3.5Martin Panter-1/+1
2016-05-26Issue #27076: Doc, comment and tests spelling fixesMartin Panter-1/+1
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-02-28Issue #22836: Merge exception reporting from 3.5Martin Panter-1/+7
2016-02-28Issue #22836: Keep exception reports sensible despite errorsMartin Panter-1/+7
2015-12-25Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka-4/+4
private functions.
2015-12-25Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka-2/+2
2015-09-06Issue #15989: Fixed some scarcely probable integer overflows.Serhiy Storchaka-5/+5
It is very unlikely that they can occur in real code for now.
2015-05-02Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow-2/+7
2015-04-13Issue #23731: Implement PEP 488.Brett Cannon-4/+1
The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
2015-03-18Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file()Victor Stinner-2/+6
Detect also earlier PyMarshal_Read*() errors in zipimport.
2014-11-21Closes #22869: Move PyOS_CheckStack back to pythonrun.cZachary Ware-0/+37
2014-11-21Issue #22869: Remove duplicate stack check from pythonrun.cSteve Dower-37/+0
2014-11-20Issue #22869: Split pythonrun into two modulesNick Coghlan-1471/+1
- interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags
2014-11-05Issue #20597, #21274: Remove unused definition of PATH_MAX on GNU/Hurd,Victor Stinner-4/+0
MAXPATHLEN is now preferred.
2014-11-05Issue #20597: Remove unused definition of PATH_MAX on Windows, MAXPATHLEN isVictor Stinner-1/+0
now preferred. Patch written by Jeffrey Armstrong.
2014-08-29Issue #22043: _PyTime_Init() now checks if the system clock works.Victor Stinner-1/+2
Other changes: * The whole _PyTime API is private (not defined if Py_LIMITED_API is set) * _PyTime_gettimeofday_info() also returns -1 on error * Simplify PyTime_gettimeofday(): only use clock_gettime(CLOCK_REALTIME) or gettimeofday() on UNIX. Don't fallback to ftime() or time() anymore.
2014-08-15Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner-1/+1
warnings in the Python/ subdirectory.
2014-05-11Issue #21425: Fix flushing of standard streams in the interactive interpreter.Antoine Pitrou-1/+2
2014-05-11Issue #21425: Fix flushing of standard streams in the interactive interpreter.Antoine Pitrou-1/+2
2014-04-17Fixes for KFreeBSD and the Hurd:doko@ubuntu.com-0/+4
- Issue #21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c. - Issue #21276: posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd. - Issue #21275: Fix a socket test on KFreeBSD.
2014-04-17- Merge 3.4doko@ubuntu.com-0/+4
2014-03-18Issue #19977, #19036: Always include <locale.h> in pythonrun.cVictor Stinner-1/+1
to get LC_CTYPE constant on Windows.
2014-03-18Issue #19977: When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale),Victor Stinner-1/+10
:py:data:`sys.stdin` and :py:data:`sys.stdout` are now using the ``surrogateescape`` error handler, instead of the ``strict`` error handler.
2014-02-13Issue #20526, #19466: Revert changes of issue #19466 which introduces aVictor Stinner-15/+5
regression: don't clear anymore the state of Python threads early during the Python shutdown.
2014-02-13Issue #20526, #19466: Revert changes of issue #19466 which introduces aVictor Stinner-15/+5
regression: don't clear anymore the state of Python threads early during the Python shutdown.
2014-02-09Close #20500: Don't trigger PyObject_Str assertion at shutdownNick Coghlan-0/+5
2014-01-21Issue #2382: SyntaxError cursor "^" now is written at correct position in mostSerhiy Storchaka-2/+12
cases when multibyte characters are in line (before "^"). This still not works correctly with wide East Asian characters.
2014-01-21Issue #2382: SyntaxError cursor "^" now is written at correct position in mostSerhiy Storchaka-2/+12
cases when multibyte characters are in line (before "^"). This still not works correctly with wide East Asian characters.
2013-12-09Issue #19817: Fix print_exception(), clear the exception on errorVictor Stinner-3/+5
2013-12-01Closes #19831: Stop tracemalloc later at Python shutdown to be able to useVictor Stinner-0/+5
tracemalloc in objects destructor Replace atexit handler with an harcoded C function _PyTraceMalloc_Fini().
2013-11-23Issue #18874: Implement the PEP 454 (tracemalloc)Victor Stinner-0/+4
2013-11-20ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes-0/+3
Python now uses SipHash24 on all major platforms.
2013-11-15pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get the size ofVictor Stinner-2/+3
the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1, and PATH_MAX is not declared on IRIX.
2013-11-15(Merge 3.3) pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to getVictor Stinner-2/+3
the size of the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1, and PATH_MAX is not declared on IRIX.
2013-11-12Issue #19515: Remove identifiers duplicated in the same file.Victor Stinner-4/+2
Patch written by Andrei Dorian Duma.