History log of /external/python/cpython2/Python/sysmodule.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0caaa6c94d39d44db98f55f4f03d1f91f9c260af 04-Nov-2016 Ned Deily <nad@python.org> Issue #28616: Correct help for sys.version_info releaselevel component.
Patch by Anish Tambe.
/external/python/cpython2/Python/sysmodule.c
f9b2aa2efed3374df55fe945922f67a322a5d695 15-Nov-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #22193: Fixed integer overflow error in sys.getsizeof().
Fixed an error in _PySys_GetSizeOf declaration.
/external/python/cpython2/Python/sysmodule.c
c95f51a9530440826d6cd8984183eaae8b4bb84c 14-Aug-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #22193: Added private function _PySys_GetSizeOf() needed to implement
some __sizeof__() methods.
/external/python/cpython2/Python/sysmodule.c
98a9722e4a82b5f7dc0411233bbec892a02c7667 09-Feb-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20437: Fixed 43 potential bugs when deleting objects references.
/external/python/cpython2/Python/sysmodule.c
15df36bb14e35489d841898069e3878f2144e48e 17-Dec-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #16404: Add checks for return value of PyInt_FromLong() in
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
/external/python/cpython2/Python/sysmodule.c
0585418b0d50755500587a887f3a901f8149cd00 17-Dec-2013 Serhiy Storchaka <storchaka@gmail.com> Fixed leak in sys.flags initialization.
/external/python/cpython2/Python/sysmodule.c
08350fb639a54b8977784f09ee1741441650724f 26-Aug-2013 Ezio Melotti <ezio.melotti@gmail.com> #18839: document that sys.exit() will not accept a non-integer numeric value as exit status.
/external/python/cpython2/Python/sysmodule.c
aee9dfba4a9230f2832dd69d67e92f8e0490a163 21-Feb-2012 Benjamin Peterson <benjamin@python.org> merge 2.6 with hash randomization fix
1e13eb084f72d5993cbb726e45b36bdb69c83a24 21-Feb-2012 Barry Warsaw <barry@python.org> - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
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.
/external/python/cpython2/Python/sysmodule.c
fe6f9d0edc8dc6dd7e51317c8f9788fdd5eeff50 02-Feb-2012 Petri Lehtinen <petri@digip.org> Document absoluteness of sys.executable

Closes #13402.
/external/python/cpython2/Python/sysmodule.c
19b851d11b04d1490040ff296ebec57dc3d7eecb 02-Jun-2011 Raymond Hettinger <python@rcn.com> sys.checkinterval() now refreshes the current countdown ticker.
/external/python/cpython2/Python/sysmodule.c
7859d4098c941ddaf85fccd6850ae3004c47674e 25-Mar-2011 Benjamin Peterson <benjamin@python.org> remove this dead subversion code
/external/python/cpython2/Python/sysmodule.c
24b07bcba350bb86c4d6ca446e1564647a199868 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython2/Python/sysmodule.c
3a5508e2c075405f35b5c32f413445b9e875c92c 06-Mar-2011 Georg Brandl <georg@python.org> Port build identification from default branch.
/external/python/cpython2/Python/sysmodule.c
52ca516cacf75b430d399d638c1e00b49b0bb564 21-May-2010 Antoine Pitrou <solipsis@pitrou.net> 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>`_.
........
/external/python/cpython2/Python/sysmodule.c
6a2656094d1806abc5229758246865bcbaa34c5e 21-May-2010 Antoine Pitrou <solipsis@pitrou.net> 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>`_.
/external/python/cpython2/Python/sysmodule.c
c7c96a90bcf1366ac6f350f5506d0afee611e351 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> 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.
........
/external/python/cpython2/Python/sysmodule.c
c83ea137d7e717f764e2f31fc2544f522de7d857 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Untabify C files. Will watch buildbots.
/external/python/cpython2/Python/sysmodule.c
1545d80e07861ca8de2d138a64a146264d42cd58 03-Mar-2010 Barry Warsaw <barry@python.org> Revert r78621. This was not a critical fix and we're in rc mode.
/external/python/cpython2/Python/sysmodule.c
90193c01b93e7021634d35b8668fc2ff84a949ff 03-Mar-2010 Florent Xicluna <florent.xicluna@gmail.com> 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.
........
/external/python/cpython2/Python/sysmodule.c
8af970ab58e371def3779f6dd2fffe0c389c79d4 03-Mar-2010 Florent Xicluna <florent.xicluna@gmail.com> Revert a nonexistent docstring typo, r42805.
/external/python/cpython2/Python/sysmodule.c
d85f1c01afebd1db5d9400ba83b6d90e0819ce79 31-Jan-2010 Victor Stinner <victor.stinner@haypocalc.com> Merged revisions 77892 via svnmerge from
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.
........
/external/python/cpython2/Python/sysmodule.c
b4b0a2935db54457f6876f1991905cc9b4fce6e9 31-Jan-2010 Victor Stinner <victor.stinner@haypocalc.com> Issue #7819: Check sys.call_tracing() arguments types.

py3k was already patched by issue #3661.
/external/python/cpython2/Python/sysmodule.c
ee931b7253fe332125dad0b7ba1681bdebb0a575 27-Jan-2010 Eric Smith <eric@trueblade.com> Issue #7766: Change sys.getwindowsversion() return value to a named tuple 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.
/external/python/cpython2/Python/sysmodule.c
da8652d920210a5ff783a7ad30f4c24d2b5ff2a2 24-Oct-2009 Mark Dickinson <dickinsm@gmail.com> Issue #7117 (backport py3k float repr) continued:
Add sys.float_repr_style attribute ('short' if short float
repr is in used; 'legacy' otherwise).
/external/python/cpython2/Python/sysmodule.c
7274cffa9e038ddef9ced658165014629ef3e715 29-Jun-2009 Alexandre Vassalotti <alexandre@peadrop.com> Update docstrings for sys.getdlopenflags() and sys.setdlopenflags().
/external/python/cpython2/Python/sysmodule.c
87e5006d8c5974597df9e3074b95227187d32be3 25-May-2009 Benjamin Peterson <benjamin@python.org> handle errors from _PyObject_LookupSpecial when __get__ fails
/external/python/cpython2/Python/sysmodule.c
2eb65457a883d3f231c8e378911c4de2cd644b4c 23-May-2009 Benjamin Peterson <benjamin@python.org> Merged revisions 72871-72872 via svnmerge from
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
........
/external/python/cpython2/Python/sysmodule.c
e5afa3b24b97f4dfb014780e4415c0e4961cba34 23-May-2009 Benjamin Peterson <benjamin@python.org> support building with subversion 1.7 #6094
/external/python/cpython2/Python/sysmodule.c
af1692a266d5c83d9367557f9642bbd618066318 09-May-2009 Benjamin Peterson <benjamin@python.org> convert some more special methods to use _PyObject_LookupSpecial
/external/python/cpython2/Python/sysmodule.c
efc82f7e8eff19d8e844a3dc268a88de7fbcb173 20-Mar-2009 Mark Dickinson <dickinsm@gmail.com> Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Backport of r70459.
/external/python/cpython2/Python/sysmodule.c
81fe09344cfa290efd6041269e70a2d0b629a7c8 06-Feb-2009 Eric Smith <eric@trueblade.com> Implement issue #4285, convert sys.version_info to a named
tuple. Patch by Ross Light.
/external/python/cpython2/Python/sysmodule.c
686d53eed3c9b009397164a5190c16b8b1e0bdb2 14-Jan-2009 Georg Brandl <georg@python.org> Merged revisions 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
........
/external/python/cpython2/Python/sysmodule.c
1b3bef21b061a1543591d6d67d5501a4469504e9 12-Jan-2009 Martin v. Löwis <martin@v.loewis.de> Issue #4915: Port sysmodule to Windows CE.
/external/python/cpython2/Python/sysmodule.c
476290299885a87b8b90b55bbfef067945e63913 10-Jul-2008 Robert Schuppenies <okkotonushi@googlemail.com> Added garbage collector overhead and optional default return value to
sys.getsizeof.
/external/python/cpython2/Python/sysmodule.c
d2cd86ddd5c3d90911a98a1440563118297e45db 10-Jul-2008 Robert Schuppenies <okkotonushi@googlemail.com> Fixed Issue3122 and extended sys.getsizeof tests for built-in types.
/external/python/cpython2/Python/sysmodule.c
2fe77060eb2b322da925b50ffe3c471258736cee 06-Jul-2008 Gregory P. Smith <greg@mad-scientist.com> - Issue #2862: Make int and float freelist management consistent with other
freelists. Changes their CompactFreeList apis into ClearFreeList apis and
calls them via gc.collect().
/external/python/cpython2/Python/sysmodule.c
dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 09-Jun-2008 Gregory P. Smith <greg@mad-scientist.com> This reverts r63675 based on the discussion in this thread:

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.
/external/python/cpython2/Python/sysmodule.c
7a6de8b0f465037ed75104d8f17ca3de99a4da52 01-Jun-2008 Georg Brandl <georg@python.org> Some style nits. Also clarify in the docstrings what __sizeof__ does.
/external/python/cpython2/Python/sysmodule.c
51df0647672bc758da6d58eecfe45da9dc5913df 01-Jun-2008 Robert Schuppenies <okkotonushi@googlemail.com> Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.
/external/python/cpython2/Python/sysmodule.c
99815892f685e9ab20dfdade9c1e8a295139140c 01-Jun-2008 Martin v. Löwis <martin@v.loewis.de> New environment variable PYTHONIOENCODING.
/external/python/cpython2/Python/sysmodule.c
593daf545bd9b7e7bcb27b498ecc6f36db9ae395 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed PyString to PyBytes
/external/python/cpython2/Python/sysmodule.c
4dd019fde36b53b30e69a2ce9cee3f2f9f25c2a6 20-May-2008 Martin v. Löwis <martin@v.loewis.de> Patch #2488: Add sys.maxsize.
/external/python/cpython2/Python/sysmodule.c
be1501b976aa36733e6ef0b86c4f8c6844df3181 08-May-2008 Brett Cannon <bcannon@gmail.com> Fix sys.flags to properly expose bytes_warning.

