summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
AgeCommit message (Collapse)AuthorLines
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
2008-04-13Fix a bug in PySys_HasWarnOption() where it was not properly checking theBrett Cannon-1/+1
length of the list storing the warning options.
2008-04-12Re-implement the 'warnings' module in C. This allows for usage of theBrett Cannon-0/+8
'warnings' code in places where it was previously not possible (e.g., the parser). It could also potentially lead to a speed-up in interpreter start-up if the C version of the code (_warnings) is imported over the use of the Python version in key places. Closes issue #1631171.
2008-03-25Make Py3k warnings consistent w.r.t. punctuation; also respect theGeorg Brandl-2/+2
EOL 80 limit and supply more alternatives in warning messages.
2008-03-24Added quick hack for bzrChristian Heimes-2/+2
2008-03-24Added quick hack for bzrChristian Heimes-1/+8
2008-03-21#2358: add py3k warning to sys.exc_clear().Georg Brandl-1/+9
2008-02-04Patch #1953Christian Heimes-13/+34
I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers. The patch also renames sys._cleartypecache to sys._clear_type_cache
2008-01-30The previous change was causing a segfault after multiple calls to ↵Christian Heimes-3/+3
Py_Initialize() and Py_Finalize().
2008-01-30Fixed some references leaks in sys.Christian Heimes-21/+17