summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* #18839: merge with 3.3.Ezio Melotti2013-08-261-1/+1
|\
| * #18839: document that sys.exit() will not accept a non-integer numeric value ↵Ezio Melotti2013-08-261-1/+1
| | | | | | | | as exit status.
* | Issue #16400: Add command line option for isolated mode.Christian Heimes2013-08-101-2/+4
| | | | | | | | | | | | | | | | | | | | -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.
* | Issue #18520: Fix _PySys_Init(), handle PyDict_SetItemString() errorsVictor Stinner2013-07-221-17/+21
| |
* | Issue #18520: Add a new PyStructSequence_InitType2() function, same thanVictor Stinner2013-07-221-7/+16
| | | | | | | | | | | | | | | | PyStructSequence_InitType() except that it has a return value (0 on success, -1 on error). * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure * Fix also some calls to PyDict_SetItemString(): handle error
* | Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes2013-07-221-3/+4
|\ \ | |/ | | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
| * Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes2013-07-221-3/+4
| | | | | | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
* | #13226: update references from ctypes/DLFCN modules to os moduleAndrew Kuchling2013-06-211-2/+2
| |
* | Issue #13390: New function :func:`sys.getallocatedblocks()` returns the ↵Antoine Pitrou2012-12-091-0/+15
| | | | | | | | | | | | number of memory blocks currently allocated. Also, the ``-R`` option to regrtest uses this function to guard against memory allocation leaks.
* | RISCOS support has been removed a long time ago. Remove last remains in ↵Christian Heimes2012-11-191-10/+0
| | | | | | | | sys.flags code. #16501 can be closed, too.
* | Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unifiedChristian Heimes2012-10-171-15/+8
|/ | | | endianess detection and handling.
* Issue #15242: Have PyImport_GetMagicTag() return a const char *Brett Cannon2012-07-091-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.
* Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm2012-06-221-0/+23
| | | | allocation issues
* Eric Snow's implementation of PEP 421.Barry Warsaw2012-06-031-2/+70
| | | | Issue 14673: Add sys.implementation
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-0/+4
|
* Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-211-2/+4
|\
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-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.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-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.
* | | Merge branch 3.2Petri Lehtinen2012-02-021-1/+1
|\ \ \ | |/ / | | | | | | Closes #13402.
| * | Document absoluteness of sys.executablePetri Lehtinen2012-02-021-1/+1
| | | | | | | | | | | | Closes #13402.
| * | MERGE: Up-port changeset 5cf8f6da8743 (closes #11890)Jesus Cea2011-04-201-56/+4
| |\ \ | | |/
| | * Up-port changeset 5cf8f6da8743 (closes #11890)Jesus Cea2011-04-201-56/+4
| | |
* | | use the static identifier api for looking up special methodsBenjamin Peterson2012-01-221-3/+3
| | | | | | | | | | | | | | | I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
* | | Issue #13226: Update sys.setdlopenflags() docstringVictor Stinner2011-10-311-3/+1
| | | | | | | | | | | | Refer to os.RTLD_xxx constants instead of ctypes and DLFCN modules.
* | | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis2011-10-141-2/+3
| | |
* | | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-4/+4
| | |
* | | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-3/+6
| | |
* | | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-1/+2
| | | | | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | | Use the new Py_ARRAY_LENGTH macroVictor Stinner2011-09-291-1/+1
| | |
* | | #13054: sys.maxunicode is now always 0x10FFFF.Ezio Melotti2011-09-291-2/+2
| | |
* | | Issue #11223: Replace threading._info() by sys.thread_infoVictor Stinner2011-04-301-9/+15
| | |
* | | Merge 3.2: sys.getfilesystemencoding() raises a RuntimeError ifVictor Stinner2011-03-311-2/+3
|\ \ \ | |/ / | | | | | | initfsencoding() was not called yet: detect bootstrap (startup) issues earlier.
| * | sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was notVictor Stinner2011-03-311-2/+3
| | | | | | | | | | | | called yet: detect bootstrap (startup) issues earlier.
* | | Remove traces of division_warning left over from Python 2 (#10998)Éric Araujo2011-03-261-4/+2
| | |
* | | #11515: Merge with 3.2.Ezio Melotti2011-03-151-1/+1
|\ \ \ | |/ /
| * | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
| |\ \ | | |/
* | | Remove sys.subversion and svn build identification leftovers.Georg Brandl2011-03-061-94/+0
| | |
* | | Merge build identification to default branch.Georg Brandl2011-03-061-0/+3
|\ \ \ | |/ /
| * | Merge build identification to 3.2 branch.Georg Brandl2011-03-061-0/+3
| |\ \ | | |/
| | * Commit the hg build identification patch from the pymigr repo.Georg Brandl2011-03-051-0/+3
| | |
| | * Merged revisions 81841 via svnmerge fromVictor Stinner2010-06-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81841 | victor.stinner | 2010-06-08 22:46:00 +0200 (mar., 08 juin 2010) | 6 lines sys_pyfile_write() does nothing if file is NULL mywrite() falls back to the C file object if sys_pyfile_write() returns an error. This patch fixes a segfault is Py_FatalError() is called in an early stage of Python initialization. ........
| | * Merged revisions 81400 via svnmerge fromAntoine Pitrou2010-05-211-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81400 | antoine.pitrou | 2010-05-21 19:25:34 +0200 (ven., 21 mai 2010) | 12 lines Merged revisions 81398 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81398 | antoine.pitrou | 2010-05-21 19:12:38 +0200 (ven., 21 mai 2010) | 6 lines Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows embedders of the interpreter to set sys.argv without also modifying sys.path. This helps fix `CVE-2008-5983 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_. ........ ................
| | * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-926/+926
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
| | * Merged revisions 80404 via svnmerge fromVictor Stinner2010-04-231-2/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80404 | victor.stinner | 2010-04-23 14:02:30 +0200 (ven., 23 avril 2010) | 4 lines Issue #8124: PySys_WriteStdout() and PySys_WriteStderr() don't execute indirectly Python signal handlers anymore because mywrite() ignores exceptions (KeyboardInterrupt). ........
| | * Merged revisions 78622 via svnmerge fromFlorent Xicluna2010-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78622 | florent.xicluna | 2010-03-03 12:54:54 +0100 (mer, 03 mar 2010) | 9 lines Merged revisions 78620 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78620 | florent.xicluna | 2010-03-03 12:49:53 +0100 (mer, 03 mar 2010) | 2 lines Revert a nonexistent docstring typo, r42805. ........ ................
| | * Merged revisions 74062 via svnmerge fromGeorg Brandl2009-08-131-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ................ r74062 | alexandre.vassalotti | 2009-07-17 13:43:26 +0200 (Fr, 17 Jul 2009) | 37 lines Merged revisions 73665,73693,73704-73705,73707,73712-73713,73824 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73665 | alexandre.vassalotti | 2009-06-28 21:01:51 -0400 (Sun, 28 Jun 2009) | 2 lines Update docstrings for sys.getdlopenflags() and sys.setdlopenflags(). ........ r73693 | jesse.noller | 2009-06-29 14:20:34 -0400 (Mon, 29 Jun 2009) | 1 line Bug 5906: add a documentation note for unix daemons vs. multiprocessing daemons ........ r73704 | georg.brandl | 2009-06-30 12:15:43 -0400 (Tue, 30 Jun 2009) | 1 line #6376: fix copy-n-paste oversight. ........ r73705 | georg.brandl | 2009-06-30 12:17:28 -0400 (Tue, 30 Jun 2009) | 1 line #6374: add a bit of explanation about shell=True on Windows. ........ r73707 | georg.brandl | 2009-06-30 12:35:11 -0400 (Tue, 30 Jun 2009) | 1 line #6371: fix link targets. ........ r73712 | ezio.melotti | 2009-06-30 18:51:06 -0400 (Tue, 30 Jun 2009) | 1 line Fixed defaultTestCase -> defaultTestResult ........ r73713 | ezio.melotti | 2009-06-30 18:56:16 -0400 (Tue, 30 Jun 2009) | 1 line Fixed a backslash that was not supposed to be there ........ r73824 | ezio.melotti | 2009-07-03 21:18:08 -0400 (Fri, 03 Jul 2009) | 1 line #6398 typo: versio. -> version. ........ ................
* | | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-221-2/+1
|/ /
* | Fix count of flag fields. Being one short caused the 'quiet' option not to ↵Raymond Hettinger2011-01-051-2/+2
| | | | | | | | print.
* | Add sys.flags.quiet attribute for the new -q option, as noted missing by ↵Georg Brandl2010-12-281-1/+3
| | | | | | | | Eric in #1772833.
* | Issue #10601: sys.displayhook uses 'backslashreplace' error handler onVictor Stinner2010-12-041-2/+76
| | | | | | | | UnicodeEncodeError.