Closes issue #2790.
/external/python/cpython2/Python/sysmodule.c
af748c3ab8f4274a01630bc5dd95ede7db5f115b 07-May-2008 Christian Heimes <christian@cheimes.de> Implemented PEP 370
/external/python/cpython2/Python/sysmodule.c
f19a7b90bd0cbdf40d02f125db3e39f077f3a89f 27-Apr-2008 Benjamin Peterson <benjamin@python.org> A little reformating of Py3k warnings
/external/python/cpython2/Python/sysmodule.c
9f4f48114fbf2df3803a44a30cd14e11679403fe 27-Apr-2008 Benjamin Peterson <benjamin@python.org> Use PyErr_WarnPy3k throughout
/external/python/cpython2/Python/sysmodule.c
858a77099e094ce4ef57778d38230ec36db2e805 18-Apr-2008 Benjamin Peterson <benjamin@python.org> Fix indentation in sysmodule.c
/external/python/cpython2/Python/sysmodule.c
40f0a87666b7a6b76d247e00c7623919feeff1cf 13-Apr-2008 Brett Cannon <bcannon@gmail.com> Fix a bug in PySys_HasWarnOption() where it was not properly checking the
length of the list storing the warning options.
/external/python/cpython2/Python/sysmodule.c
e9746890388178bb1e4cdad3c0586bf1862c3727 13-Apr-2008 Brett Cannon <bcannon@gmail.com> Re-implement the 'warnings' module in C. This allows for usage of the
'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.
/external/python/cpython2/Python/sysmodule.c
d5b635f1969fdd609f0aff5669c9ec30e61be62e 25-Mar-2008 Georg Brandl <georg@python.org> Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
/external/python/cpython2/Python/sysmodule.c
a113bd9f69d07568494e54c0f8150fe14c79e413 24-Mar-2008 Christian Heimes <christian@cheimes.de> Added quick hack for bzr
/external/python/cpython2/Python/sysmodule.c
6a453c3750889da2117616f5c90e99538a14a92a 24-Mar-2008 Christian Heimes <christian@cheimes.de> Added quick hack for bzr
/external/python/cpython2/Python/sysmodule.c
5a44424c5e6b9533b12773fadeaf436903ca855e 21-Mar-2008 Georg Brandl <georg@python.org> #2358: add py3k warning to sys.exc_clear().
/external/python/cpython2/Python/sysmodule.c
422051a3675271e179995ad4a0f056ff94395d55 04-Feb-2008 Christian Heimes <christian@cheimes.de> Patch #1953
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
/external/python/cpython2/Python/sysmodule.c
796fc3158572c9a20f64f6b1c54e278639e6f032 30-Jan-2008 Christian Heimes <christian@cheimes.de> The previous change was causing a segfault after multiple calls to Py_Initialize() and Py_Finalize().
/external/python/cpython2/Python/sysmodule.c
0d9244332b4c9dad8722f7ed651fb922de93afe6 30-Jan-2008 Christian Heimes <christian@cheimes.de> Fixed some references leaks in sys.
/external/python/cpython2/Python/sysmodule.c
908caac52e8e62baa1ee54e4e650e1cd3ac37907 28-Jan-2008 Christian Heimes <christian@cheimes.de> Added clear cache methods to clear the internal type lookup cache for ref leak test runs.
/external/python/cpython2/Python/sysmodule.c
56112895d69131ee4f34d4e3e9406614313df57f 20-Jan-2008 Georg Brandl <georg@python.org> #1648: add sys.gettrace() and sys.getprofile().
/external/python/cpython2/Python/sysmodule.c
7ce9b184603330386bf29ba21b56cf846616c217 15-Jan-2008 Andrew M. Kuchling <amk@amk.ca> Typo fixes
/external/python/cpython2/Python/sysmodule.c
f31b69f9dbfcb0d7f57147abcba47a940bd9430b 14-Jan-2008 Christian Heimes <christian@cheimes.de> Applied patch #1816: sys.flags patch
/external/python/cpython2/Python/sysmodule.c
2da0fceba7dd70334aacbab0708a8cbdff92e31d 07-Jan-2008 Georg Brandl <georg@python.org> Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
/external/python/cpython2/Python/sysmodule.c
dfdfaab1c54425113e07b623f7dc38f60762cee1 01-Dec-2007 Christian Heimes <christian@cheimes.de> Feature #1534
Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API.
Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
/external/python/cpython2/Python/sysmodule.c
28104c58d2457e2b74245a49e703d020cc2489df 28-Nov-2007 Christian Heimes <christian@cheimes.de> Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504
Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
/external/python/cpython2/Python/sysmodule.c
68cdf8a6da89c22f333444bbd76a73113bdcfa20 16-Apr-2007 Neal Norwitz <nnorwitz@gmail.com> SF #1701207, Fix bogus assertion (and test it!)
/external/python/cpython2/Python/sysmodule.c
afea529088d6447b1fc46318bdeec7c5de875202 23-Jan-2007 Thomas Wouters <thomas@python.org> SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize

When running the interpreter in an environment that would cause it to set
stdout/stderr/stdin's encoding, having a sitecustomize that would replace
them with something other than PyFile objects would crash the interpreter.
Fix it by simply ignoring the encoding-setting for non-files.

This could do with a test, but I can think of no maintainable and portable
way to test this bug, short of adding a sitecustomize.py to the buildsystem
and have it always run with it (hmmm....)
/external/python/cpython2/Python/sysmodule.c
837ce9389e246c84a8791cf0ed64b277efce1f6b 28-Oct-2006 Neal Norwitz <nnorwitz@gmail.com> Add some asserts. In sysmodule, I think these were to try to silence
some warnings from Klokwork. They verify the assumptions of the format
of svn version output.

The assert in the thread module helped debug a problem on HP-UX.
/external/python/cpython2/Python/sysmodule.c
7ccbca93a27e22f0b06316b0d9760fbf7b19cbda 04-Oct-2006 Armin Rigo <arigo@tunes.org> Forward-port of r52136,52138: a review of overflow-detecting code.

* unified the way intobject, longobject and mystrtoul handle
values around -sys.maxint-1.

* in general, trying to entierely avoid overflows in any computation
involving signed ints or longs is extremely involved. Fixed a few
simple cases where a compiler might be too clever (but that's all
guesswork).

