Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-29723: Consistently configure sys.path[0] (#575) | Nick Coghlan | 2017-03-12 | 1 | -28/+44 |
| | | | | | | | | | | | | | | | | | | | | | | Directory and zipfile execution previously added the parent directory of the directory or zipfile as sys.path[0] and then subsequently overwrote it with the directory or zipfile itself. This caused problems in isolated mode, as it overwrote the "stdlib as a zip archive" entry in sys.path, as the parent directory was never added. The attempted fix to that issue in bpo-29319 created the opposite problem in *non*-isolated mode, by potentially leaving the parent directory on sys.path instead of overwriting it. This change fixes the root cause of the problem by removing the whole "add-and-overwrite" dance for sys.path[0], and instead simply never adds the parent directory to sys.path in the first place. | ||||
* | bpo-29770: remove outdated PYO related info (GH-590) | Xiang Zhang | 2017-03-11 | 1 | -1/+1 |
| | |||||
* | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. | Steve Dower | 2017-02-04 | 1 | -2/+12 |
|\ | |||||
| * | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. | Steve Dower | 2017-02-04 | 1 | -2/+12 |
| |\ | |||||
| | * | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. | Steve Dower | 2017-02-04 | 1 | -2/+12 |
| | | | |||||
* | | | Issue #28768: Fix implicit declaration of function _setmode. Patch by ↵ | Steve Dower | 2016-12-28 | 1 | -0/+3 |
|\ \ \ | |/ / | | | | | | | Masayuki Yamamoto | ||||
| * | | Issue #28768: Fix implicit declaration of function _setmode. Patch by ↵ | Steve Dower | 2016-12-28 | 1 | -0/+3 |
| | | | | | | | | | | | | Masayuki Yamamoto | ||||
* | | | Use _PyObject_CallNoArg() | Victor Stinner | 2016-12-06 | 1 | -1/+1 |
|/ / | | | | | | | | | | | | | Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable) | ||||
* | | Issue #28532: Show sys.version when -V option is supplied twice | INADA Naoki | 2016-11-21 | 1 | -1/+2 |
| | | |||||
* | | Issue #28192: Don't import readline in isolated mode | Steve Dower | 2016-09-17 | 1 | -1/+2 |
| | | |||||
* | | Check return value of PyList_Append() in Py_Main(). CID 1353200 | Christian Heimes | 2016-09-08 | 1 | -1/+2 |
| | | |||||
* | | Add PYTHONMALLOC env var | Victor Stinner | 2016-03-14 | 1 | -8/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26516: * Add PYTHONMALLOC environment variable to set the Python memory allocators and/or install debug hooks. * PyMem_SetupDebugHooks() can now also be used on Python compiled in release mode. * The PYTHONMALLOCSTATS environment variable can now also be used on Python compiled in release mode. It now has no effect if set to an empty string. * In debug mode, debug hooks are now also installed on Python memory allocators when Python is configured without pymalloc. | ||||
* | | Fixed formatting comman-line usage message. | Serhiy Storchaka | 2015-12-30 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | Fixed formatting comman-line usage message. | Serhiy Storchaka | 2015-12-30 | 1 | -4/+4 |
| | | |||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
| | | | | | | | | private functions. | ||||
* | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -7/+7 |
| | | |||||
* | | Issue #5319: New Py_FinalizeEx() API to exit with status 120 on failure | Martin Panter | 2015-11-30 | 1 | -2/+6 |
|/ | |||||
* | Issue #23752: _Py_fstat() is now responsible to raise the Python exception | Victor Stinner | 2015-03-30 | 1 | -2/+4 |
| | | | | Add _Py_fstat_noraise() function when a Python exception is not welcome. | ||||
* | Back-out wcstok deprecation suppression and updates calls to use wcstok_s. | Steve Dower | 2015-02-26 | 1 | -3/+3 |
| | |||||
* | Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on ↵ | Steve Dower | 2015-02-21 | 1 | -3/+2 |
| | | | | | | Windows. fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer. | ||||
* | Issue #20597: Remove unused definition of PATH_MAX on Windows, MAXPATHLEN is | Victor Stinner | 2014-11-05 | 1 | -1/+0 |
| | | | | now preferred. Patch written by Jeffrey Armstrong. | ||||
* | Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename | Victor Stinner | 2014-08-01 | 1 | -2/+2 |
| | | | | | ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions. | ||||
* | Issue #20355: -W command line options now have higher priority than the ↵ | Antoine Pitrou | 2014-04-28 | 1 | -1/+18 |
| | | | | PYTHONWARNINGS environment variable. Patch by Arfrever. | ||||
* | Issue #16136: Remove VMS support and VMS-related code | Christian Heimes | 2013-12-21 | 1 | -29/+0 |
| | |||||
* | Issue #19512, #19515: remove shared identifiers, move identifiers where they | Victor Stinner | 2013-11-07 | 1 | -1/+1 |
| | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file. | ||||
* | Issue #19512: add some common identifiers to only create common strings once, | Victor Stinner | 2013-11-06 | 1 | -1/+1 |
| | | | | | | | instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter. | ||||
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -1/+1 |
| | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | Issue #16400: Add command line option for isolated mode. | Christian Heimes | 2013-08-10 | 1 | -1/+8 |
| | | | | | | | | | | -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. | ||||
* | #16937: merge with 3.3. | Ezio Melotti | 2013-07-25 | 1 | -1/+2 |
|\ | |||||
| * | #16937: document that stdin is always buffered, even when -u is used. Patch ↵ | Ezio Melotti | 2013-07-25 | 1 | -1/+2 |
| | | | | | | | | by Elena Oat. | ||||
* | | Issue #18408: handle PySys_GetObject() failure, raise a RuntimeError | Victor Stinner | 2013-07-16 | 1 | -1/+3 |
| | | |||||
* | | Issue #18338: `python --version` now prints version string to stdout, and | Serhiy Storchaka | 2013-07-11 | 1 | -1/+1 |
| | | | | | | | | not to stderr. Patch by Berker Peksag and Michael Dickens. | ||||
* | | Issue #18203: Add _PyMem_RawStrdup() and _PyMem_Strdup() | Victor Stinner | 2013-07-07 | 1 | -2/+2 |
| | | | | | | | | | | Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the GIL is held or not. | ||||
* | | Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization | Victor Stinner | 2013-07-07 | 1 | -7/+7 |
| | | | | | | | | | | | | | | * Replace malloc() with PyMem_RawMalloc() * Replace PyMem_Malloc() with PyMem_RawMalloc() where the GIL is not held. * _Py_char2wchar() now returns a buffer allocated by PyMem_RawMalloc(), instead of PyMem_Malloc() | ||||
* | | Issue #5845: Enable tab-completion in the interactive interpreter by ↵ | Antoine Pitrou | 2013-05-04 | 1 | -0/+28 |
| | | | | | | | | | | | | default, thanks to a new sys.__interactivehook__. (original patch by Éric Araujo) | ||||
* | | Close #14439: Python now prints the traceback on runpy failure at startup. | Victor Stinner | 2013-04-09 | 1 | -0/+4 |
| | | |||||
* | | #16306: merge with 3.3. | Ezio Melotti | 2012-11-23 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | #16306: merge with 3.2. | Ezio Melotti | 2012-11-23 | 1 | -0/+1 |
| |\ | |||||
| | * | #16306: report only the first unknown option and add more tests. Patch by ↵ | Ezio Melotti | 2012-11-23 | 1 | -0/+1 |
| | | | | | | | | | | | | Serhiy Storchaka. | ||||
* | | | #16135: Removal of OS/2 support (posixmodule y platform dependent files) | Jesus Cea | 2012-10-04 | 1 | -5/+1 |
|/ / | |||||
* | | Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set ↵ | Ronald Oussoren | 2012-08-22 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | | | | | | | on Mac OS X. This is due to an off-by-one error: the allocated buffer didn't have room for a NUL character at the end of the mbstowcs result. (merge with 3.2) | ||||
| * | Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set ↵ | Ronald Oussoren | 2012-08-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | on Mac OS X. This is due to an off-by-one error: the allocated buffer didn't have room for a NUL character at the end of the mbstowcs result. | ||||
* | | Closes #15307: symlinks now work on OS X with framework Python builds. ↵ | Vinay Sajip | 2012-07-17 | 1 | -0/+22 |
| | | | | | | | | Patch by Ronald Oussoren. | ||||
* | | Fix issue # 15033 - Return the proper exitcode for failure when modules are ↵ | Senthil Kumaran | 2012-07-05 | 1 | -1/+1 |
|\ \ | |/ | | | | | invoked using -m switch. Patch contributed by Jeff Knupp | ||||
| * | Fix issue # 15033 - Return the proper exitcode for failure when modules are ↵ | Senthil Kumaran | 2012-07-05 | 1 | -1/+1 |
| | | | | | | | | invoked using -m switch. Patch contributed by Jeff Knupp | ||||
* | | Issue #14605: Use None in sys.path_importer_cache to represent no | Brett Cannon | 2012-04-27 | 1 | -1/+1 |
| | | | | | | | | finder instead of using some (now non-existent) implicit finder. | ||||
* | | merge with 3.2 | Georg Brandl | 2012-02-21 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | merge with 3.2 | Georg Brandl | 2012-02-21 | 1 | -3/+3 |
| |\ | |||||
| | * | Remove reST markup from --help output. Also: O(n**2) is dict construction, ↵ | Georg Brandl | 2012-02-21 | 1 | -3/+3 |
| | | | | | | | | | | | | not single insertion. | ||||
* | | | enable hash randomization by default | Benjamin Peterson | 2012-02-21 | 1 | -18/+7 |
| | | |