summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
AgeCommit message (Collapse)AuthorLines
2014-02-09Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka-2/+1
2013-12-17Issue #16404: Add checks for return value of PyLong_FromLong() inSerhiy Storchaka-0/+4
sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
2013-12-17Fixed leak in sys.flags initialization.Serhiy Storchaka-0/+1
2013-11-15sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get the size ofVictor Stinner-1/+1
the fullpath buffer, not PATH_MAX. fullpath is declared using MAXPATHLEN or MAX_PATH depending on the OS, and PATH_MAX is not declared on IRIX.
2013-08-26#18839: document that sys.exit() will not accept a non-integer numeric value ↵Ezio Melotti-1/+1
as exit status.
2013-07-22Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes-3/+4
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
2012-07-09Issue #15242: Have PyImport_GetMagicTag() return a const char *Brett Cannon-14/+18
defined in sysmodule.c instead of straight out of a Unicode object. Thanks to Amaury Forgeot d'Arc for noticing the bug and Eric Snow for writing the patch.
2012-06-22Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm-0/+23
allocation issues
2012-06-03Eric Snow's implementation of PEP 421.Barry Warsaw-2/+70
Issue 14673: Add sys.implementation
2012-05-26Implemented PEP 405 (Python virtual environments).Vinay Sajip-0/+4
2012-02-21Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl-2/+4
2012-02-20Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl-2/+4
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-2/+4
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-02Merge branch 3.2Petri Lehtinen-1/+1
Closes #13402.
2012-02-02Document absoluteness of sys.executablePetri Lehtinen-1/+1
Closes #13402.
2012-01-22use the static identifier api for looking up special methodsBenjamin Peterson-3/+3
I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
2011-10-31Issue #13226: Update sys.setdlopenflags() docstringVictor Stinner-3/+1
Refer to os.RTLD_xxx constants instead of ctypes and DLFCN modules.
2011-10-14Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis-2/+3
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-4/+4
2011-10-10Use identifier API for PyObject_GetAttrString.Martin v. Löwis-3/+6
2011-10-09Add API for static strings, primarily good for identifiers.Martin v. Löwis-1/+2
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-09-29Use the new Py_ARRAY_LENGTH macroVictor Stinner-1/+1
2011-09-29#13054: sys.maxunicode is now always 0x10FFFF.Ezio Melotti-2/+2
2011-04-30Issue #11223: Replace threading._info() by sys.thread_infoVictor Stinner-9/+15
2011-04-20MERGE: Up-port changeset 5cf8f6da8743 (closes #11890)Jesus Cea-56/+4
2011-04-20Up-port changeset 5cf8f6da8743 (closes #11890)Jesus Cea-56/+4
2011-03-31Merge 3.2: sys.getfilesystemencoding() raises a RuntimeError ifVictor Stinner-2/+3
initfsencoding() was not called yet: detect bootstrap (startup) issues earlier.
2011-03-31sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was notVictor Stinner-2/+3
called yet: detect bootstrap (startup) issues earlier.
2011-03-26Remove traces of division_warning left over from Python 2 (#10998)Éric Araujo-4/+2
2011-03-15#11515: Merge with 3.1.Ezio Melotti-1/+1
2011-03-15#11515: Merge with 3.2.Ezio Melotti-1/+1
2011-03-06Remove sys.subversion and svn build identification leftovers.Georg Brandl-94/+0
2011-03-06Merge build identification to default branch.Georg Brandl-0/+3
2011-03-06Merge build identification to 3.2 branch.Georg Brandl-0/+3
2011-03-05Commit the hg build identification patch from the pymigr repo.Georg Brandl-0/+3
2011-02-22Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon-2/+1
2011-01-05Fix count of flag fields. Being one short caused the 'quiet' option not to ↵Raymond Hettinger-2/+2
print.
2010-12-28Add sys.flags.quiet attribute for the new -q option, as noted missing by ↵Georg Brandl-1/+3
Eric in #1772833.
2010-12-04Issue #10601: sys.displayhook uses 'backslashreplace' error handler onVictor Stinner-2/+76
UnicodeEncodeError.
2010-11-30Remove redundant includes of headers that are already included by Python.h.Georg Brandl-1/+0
2010-11-30Include structseq.h in Python.h, and remove now-redundant includes in ↵Georg Brandl-1/+0
individual sources.
2010-10-25sys_update_path(): update sys.path even if argc==0Victor Stinner-2/+0
2010-10-23follow up to #9778: define and use an unsigned hash typeBenjamin Peterson-1/+1
2010-10-21Issue #10089: Add support for arbitrary -X options on the command-line.Antoine Pitrou-0/+60
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-17make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson-1/+1
2010-10-16First (uncontroversial) part of issue 9807.Barry Warsaw-0/+4
* Expose the build flags to Python as sys.abiflags * Shared library libpythonX.Y<abiflags>.so * python-config --abiflags * Make two distutils tests that failed with --enable-shared (even before this patch) succeed. * Fix a few small style issues.
2010-10-07_Py_wrealpath() requires the size of the output bufferVictor Stinner-1/+1
2010-10-07Create fileutils.c/.hVictor Stinner-28/+1
* _Py_fopen() and _Py_stat() come from Python/import.c * (_Py)_wrealpath() comes from Python/sysmodule.c * _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c * (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c
2010-10-07_wrealpath() and _Py_wreadlink() support surrogates (PEP 383)Victor Stinner-3/+4
Use _Py_wchar2char() to support surrogate characters in the input path.
2010-10-06Create a subfunction for PySys_SetArgvEx()Victor Stinner-78/+94
Create sys_update_path() static function. Do nothing if argc==0.