* more overflow checks against bad data in marshal.c.

* 2.5 specific: fixed a number of places that were still confusing int
and Py_ssize_t. Some of them could potentially have caused
"real-world" breakage.

* list.pop(x): fixing overflow issues on x was messy. I just reverted
to PyArg_ParseTuple("n"), which does the right thing. (An obscure
test was trying to give a Decimal to list.pop()... doesn't make
sense any more IMHO)

* trying to write a few tests...
/external/python/cpython2/Python/sysmodule.c
e1fdb32ff2bb1f4b46b56fc1de03f8016bc6c780 21-Jul-2006 Neal Norwitz <nnorwitz@gmail.com> Handle allocation failures gracefully. Found with failmalloc.
Many (all?) of these could be backported.
/external/python/cpython2/Python/sysmodule.c
32a8361f2da758c1de662b6d5a1b780466e18cf9 10-Jul-2006 Tim Peters <tim.peters@gmail.com> After approval from Anthony, merge the tim-current_frames
branch into the trunk. This adds a new sys._current_frames()
function, which returns a dict mapping thread id to topmost
thread stack frame.
/external/python/cpython2/Python/sysmodule.c
02f1d0dc78aefa9a15fc6291fe2631f67f2fa6ef 06-Jun-2006 Tim Peters <tim.peters@gmail.com> _PySys_Init(): It's rarely a good idea to size a buffer to the
exact maximum size someone guesses is needed. In this case, if
we're really worried about extreme integers, then "cp%d" can
actually need 14 bytes (2 for "cp" + 1 for \0 at the end +
11 for -(2**31-1)). So reserve 128 bytes instead -- nothing is
actually saved by making a stack-local buffer tiny.
/external/python/cpython2/Python/sysmodule.c
4f7a7220c1f019ced1b82b475115470df6fc3e69 06-Jun-2006 Brett Cannon <bcannon@gmail.com> Add 3 more bytes to a buffer to cover constants in string and null byte on top of 10 possible digits for an int.

Closes bug #1501223.
/external/python/cpython2/Python/sysmodule.c
96a8c3954cbdb186bc567a490dad8987508ce268 29-May-2006 Georg Brandl <georg@python.org> Make use of METH_O and METH_NOARGS where possible.
Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
/external/python/cpython2/Python/sysmodule.c
53a6d1de831a4d25cebf7b957b52c42d1e9e8bdb 18-Apr-2006 Skip Montanaro <skip@pobox.com> C++ compiler cleanup: extern "C" a couple declarations, cast int to size_t
/external/python/cpython2/Python/sysmodule.c
e170937af6463d92e95cea907964a23dff521f31 12-Apr-2006 Armin Rigo <arigo@tunes.org> Ignore the references to the dummy objects used as deleted keys
in dicts and sets when computing the total number of references.
/external/python/cpython2/Python/sysmodule.c
ea62d2535f6160d5b4306ea060f5da05cfa7e9ab 03-Apr-2006 Martin v. Löwis <martin@v.loewis.de> Bug #1421664: Set sys.stderr.encoding
/external/python/cpython2/Python/sysmodule.c
72c2c062d71c499863ff6e260525faaea4a53dbb 09-Mar-2006 Neal Norwitz <nnorwitz@gmail.com> Try to be a bit more consistent on all platforms:
python .
python < .

both print a message, return non-zero and do not core dump.
/external/python/cpython2/Python/sysmodule.c
725507b52ec40ab49ad87596fff7434322b9b5b1 07-Mar-2006 Martin v. Löwis <martin@v.loewis.de> Change int to Py_ssize_t in several places.
Add (int) casts to silence compiler warnings.
Raise Python exceptions for overflows.
/external/python/cpython2/Python/sysmodule.c
4281cef2057e24384a1d59b6bcf9e9161fde26e8 04-Mar-2006 Neal Norwitz <nnorwitz@gmail.com> Use Py_ssize_t for _Py_RefTotal.
I tried to handle Win64 properly, but please review.
/external/python/cpython2/Python/sysmodule.c
5118517c16f3e077cfadb2abfbfa8029235773d2 02-Mar-2006 Brett Cannon <bcannon@gmail.com> Fix minor docstring typo.
/external/python/cpython2/Python/sysmodule.c
d96ee909934f3855135589e0e8d6ece1912c1f22 16-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Use Py_ssize_t to count the
/external/python/cpython2/Python/sysmodule.c
18e165558b24d29e7e0ca501842b9236589b012a 15-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Merge ssize_t branch.
/external/python/cpython2/Python/sysmodule.c
1ac754fa10f5d199d19911e21185d0970cb3073f 19-Jan-2006 Neal Norwitz <nnorwitz@gmail.com> Check return result from Py_InitModule*(). This API can fail.

Probably should be backported.
/external/python/cpython2/Python/sysmodule.c
e86e7a5b62250ab3a17c020bdeb0213a971f2585 06-Jan-2006 Tim Peters <tim.peters@gmail.com> svnversion_init(): Use standard layout for function defn.
/external/python/cpython2/Python/sysmodule.c
216b78bdaac9e538ee278b082c9fe0aeecc5f225 06-Jan-2006 Tim Peters <tim.peters@gmail.com> Trimmed trailing whitespace.
/external/python/cpython2/Python/sysmodule.c
43b57805fbc9b500f0b4239fd925868b26475f35 06-Jan-2006 Martin v. Löwis <martin@v.loewis.de> Drop sys.build_number. Add sys.subversion.
/external/python/cpython2/Python/sysmodule.c
2a38a86c1c48adbf9cf76d485c515002f042fd56 18-Dec-2005 Barry Warsaw <barry@python.org> Expose Subversion revision number (calculated via "svnversion .") to Python.
Add C API function Py_GetBuildNumber(), add it to the interactive prompt
banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number
attribute. The build number is a string instead of an int because it may
contain a trailing 'M' if there are local modifications.
/external/python/cpython2/Python/sysmodule.c
3e0055f8c65c407e74ce476b8e2b1fb889723514 20-Oct-2005 Jeremy Hylton <jeremy@alum.mit.edu> Merge ast-branch to head

This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.

The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
/external/python/cpython2/Python/sysmodule.c
11bd11922657f582ee05f1d3cefe32c3a9e51cb7 03-Oct-2005 Neal Norwitz <nnorwitz@gmail.com> SF bug #887946, segfault if redirecting directory
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.

Will backport.
/external/python/cpython2/Python/sysmodule.c
6953772d906dae738894490a594751bb793d66bd 15-Sep-2005 Georg Brandl <georg@python.org> patch [ 1119423 ] python -c readlink()s and stat()s '-c'
/external/python/cpython2/Python/sysmodule.c
13a1fde4da63c92fdb86b6bcf4d2d21928c80bc8 27-Jan-2005 Martin v. Löwis <martin@v.loewis.de> Partially revert #1074011; don't try to fflush stdin.
Backported to 2.3 and 2.4.
/external/python/cpython2/Python/sysmodule.c
8e3ca8af2641a47a83f02135a77193b0b80c545e 23-Jan-2005 Martin v. Löwis <martin@v.loewis.de> Flush std{in,out,err} before closing it. Fixes #1074011.
Will backport to 2.4 and 2.3.
/external/python/cpython2/Python/sysmodule.c
800ba2375a970ca6095465021aa4d8e72279cd9f 12-Aug-2004 Michael W. Hudson <mwh@python.net> This is my patch:

[ 1005891 ] support --with-tsc on PPC

