summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
AgeCommit message (Collapse)AuthorLines
2018-12-19[2.7] bpo-35441: Remove dead and buggy code related to PyList_SetItem(). ↵Serhiy Storchaka-1/+1
(GH-11033) (GH-11234) In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist(). (cherry picked from commit 99d56b53560b3867844472ae381fb3f858760621) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2017-05-02bpo-27593: Get SCM build info from git instead of hg (#1327)Victor Stinner-3/+3
Based on commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178 by Ned Deily, which is based on original patches by Brett Cannon and Steve Dower. Remove also the private _Py_svnversion() function and SVNVERSION variable. Note: Py_SubversionRevision() and Py_SubversionShortBranch() are unchanged, they are part of the public API.
2016-11-04Issue #28616: Correct help for sys.version_info releaselevel component.Ned Deily-1/+1
Patch by Anish Tambe.
2014-11-15Issue #22193: Fixed integer overflow error in sys.getsizeof().Serhiy Storchaka-4/+9
Fixed an error in _PySys_GetSizeOf declaration.
2014-08-14Issue #22193: Added private function _PySys_GetSizeOf() needed to implementSerhiy Storchaka-33/+42
some __sizeof__() methods.
2014-02-09Issue #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka-2/+1
2013-12-17Issue #16404: Add checks for return value of PyInt_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-08-26#18839: document that sys.exit() will not accept a non-integer numeric value ↵Ezio Melotti-1/+1
as exit status.
2012-02-20merge 2.6 with hash randomization fixBenjamin Peterson-2/+4
2012-02-20- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEEDBarry Warsaw-2/+4
environment variable, to provide an opt-in way to protect against denial of service attacks due to hash collisions within the dict and set types. Patch by David Malcolm, based on work by Victor Stinner.
2012-02-02Document absoluteness of sys.executablePetri Lehtinen-1/+1
Closes #13402.
2011-06-01sys.checkinterval() now refreshes the current countdown ticker.Raymond Hettinger-0/+1
2011-03-25remove this dead subversion codeBenjamin Peterson-62/+5
2011-03-15#11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-1/+1
2011-03-06Port build identification from default branch.Georg Brandl-0/+3
2010-05-21Merged revisions 81398 via svnmerge fromAntoine Pitrou-2/+8
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>`_. ........
2010-05-21Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allowsAntoine Pitrou-2/+8
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>`_.
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-856/+856
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. ........
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-925/+925
2010-03-03Revert r78621. This was not a critical fix and we're in rc mode.Barry Warsaw-1/+1
2010-03-03Merged revisions 78620 via svnmerge fromFlorent Xicluna-1/+1
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. ........
2010-03-03Revert a nonexistent docstring typo, r42805.Florent Xicluna-1/+1
2010-01-31Merged revisions 77892 via svnmerge fromVictor Stinner-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77892 | victor.stinner | 2010-01-31 23:32:15 +0100 (dim., 31 janv. 2010) | 4 lines Issue #7819: Check sys.call_tracing() arguments types. py3k was already patched by issue #3661. ........
2010-01-31Issue #7819: Check sys.call_tracing() arguments types.Victor Stinner-1/+1
py3k was already patched by issue #3661.
2010-01-27Issue #7766: Change sys.getwindowsversion() return value to a named tuple ↵Eric Smith-13/+62
and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.
2009-10-24Issue #7117 (backport py3k float repr) continued:Mark Dickinson-0/+10
Add sys.float_repr_style attribute ('short' if short float repr is in used; 'legacy' otherwise).
2009-06-29Update docstrings for sys.getdlopenflags() and sys.setdlopenflags().Alexandre Vassalotti-10/+12
2009-05-25handle errors from _PyObject_LookupSpecial when __get__ failsBenjamin Peterson-4/+6
2009-05-23Merged revisions 72871-72872 via svnmerge fromBenjamin Peterson-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72871 | benjamin.peterson | 2009-05-23 14:24:37 -0500 (Sat, 23 May 2009) | 1 line support building with subversion 1.7 #6094 ........ r72872 | benjamin.peterson | 2009-05-23 14:31:02 -0500 (Sat, 23 May 2009) | 1 line reorder name ........
2009-05-23support building with subversion 1.7 #6094Benjamin Peterson-1/+1
2009-05-09convert some more special methods to use _PyObject_LookupSpecialBenjamin Peterson-12/+7
2009-03-20Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson-0/+4
Backport of r70459.
2009-02-06Implement issue #4285, convert sys.version_info to a namedEric Smith-20/+79
tuple. Patch by Ross Light.
2009-01-14Merged revisions ↵Georg Brandl-3/+12
68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r68521 | hirokazu.yamamoto | 2009-01-11 04:28:13 +0100 (So, 11 Jan 2009) | 1 line Fixed version number in build_ssl.bat. ........ r68527 | martin.v.loewis | 2009-01-11 10:43:55 +0100 (So, 11 Jan 2009) | 2 lines Issue #4895: Use _strdup on Windows CE. ........ r68534 | gregory.p.smith | 2009-01-11 18:53:33 +0100 (So, 11 Jan 2009) | 2 lines correct email address ........ r68535 | gregory.p.smith | 2009-01-11 18:57:54 +0100 (So, 11 Jan 2009) | 9 lines Update the documentation for binascii and zlib crc32/adler32 functions to better describe the signed vs unsigned return value behavior on different platforms and versions of python. Mention the workaround to make them all return the same thing by using & 0xffffffff. Fixes issue4903. Also needs to be merged into release26-maint, release30-maint, & py3k. ........ r68536 | benjamin.peterson | 2009-01-11 20:48:15 +0100 (So, 11 Jan 2009) | 1 line add email addresses ........ r68540 | martin.v.loewis | 2009-01-12 08:57:11 +0100 (Mo, 12 Jan 2009) | 2 lines Issue #4915: Port sysmodule to Windows CE. ........ r68547 | kristjan.jonsson | 2009-01-12 19:09:27 +0100 (Mo, 12 Jan 2009) | 1 line Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module. ........ r68552 | vinay.sajip | 2009-01-12 21:36:18 +0100 (Mo, 12 Jan 2009) | 1 line Minor changes/corrections in markup. ........ r68563 | benjamin.peterson | 2009-01-13 02:49:10 +0100 (Di, 13 Jan 2009) | 1 line small logic correction ........ r68570 | raymond.hettinger | 2009-01-13 10:08:32 +0100 (Di, 13 Jan 2009) | 5 lines Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard(). Needs to be backported to 2.6 and forward ported to 3.0 and 3.1. ........ r68572 | andrew.kuchling | 2009-01-13 14:40:54 +0100 (Di, 13 Jan 2009) | 1 line Note that first coord. is left alone ........ r68575 | thomas.heller | 2009-01-13 18:32:28 +0100 (Di, 13 Jan 2009) | 1 line Fix refcount leak in error cases. Bug found by coverity. ........ r68579 | benjamin.peterson | 2009-01-13 22:42:23 +0100 (Di, 13 Jan 2009) | 1 line make bytearrayobject.o depend on the stringlib #4936 ........ r68580 | benjamin.peterson | 2009-01-13 22:43:11 +0100 (Di, 13 Jan 2009) | 1 line add bytearrayobject.h to PYTHON_HEADERS ........ r68584 | benjamin.peterson | 2009-01-13 23:22:41 +0100 (Di, 13 Jan 2009) | 1 line de-spacify ........
2009-01-12Issue #4915: Port sysmodule to Windows CE.Martin v. Löwis-3/+12
2008-07-10Added garbage collector overhead and optional default return value toRobert Schuppenies-13/+46
sys.getsizeof.
2008-07-10Fixed Issue3122 and extended sys.getsizeof tests for built-in types.Robert Schuppenies-11/+10
2008-07-06- Issue #2862: Make int and float freelist management consistent with otherGregory P. Smith-20/+0
freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect().
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-19/+19
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
2008-06-01Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl-2/+2
2008-06-01Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies-0/+41
2008-06-01New environment variable PYTHONIOENCODING.Martin v. Löwis-20/+0
2008-05-26Renamed PyString to PyBytesChristian Heimes-19/+19
2008-05-20Patch #2488: Add sys.maxsize.Martin v. Löwis-0/+3
2008-05-08Fix sys.flags to properly expose bytes_warning.Brett Cannon-2/+2
Closes issue #2790.
2008-05-06Implemented PEP 370Christian Heimes-5/+5
2008-04-27A little reformating of Py3k warningsBenjamin Peterson-1/+1
2008-04-27Use PyErr_WarnPy3k throughoutBenjamin Peterson-4/+2
2008-04-18Fix indentation in sysmodule.cBenjamin Peterson-4/+4