plus a trivial change to settscdump's docstring and a Misc/NEWS entry.
/external/python/cpython2/Python/sysmodule.c
0f5aed4e41d1df04ffd004747fc0da4ace16350f 13-Jun-2004 Neal Norwitz <nnorwitz@gmail.com> Remove compiler warning
/external/python/cpython2/Python/sysmodule.c
f30d60edbc0d5047a2fdd01e25868e4b814107e2 08-Jun-2004 Martin v. Löwis <martin@v.loewis.de> Patch #510695: Add TSC profiling for the VM.
/external/python/cpython2/Python/sysmodule.c
e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a 24-Mar-2004 Nicholas Bastin <nick.bastin@gmail.com> Changed random calls to PyThreadState_Get() to use the macro
/external/python/cpython2/Python/sysmodule.c
c69ebe8d50529eae281275c841428eb9b375a442 24-Mar-2004 Nicholas Bastin <nick.bastin@gmail.com> Enable the profiling of C functions (builtins and extensions)
/external/python/cpython2/Python/sysmodule.c
a2c17c58206cb3fc75bb5331a805663d635c62e2 09-Aug-2003 Martin v. Löwis <martin@v.loewis.de> Move initialization of sys.std{in,out}.encoding to Py_Initialize.
Verify that the encoding actually exists. Fixes #775985.
Will backport to 2.3.
/external/python/cpython2/Python/sysmodule.c
e5e065b6699b33244e58b798e7b17b39bf2945a0 06-Jul-2003 Tim Peters <tim.peters@gmail.com> New function sys.getcheckinterval(), to complement setcheckinterval().
/external/python/cpython2/Python/sysmodule.c
5467d4c0e31e9db305a4899a44d7978f83e96649 10-May-2003 Martin v. Löwis <martin@v.loewis.de> Patch #612627: Add encoding attribute to file objects, and determine
the terminal encoding on Windows and Unix.
/external/python/cpython2/Python/sysmodule.c
c16f3bd8a391a68427a95e15a3c1894198ff0377 03-May-2003 Martin v. Löwis <martin@v.loewis.de> Patch #708495: Port more stuff to OpenVMS.
/external/python/cpython2/Python/sysmodule.c
a12fe4e81fa3221458e16225e76ec7b8a05820ee 09-Apr-2003 Guido van Rossum <guido@python.org> - New function sys.call_tracing() allows pdb to debug code
recursively.
- pdb has a new command, "debug", which lets you step through
arbitrary code from the debugger's (pdb) prompt.
/external/python/cpython2/Python/sysmodule.c
73d538b9c6d2f262a7d615248c84e509ebd64731 05-Mar-2003 Martin v. Löwis <martin@v.loewis.de> Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,
and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding.
Adjust test case.
/external/python/cpython2/Python/sysmodule.c
46d3dc37e4a01e8d72b00ab9ad4e4a07022b7b64 01-Mar-2003 Guido van Rossum <guido@python.org> - New function sys.exc_clear() clears the current exception. This is
rarely needed, but can sometimes be useful to release objects
referenced by the traceback held in sys.exc_info()[2]. (SF patch
#693195.) Thanks to Kevin Jacobs!
/external/python/cpython2/Python/sysmodule.c
162e38c6a312aa3e9c353419301087a4620c513c 19-Feb-2003 Guido van Rossum <guido@python.org> - sys.path[0] (the directory from which the script is loaded) is now
turned into an absolute pathname, unless it is the empty string.
(SF patch #664376, by Skip Montanaro.)
/external/python/cpython2/Python/sysmodule.c
985eba53f5d1ac45037fbf19b6955c74823c1ded 06-Feb-2003 Jeremy Hylton <jeremy@alum.mit.edu> Small function call optimization and special build option for call stats.

-DCALL_PROFILE: Count the number of function calls executed.

When this symbol is defined, the ceval mainloop and helper functions
count the number of function calls made. It keeps detailed statistics
about what kind of object was called and whether the call hit any of
the special fast paths in the code.

Optimization:

When we take the fast_function() path, which seems to be taken for
most function calls, and there is minimal frame setup to do, avoid
call PyEval_EvalCodeEx(). The eval code ex function does a lot of
work to handle keywords args and star args, free variables,
generators, etc. The inlined version simply allocates the frame and
copies the arguments values into the frame.

The optimization gets a little help from compile.c which adds a
CO_NOFREE flag to code objects that don't have free variables or cell
variables. This change allows fast_function() to get into the fast
path with fewer tests.

I measure a couple of percent speedup in pystone with this change, but
there's surely more that can be done.
/external/python/cpython2/Python/sysmodule.c
27bb71e96382218a5a530772cd81ce6f91d22444 08-Jan-2003 Thomas Heller <theller@ctypes.org> Patch #664376: sys.path[0] should contain absolute pathname.

This fixes the problem on Windows - that's the only system where I can
test it.

It leaves sys.argv alone and only changes sys.path[0] to an absolute
pathname.
/external/python/cpython2/Python/sysmodule.c
8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df 08-Oct-2002 Mark Hammond <mhammond@skippinet.com.au> Add os.path.supports_unicode_filenames for all platforms,
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
version), and fix test_pep277.py in a few minor ways.
Including doc and NEWS entries.
/external/python/cpython2/Python/sysmodule.c
d581d7792bc31e6249ee6ed20bc2a71f53f0d3bb 03-Sep-2002 Skip Montanaro <skip@pobox.com> replace thread state objects' ticker and checkinterval fields with two
globals, _Py_Ticker and _Py_CheckInterval. This also implements Jeremy's
shortcut in Py_AddPendingCall that zeroes out _Py_Ticker. This allows the
test in the main loop to only test a single value.

The gory details are at

http://python.org/sf/602191
/external/python/cpython2/Python/sysmodule.c
8e790e700777cdb0fdecf3acaf53d5ad06784501 03-Sep-2002 Skip Montanaro <skip@pobox.com> expose PYTHON_API_VERSION macro as sys.api_version. Closes patch # 601456.
/external/python/cpython2/Python/sysmodule.c
4be93d0e848ca2dc55f119a7b0eb31fb995d7d33 07-Jul-2002 Tim Peters <tim.peters@gmail.com> Rearranged and added comments to object.h, to clarify many things
that have taken me "too long" to reverse-engineer over the years.
Vastly reduced the nesting level and redundancy of #ifdef-ery.
Took a light stab at repairing comments that are no longer true.

sys_gettotalrefcount(): Changed to enable under Py_REF_DEBUG.
It was enabled under Py_TRACE_REFS, which was much heavier than
necessary. sys.gettotalrefcount() is now available in a
Py_REF_DEBUG-only build.
/external/python/cpython2/Python/sysmodule.c
6238d2b024f061159b2613387ff700695c10deef 30-Jun-2002 Martin v. Löwis <martin@v.loewis.de> Patch #569753: Remove support for WIN16.
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
/external/python/cpython2/Python/sysmodule.c
e739a0dbe9747c6751b82c805bdf186e115208ab 26-Jun-2002 Jack Jansen <jack.jansen@cwi.nl> Got rid of an extraneous semicolon.
/external/python/cpython2/Python/sysmodule.c
ba3ff1ba7ba9b3920bafc1722c62b8abdb77b93c 20-Jun-2002 Fred Drake <fdrake@acm.org> Fix the docstring for sys.getrefcount().
Closes SF bug #571759.
/external/python/cpython2/Python/sysmodule.c
a3fb4f78164e55ddecfd875b9b33791850213dfd 09-Jun-2002 Martin v. Löwis <martin@v.loewis.de> Patch #505375: Make doc strings optional.
/external/python/cpython2/Python/sysmodule.c
0c766a0bb62877a1080acf3c70ca6ed393d9e7fc 27-Mar-2002 Neal Norwitz <nnorwitz@gmail.com> Change sys_exit to use METH_VARARGS.
sys.exit() now requires 0-1 arguments. Previously 2+ arguments were allowed.
/external/python/cpython2/Python/sysmodule.c
0f2103fb16c3ed907c3388a2f862105b81c843d4 23-Mar-2002 Neil Schemenauer <nascheme@enme.ucalgary.ca> Fix wording of sys.exit docstring. Close SF bug 534113.
/external/python/cpython2/Python/sysmodule.c
290d31e2fc02a0d887da2c76fbe4e72377442a0a 03-Mar-2002 Neal Norwitz <nnorwitz@gmail.com> SF #506611, fix sys.setprofile(), sys.settrace() core dumps
when no arguments are passed
/external/python/cpython2/Python/sysmodule.c
2a47c0fa23a3b84d767ee846f93f98aee7e2f5c3 29-Jan-2002 Neal Norwitz <nnorwitz@gmail.com> Fix spelling mistakes. Bugfix candidates.
/external/python/cpython2/Python/sysmodule.c
cdc445122208cb90a59a468a7396b227e223c43a 12-Jan-2002 Martin v. Löwis <martin@v.loewis.de> Include <unistd.h> in Python.h. Fixes #500924.
/external/python/cpython2/Python/sysmodule.c
faad5ad59005d16080aa79b593fede25c6a7457c 03-Dec-2001 Tim Peters <tim.peters@gmail.com> mysnprintf.c: Massive rewrite of PyOS_snprintf and PyOS_vsnprintf, to
use wrappers on all platforms, to make this as consistent as possible x-
platform (in particular, make sure there's at least one \0 byte in
the output buffer). Also document more of the truth about what these do.

getargs.c, seterror(): Three computations of remaining buffer size were
backwards, thus telling PyOS_snprintf the buffer is larger than it
actually is. This matters a lot now that PyOS_snprintf ensures there's a
trailing \0 byte (because it didn't get the truth about the buffer size,
it was storing \0 beyond the true end of the buffer).

sysmodule.c, mywrite(): Simplify, now that PyOS_vsnprintf guarantees to
produce a \0 byte.
/external/python/cpython2/Python/sysmodule.c
080d5b3f0ba3a21811e3d3de35d4f8aa7cf408ad 02-Dec-2001 Tim Peters <tim.peters@gmail.com> mywrite(): The test for trouble in PyOS_vsnprintf was wrong on both
ends. Also, when there is trouble, ensure the buffer has a traiing
0 byte.
/external/python/cpython2/Python/sysmodule.c
5d3d134d560d24a9e6b9d65dd814542605c0b152 28-Nov-2001 Jeremy Hylton <jeremy@alum.mit.edu> Use PyOS_vsnprintf() and check its return value.

If it returns -1 (which indicates overflow on old Linux platforms and
perhaps on Windows) or size greater than buffer, write a message
indicating that the previous message was truncated.
/external/python/cpython2/Python/sysmodule.c
107b7daf5a6ce123cad4ae7d02a12ae1eadcb30b 09-Nov-2001 Martin v. Löwis <martin@v.loewis.de> Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.
/external/python/cpython2/Python/sysmodule.c
a768882b0000852539a312c939d69ab9f08f62ae 24-Oct-2001 Fred Drake <fdrake@acm.org> Convert getrefcount() to METH_O, and sys_excepthook() to use
PyArg_UnpackTuple().
/external/python/cpython2/Python/sysmodule.c
8f51f54319fdf1511d080785a73a331489775e8f 04-Oct-2001 Fred Drake <fdrake@acm.org> Rationalize the events passed to the profiler (no changes for the tracer).

The profiler does not need to know anything about the exception state,
so we no longer call it when an exception is raised. We do, however,
make sure we *always* call the profiler when we exit a frame. This
ensures that timing events are more easily isolated by a profiler and
finally clauses that do a lot of work don't have their time
mis-allocated.

When an exception is propogated out of the frame, the C callback for
the profiler now receives a PyTrace_RETURN event with an arg of NULL;
the Python-level profile hook function will see a 'return' event with
an arg of None. This means that from Python it is impossible for the
profiler to determine if the frame exited with an exception or if it
returned None, but this doesn't matter for profiling. A C-based
profiler could tell the difference, but this doesn't seem important.

ceval.c:eval_frame(): Simplify the code in two places so that the
profiler is called for every exit from a frame
and not for exceptions.

sysmodule.c:profile_trampoline(): Make sure we don't expose Python
code to NULL; use None instead.
/external/python/cpython2/Python/sysmodule.c
339d0f720e86dc34837547c90d3003a4a68d7d46 17-Aug-2001 Martin v. Löwis <martin@v.loewis.de> Patch #445762: Support --disable-unicode
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
/external/python/cpython2/Python/sysmodule.c
e3eb1f2b2320bceb10a763ec8691200b85ec287a 16-Aug-2001 Martin v. Löwis <martin@v.loewis.de> Patch #427190: Implement and use METH_NOARGS and METH_O.
/external/python/cpython2/Python/sysmodule.c
03897ea1f7e956e71c3f570ae836486a91b08191 23-Jul-2001 Moshe Zadka <moshez@math.huji.ac.il> Patch number #422106 by Greg Ball, to fix segmentation
fault in sys.displayhook.

Please check this in on the 2.2a1 branch (or whatever is necessary
to get it working next release)
/external/python/cpython2/Python/sysmodule.c
f0473d511b7f883bfff3048f55e3a6adc7a43cb9 18-Jul-2001 Martin v. Löwis <martin@v.loewis.de> Patch #412229: Add functions sys.getdlopenflags and sys.setdlopenflags.
Add dlopenflags to PyInterpreterState, and use it in dlopen calls.
/external/python/cpython2/Python/sysmodule.c
5755ce693dfc497389ab89e8ae0e62c3cc89d4ff 27-Jun-2001 Fred Drake <fdrake@acm.org> Revise the interface to the profiling and tracing support for the
Python interpreter.

This change adds two new C-level APIs: PyEval_SetProfile() and
PyEval_SetTrace(). These can be used to install profile and trace
functions implemented in C, which can operate at much higher speeds
than Python-based functions. The overhead for calling a C-based
profile function is a very small fraction of a percent of the overhead
involved in calling a Python-based function.

The machinery required to call a Python-based profile or trace
function been moved to sysmodule.c, where sys.setprofile() and
sys.setprofile() simply become users of the new interface.

As a side effect, SF bug #436058 is fixed; there is no longer a
_PyTrace_Init() function to declare.
/external/python/cpython2/Python/sysmodule.c
ce9b5a55e164f1128756478b6a2bb548abec1980 27-Jun-2001 Martin v. Löwis <martin@v.loewis.de> Encode surrogates in UTF-8 even for a wide Py_UNICODE.
Implement sys.maxunicode.
Explicitly wrap around upper/lower computations for wide Py_UNICODE.
When decoding large characters with UTF-8, represent expected test
results using the \U notation.
/external/python/cpython2/Python/sysmodule.c
d083839fb4f44ff66792d80f7a71863600ca4638 16-Jun-2001 Fred Drake <fdrake@acm.org> Instead of initializing & interning the strings passed to the profile
and trace functions lazily, which incurs extra argument pushing and checks
in the C overhead for profiling/tracing, create the strings semi-lazily
when the Python code first registers a profile or trace function. This
simplifies the trampoline into the profile/trace functions.
/external/python/cpython2/Python/sysmodule.c
bceccf5f43b51d166951ea97cff086c8828b745b 11-Apr-2001 Guido van Rossum <guido@python.org> Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger
/external/python/cpython2/Python/sysmodule.c
b5c5132d1ac526dc97f8c51ef12299bde791a807 23-Mar-2001 Ka-Ping Yee <ping@zesty.ca> Add sys.excepthook.
Update docstring and library reference section on 'sys' module.
New API PyErr_Display, just for displaying errors, called by excepthook.
Uncaught exceptions now call sys.excepthook; if that fails, we fall back
to calling PyErr_Display directly.
Also comes with sys.__excepthook__ and sys.__displayhook__.
/external/python/cpython2/Python/sysmodule.c
03df3b3bc1073c43ae36777b8f5c3646b9cce61d 13-Jan-2001 Guido van Rossum <guido@python.org> Neil discovered a bad DECREF on warnoptions, that caused repeated
re-initializing Python (Py_Finalize() followed by Py_Initialize()) to
blow up quickly. With the DECREF removed I can't get it to fail any
more. (Except it still leaks, but that's probably a separate issue.)
/external/python/cpython2/Python/sysmodule.c
ceb9b7c700978a9ec875ebaa41a439e3578aba25 11-Jan-2001 Greg Stein <gstein@lyra.org> stdout is sometimes a macro; use "outf" instead.

Submitted by: Mark Favas <m.favas@per.dem.csiro.au>
/external/python/cpython2/Python/sysmodule.c
f68f2fec7df1224a031c3feed8a0ef6028cfcddd 11-Jan-2001 Moshe Zadka <moshez@math.huji.ac.il> Implementation of PEP-0217.
This closes the PEP, and patch 103170
/external/python/cpython2/Python/sysmodule.c
23fff911a2e0185d3f4618cd02a7b051b55fdd7e 15-Dec-2000 Guido van Rossum <guido@python.org> Add definitions for PySys_ResetWarnOptions() and
PySys_AddWarnOption().
/external/python/cpython2/Python/sysmodule.c
b6a54d2a2cd0537be8e013a96068a8ffeaee5847 06-Dec-2000 Barry Warsaw <barry@python.org> _getframe(): New sys module function for getting at the stack frame.
Implements and closes SF patch #102106, with Guido's suggested
documentation changes.
/external/python/cpython2/Python/sysmodule.c
8586991099e4ace18ee94163a96b8ea1bed77ebe 02-Sep-2000 Guido van Rossum <guido@python.org> REMOVED all CWI, CNRI and BeOpen copyright markings.
This should match the situation in the 1.6b1 tree.
/external/python/cpython2/Python/sysmodule.c
ee5adfbae6df9a4ae8d73bccc4f3a55b7f382d11 31-Aug-2000 Jeremy Hylton <jeremy@alum.mit.edu> add user-modifiable recursion_limit

ceval.c:
define recurion_limit (static), default value is 2500
define Py_GetRecursionLimit and Py_SetRecursionLimit
raise RuntimeError if limit is exceeded
PC/config.h:
remove plat-specific definition
sysmodule.c:
add sys.(get|set)recursionlimit
/external/python/cpython2/Python/sysmodule.c
592f2d6c857943e0d833d77bba8ed65f0aa4e04c 31-Aug-2000 Fred Drake <fdrake@acm.org> _PySys_Init(): When setting up sys.version_info, use #if/#elif.../#endif
instead of four #if/#endif blocks. This shortens the
code and improves readability.
/external/python/cpython2/Python/sysmodule.c
f2581c97f202c35886e649bacccef1a46ed5dd2b 17-Aug-2000 Barry Warsaw <barry@python.org> _PySys_Init(): Fix another Insure discovered memory leak; the PyString
created from the "big"/"little" constant needs to be decref'd.
/external/python/cpython2/Python/sysmodule.c
a2b6ad6e2744d3d5819496a91e460b97c93d4d2d 15-Aug-2000 Fred Drake <fdrake@acm.org> Guido pointed out that all names in the sys module have no underscore,
/external/python/cpython2/Python/sysmodule.c
ccede598894e780cb3e4ef80aeede313f62bb1fb 14-Aug-2000 Fred Drake <fdrake@acm.org> The attempt to protect against MS_WIN16 compilers that do not support long
string literals has not been tested on an MS_WIN16 platform; the trailing
";" was inside the #ifndef MS_WIN16, which should cause an error (missing
semi-colon) when compiled with that symbol #defined.
/external/python/cpython2/Python/sysmodule.c
099325e01b9c244bdaf96e072829195243caced9 14-Aug-2000 Fred Drake <fdrake@acm.org> Add a byte_order value to the sys module. The value is "big" for
big-endian machines and "little" for little-endian machines.
/external/python/cpython2/Python/sysmodule.c
1e0c2f4bee43728930bd5f4dc77283f09c4ba004 24-Jul-2000 Thomas Wouters <thomas@python.org> Create a new section of pyport.h to hold all external function declarations
for systems that are missing those declarations from system include files.
Start by moving a pointy-haired ones from their previous locations to the
new section.

(The gethostname() one, for instance, breaks on several systems, because
some define it as (char *, size_t) and some as (char *, int).)

I purposely decided not to include the summary of used #defines like Tim did
in the first section of pyport.h. In my opinion, the number of #defines
likedly to be used by this section would make such an overview unwieldy. I
would suggest documenting the non-obvious ones, though.
/external/python/cpython2/Python/sysmodule.c
f70ef4f8606f99744252a804229d53a4d97601c1 22-Jul-2000 Thomas Wouters <thomas@python.org> Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
/external/python/cpython2/Python/sysmodule.c
dbd9ba6a6c19c3d06f5684b3384a934f740038db 09-Jul-2000 Tim Peters <tim.peters@gmail.com> Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
/external/python/cpython2/Python/sysmodule.c
ffcc3813d82e6b96db79f518f4e67b940a13ce64 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice - 2nd try.
/external/python/cpython2/Python/sysmodule.c
fd71b9e9d496caa510dec56a9b69966558d6ba5d 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice.
/external/python/cpython2/Python/sysmodule.c
582acece2e0db447904b3f8f8f1d2acf36834158 29-Jun-2000 Guido van Rossum <guido@python.org> Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
/external/python/cpython2/Python/sysmodule.c
440d89823020b71d7659fcd357c24549ce815b4c 20-Jun-2000 Mark Hammond <mhammond@skippinet.com.au> Added a new debug method sys.gettotalrefcount(), which returns the total number of references on all Python objects. This is only enabled when Py_TRACE_REFS is defined (which includes default debug builds under Windows).

Also removed a redundant cast from sys.getrefcount(), as discussed on the patches list.
/external/python/cpython2/Python/sysmodule.c
99964b86b2e48ba2a1dba3df08ecbd35cab3e1c5 07-Jun-2000 Marc-André Lemburg <mal@egenix.com> Marc-Andre Lemburg <mal@lemburg.com>:
Changed the API names for setting the default encoding.
These are now in line with the other hooks API names
(no underscores).
/external/python/cpython2/Python/sysmodule.c
8b4d01d9f93068ec08abf62f5307d9391fe6740a 09-May-2000 Fred Drake <fdrake@acm.org> M.-A. Lemburg <mal@lemburg.com>:
Added APIs to allow setting and querying the system's
current string encoding: sys.set_string_encoding()
and sys.get_string_encoding().
/external/python/cpython2/Python/sysmodule.c
6d27c1eb328bc9ea27a90d136b1c772271c4bec0 13-Apr-2000 Fred Drake <fdrake@acm.org> Simplify creation of the version_info value for clarity, per
suggestion from Greg Stein.
/external/python/cpython2/Python/sysmodule.c
93a20bf87c22d54353568f3a411ed11b2638134e 13-Apr-2000 Fred Drake <fdrake@acm.org> Capitulate, changing version_info to a 5-tuple:

major, minor, micro, level, serial

Values are now monotonically increasing with each new release.
/external/python/cpython2/Python/sysmodule.c
801c08d700c16296dccd8f9fa31979d3ed052751 13-Apr-2000 Fred Drake <fdrake@acm.org> Define version_info to be a tuple (major, minor, micro, level); level
is a string "a2", "b1", "c1", or '' for a final release.

Added version_info and hexversion to the module docstring.
/external/python/cpython2/Python/sysmodule.c
ffc0f4fb3624fb66e6622bd0c8db215b5693ef5e 31-Mar-2000 Guido van Rossum <guido@python.org> Use modern PyArg_ParseTuple style, with function names.
(Mostly.)
/external/python/cpython2/Python/sysmodule.c
43713e5a2899930a8698e244b0d0fef59a676d17 29-Feb-2000 Guido van Rossum <guido@python.org> Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
/external/python/cpython2/Python/sysmodule.c
be2033697f8b9b44656965888d0533bf6d0a8499 06-Oct-1999 Guido van Rossum <guido@python.org> In PySys_GetObject(), it's possible that tstate->interp->sysdict is
NULL. In that case, return NULL rather than dumping core.

This fixes PR#91, submitted by Lele Gaifax.
/external/python/cpython2/Python/sysmodule.c
54892c4b2cac50cc698be2ebede663b781cf4a37 27-Jan-1999 Barry Warsaw <barry@python.org> _PySys_Init(): Nailed small memory leak. The stringobject created for
sys.version was missing a Py_XDECREF().
/external/python/cpython2/Python/sysmodule.c
a71b5f4e1d39cda3d78a20a1c41056d362c56630 14-Jan-1999 Guido van Rossum <guido@python.org> Jim Ahlstrom patch: the module doc string is too long for 16-bit VC
1.5. Omit the second part.
/external/python/cpython2/Python/sysmodule.c
e0d7dae3b8008b5037df6cb212ca6efacf7a012d 03-Jan-1999 Guido van Rossum <guido@python.org> Add sys.hexversion, which is an integer encoding the version in hexadecimal.
In other words, hex(sys.hexversion) == 0x010502b2 for Python 1.5.2b2.
This is derived from the new variable PY_VERSION_HEX defined in patchlevel.h.
(Cute, eh?)
/external/python/cpython2/Python/sysmodule.c
8442af35fe337a81efa83952574c5ca0dbcc2883 12-Oct-1998 Guido van Rossum <guido@python.org> Patches for mywrite() by Marc Lemburg: save/restore the error state
reliably; check return value of vsprintf().
/external/python/cpython2/Python/sysmodule.c
40552d0857486782bb5be8f85d6f59375ca6d0b2 06-Aug-1998 Guido van Rossum <guido@python.org> Gack. The module doc string is too long for VC++ 5.0.
However two string literals concatenated are fine!
Hope this doesn't break other platforms.
/external/python/cpython2/Python/sysmodule.c
c3bc31e249b3eb8bc17cf60532e333f9673130e9 27-Jun-1998 Guido van Rossum <guido@python.org> Added doc strings. Maybe the doc string for the module itself is a bit
long, but it sure helps!
/external/python/cpython2/Python/sysmodule.c
a890e688076d323baa8aef5b5da4bc6a60ad3adc 12-May-1998 Guido van Rossum <guido@python.org> New APIs to write to sys.stdout or sys.stderr using a printf-like interface.
Adapted from code submitted by Just van Rossum.

PySys_WriteStdout(format, ...)
PySys_WriteStderr(format, ...)

The first function writes to sys.stdout; the second to sys.stderr. When
there is a problem, they write to the real (C level) stdout or stderr;
no exceptions are raised (but a pending exception may be cleared when a
new exception is caught).

Both take a printf-style format string as their first argument followed
by a variable length argument list determined by the format string.

*** WARNING ***

The format should limit the total size of the formatted output string to
1000 bytes. In particular, this means that no unrestricted "%s" formats
should occur; these should be limited using "%.<N>s where <N> is a
decimal number calculated so that <N> plus the maximum size of other
formatted text does not exceed 1000 bytes. Also watch out for "%f",
which can print hundreds of digits for very large numbers.
/external/python/cpython2/Python/sysmodule.c
bd36dbaaa53929e1bd8609e734c7a0fa128b7bd2 19-Feb-1998 Guido van Rossum <guido@python.org> Make backup copies of stdin, stdout, stderr as __stdin__, __stdout__,
__stderr__. These will be used by the import cleanup.
/external/python/cpython2/Python/sysmodule.c
25c649fdf2e9326fd897ac9707d5041e151a8161 04-Nov-1997 Guido van Rossum <guido@python.org> Get rid of another reference to _PyImport_Inittab (now a static array)
that should be PyImport_Inittab (a new pointer initialized to point to
the array).
/external/python/cpython2/Python/sysmodule.c
6c1e5f2033ff9b1cfe6bda1da4ac6e3c88a47240 30-Sep-1997 Guido van Rossum <guido@python.org> Get DLL version from a variable.
/external/python/cpython2/Python/sysmodule.c
622f73f1889fbed3b2a3f9639fc46665cde5534a 07-Aug-1997 Guido van Rossum <guido@python.org> Remove unised variable
/external/python/cpython2/Python/sysmodule.c
25ce566661c1b7446b3ddb4076513a62f93ce08d 02-Aug-1997 Guido van Rossum <guido@python.org> The last of the mass checkins for separate (sub)interpreters.
Everything should now work again.

See the comments for the .h files mass checkin (e.g. pystate.h) for
more detail.
/external/python/cpython2/Python/sysmodule.c
534ac094f9d63ba1cae95c99fba2c532f8eb31fb 19-Jul-1997 Guido van Rossum <guido@python.org> Removed a bunch of extern declarations of functions that are now
properly declared in Python.h.
/external/python/cpython2/Python/sysmodule.c
b2c8ec4b75f9842042d0ca4ce19102580eafd373 22-May-1997 Guido van Rossum <guido@python.org> Set sys.executable to full path of python (from argv[0]).
/external/python/cpython2/Python/sysmodule.c
1254d79dfaf5cb4e91dae8a14aa6046dca0a4ce5 20-May-1997 Guido van Rossum <guido@python.org> Use #ifdef in stead of #if (Jack)
/external/python/cpython2/Python/sysmodule.c
a027efa5bfa7911b5c4b522b6a0698749a6f2e4a 05-May-1997 Guido van Rossum <guido@python.org> Massive changes for separate thread state management.
All per-thread globals are moved into a struct which is manipulated
separately.
/external/python/cpython2/Python/sysmodule.c
bb5c6f8529c89d2396a3e3c06cf575a130ff7a0e 29-Apr-1997 Guido van Rossum <guido@python.org> Oops, forgot one: inittab.
/external/python/cpython2/Python/sysmodule.c
65bf9f265e4052c3eee95cd73f8de66bc92e53bf 29-Apr-1997 Guido van Rossum <guido@python.org> Quickly renamed.
/external/python/cpython2/Python/sysmodule.c
c474deaaf63deb633bf9bc951c8cc1cd5d107eda 25-Apr-1997 Guido van Rossum <guido@python.org> Expand one level of symbolic link in sys.argv[0] before inserting its
dirname in sys.path. This means that you can create a symbolic link
foo in /usr/local/bin pointing to /usr/yourname/src/foo/foo.py, and
then invoking foo will insert /usr/yourname/src/foo in sys.path, not
/usr/local/bin. This makes it easier to have multifile programs
(before, the program would have to do an os.readlink(sys.argv[0])
itself and insert the resulting directory in sys.path -- Grail does
this).

Note that the expansion is only used for sys.path; sys.argv[0] is
still the original, unadorned filename (/usr/local/bin/foo in the
example).
/external/python/cpython2/Python/sysmodule.c
43f1b8d6e4813f171d74c3c5e2c495e041afabef 24-Jan-1997 Guido van Rossum <guido@python.org> Added optional interface for dynamic execution profile (to be gathered
in ceval.c).
/external/python/cpython2/Python/sysmodule.c
8f49e12a0e0805ec61690263ef1ef15340293980 06-Jan-1997 Guido van Rossum <guido@python.org> Make builtin_module_names a tuple instead of a list.
/external/python/cpython2/Python/sysmodule.c
d266eb460e20ded087d01a29da0a230e235afc40 25-Oct-1996 Guido van Rossum <guido@python.org> New permission notice, includes CNRI.
/external/python/cpython2/Python/sysmodule.c
9b38a145e2ee72dc3ff3300a3c13e358fee1495d 12-Sep-1996 Guido van Rossum <guido@python.org> Rationalized MS ifdefs
/external/python/cpython2/Python/sysmodule.c
cc88341e6d25a7ca9fc7765d93c436f02d84f83b 10-Sep-1996 Guido van Rossum <guido@python.org> Changes to setpythonpath():
Test for / as well as for SEP for MS filenames.
Drop trailing separator from sys.path[0] for MS and Unix filenames.
/external/python/cpython2/Python/sysmodule.c
8b9ea873ad4bbb6a5d31cff43fc589f6004a4e2e 23-Aug-1996 Guido van Rossum <guido@python.org> Use MS_DLL_ID as sys.winver
/external/python/cpython2/Python/sysmodule.c
94a9667f1ae1a5717839a7468a93e4fe1135d795 30-Jul-1996 Guido van Rossum <guido@python.org> Always insert script directory in front of sys.path -- if there's no
sys.argv, insert "". Note that "." is removed as a default component
of the path (see changes to getpath.c and Setup.in).
/external/python/cpython2/Python/sysmodule.c
a63d9f4d9fdd4d659d80628e4429129351fc61cb 24-Jul-1996 Guido van Rossum <guido@python.org> As a side effect of calling PySys_SetArgv (setpythonargv), the
directory containing argv[0] is inserted in front of sys.path.
If argv[0] contains no directory, an empty string is inserted.
If argv is empty, nothing happens.
/external/python/cpython2/Python/sysmodule.c
6f489d989d947169e70a8668cd265780a0a13d5e 28-Jun-1996 Guido van Rossum <guido@python.org> Slightly different Windows ifdefs
/external/python/cpython2/Python/sysmodule.c
8fa9b6f93286faa0e51aa97f43f7b5231bb5955c 17-Jun-1996 Guido van Rossum <guido@python.org> Define sys.prefix and sys.exec_prefix (see Modules/getpath.c; from Makefile).
/external/python/cpython2/Python/sysmodule.c
ded690fc351ecaf0f72429107fa726a9916ab0f6 24-May-1996 Guido van Rossum <guido@python.org> rename printrefs, getobjects to _Py_ prefix
/external/python/cpython2/Python/sysmodule.c
7f3f2c1819ca3bd126c4793384dea811fcefc250 24-May-1996 Guido van Rossum <guido@python.org> TRACE_REFS -> Py_TRACE_REFS
/external/python/cpython2/Python/sysmodule.c
c606fe186f4b2e1d962651ae3ea34325c65b83dc 09-Apr-1996 Guido van Rossum <guido@python.org> Under NT, define sys.dllhandle and sys.winver (Mark H.).
/external/python/cpython2/Python/sysmodule.c
b0352fa3fccf9e8c76bc52aa93333bbecaf04948 12-Jan-1996 Guido van Rossum <guido@python.org> fix args options for setcheckinterval
/external/python/cpython2/Python/sysmodule.c
6ec3c653da9ffd098f522261d5592e64ff8e7889 29-Aug-1995 Sjoerd Mullender <sjoerd@acm.org> Implemented two new functions in sys:
getcounts() returns a list of counts of allocations and
deallocations for all different object types.
getobjects(n [, type ]) returns a list of recently allocated
and not-yet-freed objects of the given type (all
objects if no type given). Only the n most recent
(all if n==0) objects are returned.
getcounts is only available if compiled with -DCOUNT_ALLOCS,
getobjects is only available if compiled with -DTRACE_REFS. Note that
everything must be compiled with these options!
/external/python/cpython2/Python/sysmodule.c
aaf18390ee438aa155658139da0cb2bd9c31741c 08-Jul-1995 Guido van Rossum <guido@python.org> added sys.platform
/external/python/cpython2/Python/sysmodule.c
9a1f3886767dac9920313471bca9299955442d1f 30-Mar-1995 Guido van Rossum <guido@python.org> init sys_checkinterval to 10
/external/python/cpython2/Python/sysmodule.c
cc8914fb2207dfc269aaef046a07366ff3cfc9f1 20-Mar-1995 Guido van Rossum <guido@python.org> fix comment about exit()
/external/python/cpython2/Python/sysmodule.c
4f508cc80668dfbe75d407f867806a9bb778f919 21-Feb-1995 Guido van Rossum <guido@python.org> add explicit 0 flags for methodlist
/external/python/cpython2/Python/sysmodule.c
a0d7a233981ce56c74d3fd6a4fb0cadac08a7654 09-Jan-1995 Guido van Rossum <guido@python.org> sys.check_interval=x -> sys.setcheckinterval(x)
/external/python/cpython2/Python/sysmodule.c
6d023c98b06e8b4558f3558335433f371a89cc9b 04-Jan-1995 Guido van Rossum <guido@python.org> Added 1995 to copyright message.
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
/external/python/cpython2/Python/sysmodule.c
1ae940a5870df2f706fa884afd533847f6b0b1a8 02-Jan-1995 Guido van Rossum <guido@python.org> Lots of changes, most minor (fatal() instead of abort(), use of
err_fetch/err_restore and so on). But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
/external/python/cpython2/Python/sysmodule.c
1d5735e84621a7fe68d361fa0e289fa2c3310836 30-Aug-1994 Guido van Rossum <guido@python.org> Merge back to main trunk
/external/python/cpython2/Python/sysmodule.c
34679b7661873ec65e5157ddd1ea2be8269632d0 26-Jan-1993 Guido van Rossum <guido@python.org> * Added Fixcprt.py: script to fix copyright message.
* various modules: added 1993 to copyright.
* thread.c: added copyright notice.
* ceval.c: minor change to error message for "+"
* stdwinmodule.c: check for error from wfetchcolor
* config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h)
* Add declaration of inittab to import.h
* sysmodule.c: added sys.builtin_module_names
* xxmodule.c, xxobject.c: fix minor errors
/external/python/cpython2/Python/sysmodule.c
3165fe6a56c07f4f85f4ea54b69f5b1f243e2463 25-Sep-1992 Guido van Rossum <guido@python.org> Modified most (but not yet all) I/O to always go through sys.stdout or
sys.stderr or sys.stdin, and to work with any object as long as it has
a write() (respectively readline()) methods. Some functions that took
a FILE* argument now take an object* argument.
/external/python/cpython2/Python/sysmodule.c
14b4adbd3365354f13b6a8a5f07a975a59ff1e34 03-Sep-1992 Guido van Rossum <guido@python.org> Add an optional interface to turn malloc debugging on and off.
/external/python/cpython2/Python/sysmodule.c
5dc8eb0914a6fcea604a6626af9e63120e84b527 19-Jun-1992 Guido van Rossum <guido@python.org> sysmodule.c: calling sys.settrace() or sys.setprofile() without
arguments crashed in INCREF() calls which should be XINCREF() calls.

timemodule.c: fix for SEQUENT port (sys/select, struct timezone) by
Jaap Vermeulen

xxobject.c: include modsupport.h
/external/python/cpython2/Python/sysmodule.c
e765f7dbae84802e2b9be07844c104f36892af30 05-Apr-1992 Guido van Rossum <guido@python.org> Fix reference counts of sys_trace and sys_profile
/external/python/cpython2/Python/sysmodule.c
e2437a191d1498f12cbb6906dfbe4e79c38271ad 23-Mar-1992 Guido van Rossum <guido@python.org> Added settrace() and setprofile().
/external/python/cpython2/Python/sysmodule.c
5ad58c6aef158666fe94fefd9fc646483f6ad044 26-Jan-1992 Guido van Rossum <guido@python.org> sysset(name, NULL) does nothing if sys.name is undefined
/external/python/cpython2/Python/sysmodule.c
ee3a299c396593a277060e0b991b62179eed1086 14-Jan-1992 Guido van Rossum <guido@python.org> Ensure that sys.argv[0] always exists (maybe as empty string).
/external/python/cpython2/Python/sysmodule.c
6a468bf71cd4665d7872f48821dec69566f438cc 31-Dec-1991 Guido van Rossum <guido@python.org> Raise SystemExit instead of calling goaway().
/external/python/cpython2/Python/sysmodule.c
7177657bf2dae89cff8c7d4b2b636ee4287ad6f5 10-Dec-1991 Guido van Rossum <guido@python.org> Added sys.version object.
/external/python/cpython2/Python/sysmodule.c
d6a15ada727e586dc7b2cce8115e65d0abb0d1aa 25-Jun-1991 Guido van Rossum <guido@python.org> Generalize to macintosh.
/external/python/cpython2/Python/sysmodule.c
3caa6e35cfd8bc08725c4d669b46d19f301f3f85 04-Jun-1991 Guido van Rossum <guido@python.org> Added fclose to newopenfileobject() calls.
/external/python/cpython2/Python/sysmodule.c
eb4361af6cd3770c18db9307f0b4112c72679225 05-May-1991 Guido van Rossum <guido@python.org> Defined path delimiter for MS-DOS as semicolon
/external/python/cpython2/Python/sysmodule.c
f70e43a073b36c6f6e9894c01025243a77a452d4 19-Feb-1991 Guido van Rossum <guido@python.org> Added copyright notice.
/external/python/cpython2/Python/sysmodule.c
3f5da24ea304e674a9abbdcffc4d671e32aa70f1 20-Dec-1990 Guido van Rossum <guido@python.org> "Compiling" version
/external/python/cpython2/Python/sysmodule.c
5b3138bec047cfe9d284516be3958680f4fcf4ab 18-Nov-1990 Guido van Rossum <guido@python.org> Empty all modules' symbol tables, so most circular references are
cleared up.
(A function definition references its module's symbol table but
the symbol table of course references the function...)
/external/python/cpython2/Python/sysmodule.c
85a5fbbdfea617f6cc8fae82c9e8c2b5c424436d 14-Oct-1990 Guido van Rossum <guido@python.org> Initial revision
/external/python/cpython2/Python/sysmodule.c