History log of /external/python/cpython2/Python/bltinmodule.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ca56dd4767617a2f5e946130de4beb06442a5cd5 17-Sep-2016 Martin Panter <vadmium+py@gmail.com> Issue #28139: Fix messed up indentation

Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
/external/python/cpython2/Python/bltinmodule.c
fd58349556dba6fa5160afec2bcc7b46a68f224a 28-Apr-2016 Zachary Ware <zachary.ware@gmail.com> Issue #26874: Simplify the divmod docstring.

Now it actually matches the prose docs.
/external/python/cpython2/Python/bltinmodule.c
64f8c7ec4f7ed37490e066d9f092323eeaa83c8c 28-Apr-2016 Zachary Ware <zachary.ware@gmail.com> Issue #26874: Make divmod docstring and full doc match
/external/python/cpython2/Python/bltinmodule.c
6156560e4b40ae81304d80b5a932fd90e6b4ba80 20-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25678: Copy buffer objects to null-terminated strings.

Avoid buffer overreads when int(), long(), float(), and compile()
are passed buffer objects. Similar code is removed from the
complex() constructor, where it was not reachable.

Patch backported from issue #24802 by Eryk Sun.
/external/python/cpython2/Python/bltinmodule.c
9f2dcd227ce0784faec41fd696438e00c3dd2604 16-Jun-2014 Terry Jan Reedy <tjreedy@udel.edu> Issue #19362: Tweek len() doc and docstring to expand the indicated range of
arguments. Original patch by Gareth Rees.
/external/python/cpython2/Python/bltinmodule.c
f7c8584545be5b0ecbd904a4cd1889b0fb0edfb1 10-Jul-2013 R David Murray <rdmurray@bitdance.com> #18424: PEP8ify the tense of the sum docstring.
/external/python/cpython2/Python/bltinmodule.c
94bf697b01f56b99bfd3edaf72b7f4893d80c122 15-Feb-2013 Ezio Melotti <ezio.melotti@gmail.com> #17178: update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan.
/external/python/cpython2/Python/bltinmodule.c
ad4b0001794e47368b0997183b30b1171eab2790 08-Oct-2012 Chris Jerdonek <chris.jerdonek@gmail.com> Issue #14783: Backport changes from 3.2.
/external/python/cpython2/Python/bltinmodule.c
a8857af37b483b8d8f6340dfcc0cc5c46afd412a 20-Aug-2012 Stefan Krah <skrah@bytereef.org> Issue #15741: Fix potential NULL dereference. Found by Coverity.
/external/python/cpython2/Python/bltinmodule.c
c5bef75c77af414c2f6c5901b6838d3071313bc7 15-Aug-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly.
Patch by Serhiy Storchaka.
/external/python/cpython2/Python/bltinmodule.c
59488d233bb663af24492759fd0316ab499200d0 19-Jul-2012 R David Murray <rdmurray@bitdance.com> Closes #9254: backport __import__ docstring/doc mentions of importlib.

Patch by Éric Araujo.
/external/python/cpython2/Python/bltinmodule.c
ed11a5d018e3fc234d7126832756a15c1af67d22 20-May-2012 Martin v. Löwis <martin@v.loewis.de> Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
/external/python/cpython2/Python/bltinmodule.c
a5ae1f0c25212a48dc839de86d9f29312f6c0a3a 06-Nov-2011 Benjamin Peterson <benjamin@python.org> remove py3k warning for callable
/external/python/cpython2/Python/bltinmodule.c
39540a02264998c5682eaa12d6e5ce6713b9056e 19-Jul-2011 Raymond Hettinger <python@rcn.com> Improve docstring for divmod()
/external/python/cpython2/Python/bltinmodule.c
ba8b3a2ca7a43684cf67b174a4b245b8ba596a5c 08-Jul-2011 Victor Stinner <victor.stinner@haypocalc.com> Close #12501: Adjust callable() warning: callable() is only not supported in
Python 3.1. callable() is again supported in Python 3.2.
/external/python/cpython2/Python/bltinmodule.c
c83ea137d7e717f764e2f31fc2544f522de7d857 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Untabify C files. Will watch buildbots.
/external/python/cpython2/Python/bltinmodule.c
ef9b4abfea9d840df2b8161a5cc7abda48ad3739 04-May-2010 Mark Dickinson <dickinsm@gmail.com> Fix trailing whitespace.
/external/python/cpython2/Python/bltinmodule.c
a8d26688183bec915dbedc665ff081d2a7966c4b 04-May-2010 Mark Dickinson <dickinsm@gmail.com> Issue #1533: fix inconsistency in range function argument processing:
any non-float non-integer argument is now converted to an integer (if
possible) using its __int__ method. Previously, only small arguments
were treated this way; larger arguments (those whose __int__ was
outside the range of a C long) would produce a TypeError.

Patch by Alexander Belopolsky (with minor modifications).
/external/python/cpython2/Python/bltinmodule.c
5f429e02274f85f4ba19276847e323b13fae6568 13-Dec-2009 Benjamin Peterson <benjamin@python.org> account for PyObject_IsInstance's new ability to fail
/external/python/cpython2/Python/bltinmodule.c
3dc254181abe0297b917eefb591af92a4a90598e 03-Dec-2009 Mark Dickinson <dickinsm@gmail.com> Issue #6985: number of range() items should be constrained to lie
in a Py_ssize_t, not an int.
/external/python/cpython2/Python/bltinmodule.c
bce783757ff5398280fc06efc2e0e951ec022d21 24-Nov-2009 Mark Dickinson <dickinsm@gmail.com> round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.
/external/python/cpython2/Python/bltinmodule.c
bd15a06fd3ac256d4f2780c85a9f7e6def1ecd1f 18-Nov-2009 Mark Dickinson <dickinsm@gmail.com> Issue #7117, continued: Change round implementation to use the correctly-rounded
string <-> float conversions; this makes sure that the result of the round
operation is correctly rounded, and hence displays nicely using the new float
repr.
/external/python/cpython2/Python/bltinmodule.c
90ed611f6d60caeb59b1d9518f9f76a19436c8a5 17-Nov-2009 Benjamin Peterson <benjamin@python.org> a better callable replacement
/external/python/cpython2/Python/bltinmodule.c
0e0e21530821e7b3218fca3fa7a286ed6088eceb 26-Oct-2009 Mark Dickinson <dickinsm@gmail.com> Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum
/external/python/cpython2/Python/bltinmodule.c
d692a71fddbbc8cebabf260e7d11e113cff4f73e 07-Sep-2009 Benjamin Peterson <benjamin@python.org> revert r74699 since it loses useful error information
/external/python/cpython2/Python/bltinmodule.c
5515990ee1fbe48774dea9fe04d80385a1bf42f2 07-Sep-2009 Benjamin Peterson <benjamin@python.org> PyObject_GetIter can set an error for its self just fine
/external/python/cpython2/Python/bltinmodule.c
753d16234f61dd4494a19e71a5fc196611ecbcf3 02-Jul-2009 Benjamin Peterson <benjamin@python.org> when print() gets unicode arguments, sep and end should be unicode by default #4618
/external/python/cpython2/Python/bltinmodule.c
dd0388a1c218d1ae2074d56b19e8e765a254c938 28-May-2009 Philip Jenvey <pjenvey@underboss.org> further hint to where the open docs really are
/external/python/cpython2/Python/bltinmodule.c
4c1fe51ca0d0972e30a3825011a7ec243827167d 09-May-2009 Benjamin Peterson <benjamin@python.org> don't ignore exceptions from _PyObject_LengthHint
/external/python/cpython2/Python/bltinmodule.c
1bdf7e9caba735ba404d49026dacd67636ea5c5f 18-Apr-2009 Mark Dickinson <dickinsm@gmail.com> Issue #1869: Fix a couple of minor round() issues.
/external/python/cpython2/Python/bltinmodule.c
789be0c0a0656d17f831aa781cf7c5d55e5b4835 02-Apr-2009 Antoine Pitrou <solipsis@pitrou.net> Issue #2396: backport the memoryview object.
/external/python/cpython2/Python/bltinmodule.c
b516370bcbeef7391edc28fa6bfcc8da6d98beea 02-Feb-2009 Raymond Hettinger <python@rcn.com> Issue 1242657: list(obj) can swallow KeyboardInterrupt.
/external/python/cpython2/Python/bltinmodule.c
08336e30adc97345ed1a88ad2a1b9a6f47896fa0 18-Aug-2008 Benjamin Peterson <benjamin@python.org> follup to #3473: don't duplicate the reduce code
/external/python/cpython2/Python/bltinmodule.c
39fd672dfe0bea76d0ae5823b864460757cb423b 31-Jul-2008 Amaury Forgeot d'Arc <amauryfa@gmail.com> #3479: unichr(2**32) used to return u'\x00'.
The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int.

(why doesn't gcc issue a truncation warning in this case?)
/external/python/cpython2/Python/bltinmodule.c
9c437af4ebd832d913b85bfb2e666d55565c3665 25-Jun-2008 Raymond Hettinger <python@rcn.com> Revert 64424, 64438, and 64439.
/external/python/cpython2/Python/bltinmodule.c
e3ae655edfea3dd8ed32fcca63cb3eae861a58b7 20-Jun-2008 Raymond Hettinger <python@rcn.com> Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support.
/external/python/cpython2/Python/bltinmodule.c
9d53457e599623fbad90833c3448835b42d7e7f9 11-Jun-2008 Gregory P. Smith <greg@mad-scientist.com> Merge in release25-maint r60793:

Added checks for integer overflows, contributed by Google. Some are
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
65856600ed74b59d6e3428f3fd24d39d60d40bbb 30-May-2008 Raymond Hettinger <python@rcn.com> Issue 2784: fix leaks in exception exit.
/external/python/cpython2/Python/bltinmodule.c
593daf545bd9b7e7bcb27b498ecc6f36db9ae395 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed PyString to PyBytes
/external/python/cpython2/Python/bltinmodule.c
3497f9447633b0a60a0b42ba06f2246805b20bb9 26-May-2008 Christian Heimes <christian@cheimes.de> First step of the C API rename:
renamed Include/bytesobject.h to Include/bytearrayobject.h
renamed Include/stringobject.h to Include/bytesobject.h
added Include/stringobject.h with aliases
/external/python/cpython2/Python/bltinmodule.c
c6d64ec83fd6bb170725a04409d8383a53559c95 17-May-2008 Benjamin Peterson <benjamin@python.org> revert 63425 over Guido's Febuary message about this, that I missed
/external/python/cpython2/Python/bltinmodule.c
d7943cb71d51bbf0e2ac715b08b8da2208d2800c 17-May-2008 Benjamin Peterson <benjamin@python.org> fix spelling
/external/python/cpython2/Python/bltinmodule.c
79a922d6df18e0c0e508905aebc8f4fa28052aac 17-May-2008 Benjamin Peterson <benjamin@python.org> add Py3k warnings to oct and hex. backport hex behavior (because it's not different)
/external/python/cpython2/Python/bltinmodule.c
b9030f4f0d566c8ae2eeb28ed858f02f3b853ae7 12-May-2008 Benjamin Peterson <benjamin@python.org> #2196 hasattr now allows SystemExit and KeyboardInterrupt to propagate
/external/python/cpython2/Python/bltinmodule.c
28e0873f1f89d0d80ab64fabeb805de813ec08e4 30-Apr-2008 Georg Brandl <georg@python.org> #2719: backport next() from 3k.
/external/python/cpython2/Python/bltinmodule.c
f19a7b90bd0cbdf40d02f125db3e39f077f3a89f 27-Apr-2008 Benjamin Peterson <benjamin@python.org> A little reformating of Py3k warnings
/external/python/cpython2/Python/bltinmodule.c
9f4f48114fbf2df3803a44a30cd14e11679403fe 27-Apr-2008 Benjamin Peterson <benjamin@python.org> Use PyErr_WarnPy3k throughout
/external/python/cpython2/Python/bltinmodule.c
f2bfd54d6f2acde253ae24805edf116c372bd81e 29-Mar-2008 Georg Brandl <georg@python.org> Properly check for consistency with the third argument of
compile() when compiling an AST node.
/external/python/cpython2/Python/bltinmodule.c
fc8eef3c78200593c9c70974e48ab859779c607a 28-Mar-2008 Georg Brandl <georg@python.org> Patch #1810 by Thomas Lee, reviewed by myself:
allow compiling Python AST objects into code objects
in compile().
/external/python/cpython2/Python/bltinmodule.c
1a6387e68300b6f554f4f4f044491b7034733442 26-Mar-2008 Christian Heimes <christian@cheimes.de> Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/trunk-bytearray

........
r61750 | christian.heimes | 2008-03-22 20:47:44 +0100 (Sat, 22 Mar 2008) | 1 line

Copied files from py3k w/o modifications
........
r61752 | christian.heimes | 2008-03-22 20:53:20 +0100 (Sat, 22 Mar 2008) | 7 lines

Take One
* Added initialization code, warnings, flags etc. to the appropriate places
* Added new buffer interface to string type
* Modified tests
* Modified Makefile.pre.in to compile the new files
* Added bytesobject.c to Python.h
........
r61754 | christian.heimes | 2008-03-22 21:22:19 +0100 (Sat, 22 Mar 2008) | 2 lines

Disabled bytearray.extend for now since it causes an infinite recursion
Fixed serveral unit tests
........
r61756 | christian.heimes | 2008-03-22 21:43:38 +0100 (Sat, 22 Mar 2008) | 5 lines

Added PyBytes support to several places:
str + bytearray
ord(bytearray)
bytearray(str, encoding)
........
r61760 | christian.heimes | 2008-03-22 21:56:32 +0100 (Sat, 22 Mar 2008) | 1 line

Fixed more unit tests related to type('') is not unicode
........
r61763 | christian.heimes | 2008-03-22 22:20:28 +0100 (Sat, 22 Mar 2008) | 2 lines

Fixed more unit tests
Fixed bytearray.extend
........
r61768 | christian.heimes | 2008-03-22 22:40:50 +0100 (Sat, 22 Mar 2008) | 1 line

Implemented old buffer interface for bytearray
........
r61772 | christian.heimes | 2008-03-22 23:24:52 +0100 (Sat, 22 Mar 2008) | 1 line

Added backport of the io module
........
r61775 | christian.heimes | 2008-03-23 03:50:49 +0100 (Sun, 23 Mar 2008) | 1 line

Fix str assignement to bytearray. Assignment of a str of size 1 is interpreted as a single byte
........
r61805 | christian.heimes | 2008-03-23 19:33:48 +0100 (Sun, 23 Mar 2008) | 3 lines

Fixed more tests
Fixed bytearray() comparsion with unicode()
Fixed iterator assignment of bytearray
........
r61809 | christian.heimes | 2008-03-23 21:02:21 +0100 (Sun, 23 Mar 2008) | 2 lines

str(bytesarray()) now returns the bytes and not the representation of the bytearray object
Enabled and fixed more unit tests
........
r61812 | christian.heimes | 2008-03-23 21:53:08 +0100 (Sun, 23 Mar 2008) | 3 lines

Clear error PyNumber_AsSsize_t() fails
Use CHARMASK for ob_svall access
disabled a test with memoryview again
........
r61819 | christian.heimes | 2008-03-23 23:05:57 +0100 (Sun, 23 Mar 2008) | 1 line

Untested updates to the PCBuild directory
........
r61917 | christian.heimes | 2008-03-26 00:57:06 +0100 (Wed, 26 Mar 2008) | 1 line

The type system of Python 2.6 has subtle differences to 3.0's. I've removed the Py_TPFLAGS_BASETYPE flags from bytearray for now. bytearray can't be subclasses until the issues with bytearray subclasses are fixed.
........
r61920 | christian.heimes | 2008-03-26 01:44:08 +0100 (Wed, 26 Mar 2008) | 2 lines

Disabled last failing test
I don't understand what the test is testing and how it suppose to work. Ka-Ping, please check it out.
........
r61930 | christian.heimes | 2008-03-26 12:46:18 +0100 (Wed, 26 Mar 2008) | 1 line

Re-enabled bytes warning code
........
r61933 | christian.heimes | 2008-03-26 13:20:46 +0100 (Wed, 26 Mar 2008) | 1 line

Fixed a bug in the new buffer protocol. The buffer slots weren't copied into a subclass.
........
r61934 | christian.heimes | 2008-03-26 13:25:09 +0100 (Wed, 26 Mar 2008) | 1 line

Re-enabled bytearray subclassing - all tests are passing.
........
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
10dca6e282924974261e7e0b25b13ee1be3ddc58 19-Mar-2008 Raymond Hettinger <python@rcn.com> The filter() function does support a None argument in Py3.0.
/external/python/cpython2/Python/bltinmodule.c
7c47894a2aaa8dbc5397a256b16cd7deddef1d7e 19-Mar-2008 Eric Smith <eric@trueblade.com> Backport of the print function, using a __future__ import.
This work is substantially Anthony Baxter's, from issue
1633807. I just freshened it, made a few minor tweaks,
and added the test cases. I also created issue 2412,
which is to check for 2to3's behavior with the print
function. I also added myself to ACKS.
/external/python/cpython2/Python/bltinmodule.c
8e6ec2ff026e2a6cf810094633e530baee21d95a 18-Mar-2008 David Wolever <david@wolever.net> Added a warning when -3 is enabled and None is passed to filter as the first argument.
/external/python/cpython2/Python/bltinmodule.c
3781aef8f8f992f78b31c7029004fa7b1ada7304 18-Mar-2008 Travis E. Oliphant <oliphant@enthought.com> Finish backporting new buffer API to Python 2.6. Left to do: memoryview object and structmodule. But, these need to be finished in Python 3.0 first. No objects support the new buffer API in Python 2.6 as of yet, and except for the memoryview object, I don't think they will.
/external/python/cpython2/Python/bltinmodule.c
b93e7d16d50a6055309d9ff4e105ade453079c41 24-Feb-2008 Neal Norwitz <nnorwitz@gmail.com> Add a little info to the 3k deprecation warnings about what to use instead.
Suggested by Raymond Hettinger.
/external/python/cpython2/Python/bltinmodule.c
53152a1905147e50ee38ff681252292e90ee7474 24-Feb-2008 Neal Norwitz <nnorwitz@gmail.com> map(None, ...) is not supported in 3.0.
/external/python/cpython2/Python/bltinmodule.c
3cd8194b9c8a8380a95db9d1b9ecd048a960316b 22-Feb-2008 Eric Smith <eric@trueblade.com> Added bin() builtin. I'm going to check in the tests in a seperate checkin, because the builtin doesn't need to be ported to py3k, but the tests are missing in py3k and need to be merged there.
/external/python/cpython2/Python/bltinmodule.c
a9f7d6248032c9572b4d2024a1be8bd2823af09f 17-Feb-2008 Eric Smith <eric@trueblade.com> Backport of PEP 3101, Advanced String Formatting, from py3k.

Highlights:
- Adding PyObject_Format.
- Adding string.Format class.
- Adding __format__ for str, unicode, int, long, float, datetime.
- Adding builtin format.
- Adding ''.format and u''.format.
- str/unicode fixups for formatters.

The files in Objects/stringlib that implement PEP 3101 (stringdefs.h,
unicodedefs.h, formatter.h, string_format.h) are identical in trunk
and py3k. Any changes from here on should be made to trunk, and
changes will propogate to py3k).
/external/python/cpython2/Python/bltinmodule.c
ca2b69f765dd8a7f5c8e5c5346572519a8768ec4 01-Feb-2008 Jeffrey Yasskin <jyasskin@gmail.com> Move __builtins__.trunc() to math.trunc() per
http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue
1965.
/external/python/cpython2/Python/bltinmodule.c
867558afd69675be8263a19c3d23b92812a0a62a 29-Jan-2008 Raymond Hettinger <python@rcn.com> CallMethod is faster with a NULL third-argument than with an empty format string.
/external/python/cpython2/Python/bltinmodule.c
1d9a9eaa89e166d814eb55acc1d6271087fadc83 23-Jan-2008 Guido van Rossum <guido@python.org> Fix two crashers.
/external/python/cpython2/Python/bltinmodule.c
288e89acfc29cf857a8c5d314ba2dd3398a2eae9 18-Jan-2008 Christian Heimes <christian@cheimes.de> Added bytes and b'' as aliases for str and ''
/external/python/cpython2/Python/bltinmodule.c
9fcd8ceb74fec0b596ca266868d28955fa251ff1 05-Jan-2008 Georg Brandl <georg@python.org> Fix C++-style comment.
/external/python/cpython2/Python/bltinmodule.c
9871d8fe22566acf68bf336d04d3a1dbd51f3269 05-Jan-2008 Jeffrey Yasskin <jyasskin@gmail.com> Continue rolling back pep-3141 changes that changed behavior from 2.5. This
round included:
* Revert round to its 2.6 behavior (half away from 0).
* Because round, floor, and ceil always return float again, it's no
longer necessary to have them delegate to __xxx___, so I've ripped
that out of their implementations and the Real ABC. This also helps
in implementing types that work in both 2.6 and 3.0: you return int
from the __xxx__ methods, and let it get enabled by the version
upgrade.
* Make pow(-1, .5) raise a ValueError again.
/external/python/cpython2/Python/bltinmodule.c
2f3c16be73a8562d357b9b13bbb8088e275840a7 03-Jan-2008 Jeffrey Yasskin <jyasskin@gmail.com> Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361,
r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new
documentation. The only significant difference is that round(x) returns a float
to preserve backward-compatibility. See http://bugs.python.org/issue1689.
/external/python/cpython2/Python/bltinmodule.c
01dbc109a83b17e19f3da1da9572b6de17add502 21-Dec-2007 Guido van Rossum <guido@python.org> Improve performance of built-in any()/all() by avoiding PyIter_Next() --
using a trick found in ifilter().
Feel free to backport to 2.5.
/external/python/cpython2/Python/bltinmodule.c
4e3ebe0baeba9a7b4a1dcfcadb8b042aef7eb5fb 08-Dec-2007 Skip Montanaro <skip@pobox.com> Note that open() is the preferred way to open files (issue 1510).
/external/python/cpython2/Python/bltinmodule.c
4e2f714031654eb4174393454c008961b636f539 06-Dec-2007 Raymond Hettinger <python@rcn.com> Fix Issue 1045.
Factor-out common calling code by simplifying the length_hint API.
Speed-up the function by caching the PyObject_String for the attribute lookup.
/external/python/cpython2/Python/bltinmodule.c
a45c4873fc190859eefc821bed44f26620c6f99e 25-Oct-2007 Raymond Hettinger <python@rcn.com> Missing DECREFs
/external/python/cpython2/Python/bltinmodule.c
3a8daf5b56fc6c298c30536583a5b903f9a31fb3 24-Oct-2007 Raymond Hettinger <python@rcn.com> Fixup error return and add support for intermixed ints and floats/
/external/python/cpython2/Python/bltinmodule.c
3f8caa3ba733619e466d1b829acecefd35684345 24-Oct-2007 Raymond Hettinger <python@rcn.com> Optimize sum() for integer and float inputs.
/external/python/cpython2/Python/bltinmodule.c
df25efeae931409fa45ed034337bd81396d19ce0 23-May-2007 Neal Norwitz <nnorwitz@gmail.com> Add a bunch more deprecation warnings for builtins that are going away in 3.0
/external/python/cpython2/Python/bltinmodule.c
8b2bfbc198c1fe0dcdfd42cc4683879cd712ccfd 23-May-2007 Neal Norwitz <nnorwitz@gmail.com> Add -3 option to the interpreter to warn about features that are
deprecated and will be changed/removed in Python 3.0.

This patch is mostly from Anthony. I tweaked some format and added
a little doc.
/external/python/cpython2/Python/bltinmodule.c
5240d7416c739e22298463cb08ba8aad7c762a4a 13-Mar-2007 Georg Brandl <georg@python.org> Patch #1444529: the builtin compile() now accepts keyword arguments.
(backport)
/external/python/cpython2/Python/bltinmodule.c
3bb156722e97c31260b4da6c22594a7698e5cf04 13-Mar-2007 Georg Brandl <georg@python.org> Typo and grammar fixes.
/external/python/cpython2/Python/bltinmodule.c
871f1bc6011c1644b1be2e87518c435e7fb552ad 12-Mar-2007 Georg Brandl <georg@python.org> Backport from Py3k branch:

Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir.

Had to change a few bits of the patch because classobjs and __methods__ are still
in Py2.6.
/external/python/cpython2/Python/bltinmodule.c
8134d06e08a009c3bae040317dab6dd541241c7e 12-Oct-2006 Georg Brandl <georg@python.org> Bug #1283491: follow docstring convention wrt. keyword-able args in sum().
/external/python/cpython2/Python/bltinmodule.c
477ca1c953ae778fc71378318daed790b0ac9ac5 05-Sep-2006 Neal Norwitz <nnorwitz@gmail.com> Fix SF #1552093, eval docstring typo (3 ps in mapping)
/external/python/cpython2/Python/bltinmodule.c
43bd4db933711da450931824add443549a757455 12-Aug-2006 Neal Norwitz <nnorwitz@gmail.com> It's highly unlikely, though possible for PyEval_Get*() to return NULLs.
So be safe and do an XINCREF.

Klocwork # 221-222.
/external/python/cpython2/Python/bltinmodule.c
7e3ba2a699d6a5660fc7bf239b2090d5b2961b8c 06-Aug-2006 Georg Brandl <georg@python.org> Bug #1535165: fixed a segfault in input() and raw_input() when
sys.stdin is closed.
/external/python/cpython2/Python/bltinmodule.c
c4edb0ec81f437b84a4011e3a375892d48d0bd6c 02-May-2006 Neal Norwitz <nnorwitz@gmail.com> SF #1479181: split open() and file() from being aliases for each other.
/external/python/cpython2/Python/bltinmodule.c
b1ed7fac12fe51080c06e518a9fcaa21f0734744 13-Apr-2006 Martin v. Löwis <martin@v.loewis.de> Replace INT_MAX with PY_SSIZE_T_MAX.
/external/python/cpython2/Python/bltinmodule.c
92e212f7d95f4c1071f6e2ea0b85cfb36a562814 03-Apr-2006 Neal Norwitz <nnorwitz@gmail.com> Accept keyword arguments for __import__ and doc the addition of the level param from PEP 328.
/external/python/cpython2/Python/bltinmodule.c
ccadf84a1bc1b7908f5dcefd6897f93e174c57b9 31-Mar-2006 Georg Brandl <georg@python.org> Patch #1460496: round() now accepts keyword arguments.
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
f7f438ba3b05eb4356e7511401686b07d9dfb6d8 28-Feb-2006 Thomas Wouters <thomas@python.org> SF patch #1438387, PEP 328: relative and absolute imports.

- IMPORT_NAME takes an extra argument from the stack: the relativeness of
the import. Only passed to __import__ when it's not -1.

- __import__() takes an optional 5th argument for the same thing; it
__defaults to -1 (old semantics: try relative, then absolute)

- 'from . import name' imports name (be it module or regular attribute)
from the current module's *package*. Likewise, 'from .module import name'
will import name from a sibling to the current module.

- Importing from outside a package is not allowed; 'from . import sys' in a
toplevel module will not work, nor will 'from .. import sys' in a
(single-level) package.

- 'from __future__ import absolute_import' will turn on the new semantics
for import and from-import: imports will be absolute, except for
from-import with dots.

Includes tests for regular imports and importhooks, parser changes and a
NEWS item, but no compiler-package changes or documentation changes.
/external/python/cpython2/Python/bltinmodule.c
15e62742fad688b026ba80bf17d1345c4cbd423b 27-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Revert backwards-incompatible const changes.
/external/python/cpython2/Python/bltinmodule.c
bd260da900b5c5f16e5c61f6795d08171b33e0f8 26-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Generate code to recursively copy an AST into
a tree of Python objects. Expose this through compile().
/external/python/cpython2/Python/bltinmodule.c
a361bd8dce3513d2f58a3b7548139990c31f0bb7 19-Feb-2006 Neal Norwitz <nnorwitz@gmail.com> Fix compiler warning (int vs Py_ssize_t mismatch
/external/python/cpython2/Python/bltinmodule.c
d96ee909934f3855135589e0e8d6ece1912c1f22 16-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Use Py_ssize_t to count the
/external/python/cpython2/Python/bltinmodule.c
18e165558b24d29e7e0ca501842b9236589b012a 15-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Merge ssize_t branch.
/external/python/cpython2/Python/bltinmodule.c
f5b3e36493da275334e29afdbd238863697dca35 11-Feb-2006 Armin Rigo <arigo@tunes.org> Renamed _length_cue() to __length_hint__(). See:
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
/external/python/cpython2/Python/bltinmodule.c
6f0d479c78280572196419917c367d581d6d0e3f 15-Dec-2005 Neal Norwitz <nnorwitz@gmail.com> Fix an int/long mismatch identified here:
http://www.tortall.net/mu/blog/2005/12/01

Pointed out from SF #1365916.

Backport candidate.
/external/python/cpython2/Python/bltinmodule.c
af68c874a6803b4e90b616077a602c0593719a1d 10-Dec-2005 Jeremy Hylton <jeremy@alum.mit.edu> Add const to several API functions that take char *.

In C++, it's an error to pass a string literal to a char* function
without a const_cast(). Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.

I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc. Predictably, there were a large set of functions that
needed to be fixed as a result of these changes. The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].

One cast was required as a result of the changes: A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
/external/python/cpython2/Python/bltinmodule.c
3a9a3e7864a6c04f2dce5522dfa7af434a97f9a8 27-Nov-2005 Neal Norwitz <nnorwitz@gmail.com> Fix memory leaks
/external/python/cpython2/Python/bltinmodule.c
ec97a28b60b40d366379d22876baebcdd06a89ad 21-Oct-2005 Jeremy Hylton <jeremy@alum.mit.edu> Fix a bunch of imports to use code.h instead of compile.h.
Remove duplicate declarations from compile.h
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
6b27cda64386195cd07dfb686e9486f1c4bc3159 24-Sep-2005 Raymond Hettinger <python@rcn.com> Convert iterator __len__() methods to a private API.
/external/python/cpython2/Python/bltinmodule.c
71d7e704b8982c586ffaf9d85399437f7a03d5e1 20-Sep-2005 Armin Rigo <arigo@tunes.org> Removed a check "if (args != NULL)" which is always True and makes no sense.
/external/python/cpython2/Python/bltinmodule.c
77c85e63b42743b22dda5538cedfb1dd1282a657 15-Sep-2005 Georg Brandl <georg@python.org> bug [ 868706 ] Calling builtin function 'eval' from C causes seg fault.
/external/python/cpython2/Python/bltinmodule.c
99d7e4e8eb0f8971b36e1f63db144423d802ebc2 01-Sep-2005 Georg Brandl <georg@python.org> Whitespace normalization.
/external/python/cpython2/Python/bltinmodule.c
a710b331daee9e79ca90395feb6ce8c552e00568 21-Aug-2005 Raymond Hettinger <python@rcn.com> SF bug #1242657: list(obj) can swallow KeyboardInterrupt

Fix over-aggressive PyErr_Clear(). The same code fragment appears in
various guises in list.extend(), map(), filter(), zip(), and internally
in PySequence_Tuple().
/external/python/cpython2/Python/bltinmodule.c
e35b657efd1b2eae89497233f6494f8323d5ad1e 20-Jul-2005 Georg Brandl <georg@python.org> Fix cleanup DECREF logic in builtin_filter function.
/external/python/cpython2/Python/bltinmodule.c
96229b191814556622b575fd320e822f918f355a 11-Mar-2005 Raymond Hettinger <python@rcn.com> Add two new functions, any() and all().
/external/python/cpython2/Python/bltinmodule.c
9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389 07-Dec-2004 Brett Cannon <bcannon@gmail.com> Put parentheses around the assignment in the 'while' loop conditional
expression in min_max() to shut gcc up.
/external/python/cpython2/Python/bltinmodule.c
3b0c7c20a10349fbedeb3779582280363a46f087 03-Dec-2004 Raymond Hettinger <python@rcn.com> SF patch #1077353: add key= argument to min and max

(First draft of patch contributed by Steven Bethard.)
/external/python/cpython2/Python/bltinmodule.c
8d494f3241f8a731f959ed1573b95b3a80bb4932 25-Aug-2004 Martin v. Löwis <martin@v.loewis.de> Patch #1015021: Stop claiming that coerce can return None.
Will backport to 2.3.
/external/python/cpython2/Python/bltinmodule.c
fd39ad4937f5f48142c7dafdac9d727931137c96 12-Aug-2004 Martin v. Löwis <martin@v.loewis.de> Patch #1005468: Disambiguate "min() or max()" exception string.
/external/python/cpython2/Python/bltinmodule.c
4c989ddc9c8bd38ab14c9f42511eb567ed219604 07-Aug-2004 Jeremy Hylton <jeremy@alum.mit.edu> Subclasses of string can no longer be interned. The semantics of
interning were not clear here -- a subclass could be mutable, for
example -- and had bugs. Explicitly interning a subclass of string
via intern() will raise a TypeError. Internal operations that attempt
to intern a string subclass will have no effect.

Added a few tests to test_builtin that includes the old buggy code and
verifies that calls like PyObject_SetAttr() don't fail. Perhaps these
tests should have gone in test_string.
/external/python/cpython2/Python/bltinmodule.c
52db519faa6b0d4f611c81b4a8b181dfb988c678 02-Aug-2004 Michael W. Hudson <mwh@python.net> for some reason, the lack of adherence to Python's C whitespace rules
must have annoyed me at some point.
/external/python/cpython2/Python/bltinmodule.c
66bd23322567a9ef0ad7bbe2436fef73b18bc9db 02-Aug-2004 Raymond Hettinger <python@rcn.com> Completed the patch for Bug #215126.
* Fixes an incorrect variable in a PyDict_CheckExact.
* Allow general mapping locals arguments for the execfile() function
and exec statement.
* Add tests.
/external/python/cpython2/Python/bltinmodule.c
3a313e36555a3416799f3c049b8ebb41e9edeb8a 19-Jul-2004 Neil Schemenauer <nascheme@enme.ucalgary.ca> Check the type of values returned by __int__, __float__, __long__,
__oct__, and __hex__. Raise TypeError if an invalid type is
returned. Note that PyNumber_Int and PyNumber_Long can still
return ints or longs. Fixes SF bug #966618.
/external/python/cpython2/Python/bltinmodule.c
30ea2f223f5c0a85a13bd893063555a9f587cd6d 07-Jul-2004 Michael W. Hudson <mwh@python.net> This closes patch:

[ 960406 ] unblock signals in threads

although the changes do not correspond exactly to any patch attached to
that report.

Non-main threads no longer have all signals masked.

A different interface to readline is used.

The handling of signals inside calls to PyOS_Readline is now rather
different.

These changes are all a bit scary! Review and cross-platform testing
much appreciated.
/external/python/cpython2/Python/bltinmodule.c
513ffe81122274973d2adeff13345589d4313d47 06-Jul-2004 Raymond Hettinger <python@rcn.com> * Fix missing return after error message is set.
* Add a test case that would have caught it.
/external/python/cpython2/Python/bltinmodule.c
214b1c3aaea3e83302df9ea37a37b3c7548b92b1 02-Jul-2004 Raymond Hettinger <python@rcn.com> SF Bug #215126: Over restricted type checking on eval() function

The builtin eval() function now accepts any mapping for the locals argument.
Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing
down the normal case. My timings so no measurable impact.
/external/python/cpython2/Python/bltinmodule.c
da4d6cb57340f44ab72bc8f0284ca839372bbeb6 29-Mar-2004 Andrew MacIntyre <andymac@bullseye.apana.org.au> OS/2 VACPP build updates/fixes
/external/python/cpython2/Python/bltinmodule.c
ff83c2bacc2acd782d20b589a02420df571b89a2 02-Feb-2004 Hye-Shik Chang <hyeshik@gmail.com> Fix input() builtin function to respect compiler flags.
(SF patch 876178, patch by mwh, unittest by perky)
/external/python/cpython2/Python/bltinmodule.c
b86269db458f63b95be8017e47671092be3b48d1 04-Jan-2004 Raymond Hettinger <python@rcn.com> Apply pre-sizing optimization to a broader class of objects.
Formerly, the length was only fetched from sequence objects.
Now, any object that reports its length can benefit from pre-sizing.
/external/python/cpython2/Python/bltinmodule.c
77f3c8711337c887c072c43be2aec7a3079819f3 04-Jan-2004 Raymond Hettinger <python@rcn.com> Apply map/zip pre-sizing optimization to a broader class of objects.
Formerly, the length was only fetched from sequence objects.
Now, any object that reports its length can benefit from pre-sizing.
/external/python/cpython2/Python/bltinmodule.c
64958a15d7c03efdc3d2eddf247666e18d1fd910 17-Dec-2003 Raymond Hettinger <python@rcn.com> Guido grants a Christmas wish:
sorted() becomes a regular function instead of a classmethod.
/external/python/cpython2/Python/bltinmodule.c
d75ede32382352930d6c8c8c6bac472010c2f782 05-Dec-2003 Fred Drake <fdrake@acm.org> Remove the PendingDeprecationWarning from apply(). apply() will
remain deprecated in the documentation.
/external/python/cpython2/Python/bltinmodule.c
a690a9967e715663b7a421c9ebdad91381cdf1e4 16-Nov-2003 Raymond Hettinger <python@rcn.com> * Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.

Includes the docs for libfuncs.tex. Separate docs for the types are
forthcoming.
/external/python/cpython2/Python/bltinmodule.c
85c20a41dfcec04d161ad7da7260e7b94c62d228 06-Nov-2003 Raymond Hettinger <python@rcn.com> Implement and apply PEP 322, reverse iteration
/external/python/cpython2/Python/bltinmodule.c
a253e183b807c8108f984758d2b1365bef977e6b 26-Oct-2003 Alex Martelli <aleaxit@gmail.com> regressing the performance bugfix -- Guido wants the performance bug left
alone, because there can be no guarantee re the semantics of += vs + .
/external/python/cpython2/Python/bltinmodule.c
a2777d3a55ca75f199ab4cedd8653104f2bcf40e 25-Oct-2003 Alex Martelli <aleaxit@gmail.com> Changed builtin_sum to use PyNumber_InPlaceAdd (same semantics, but fixes
a performance bug in sum(manylists)), same as in 2.3 maintenance branch.
/external/python/cpython2/Python/bltinmodule.c
5cf6394b126bcbc7a3e97d88b8b2d6fd51f3bee7 25-Oct-2003 Raymond Hettinger <python@rcn.com> Use PyArg_UnpackTuple() where possible.
/external/python/cpython2/Python/bltinmodule.c
8ae468965700fd9900efc28bff8fa2015dae2bef 12-Oct-2003 Raymond Hettinger <python@rcn.com> Simplify and speedup uses of Py_BuildValue():

* Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c)
* Py_BuildValue("()",a) --> PyTuple_New(0)
* Py_BuildValue("O", a) --> Py_INCREF(a)
/external/python/cpython2/Python/bltinmodule.c
364f6becadd79698f8cb2593be7510cd7fe938a6 16-Sep-2003 Jeremy Hylton <jeremy@alum.mit.edu> Correct check of PyUnicode_Resize() return value.
/external/python/cpython2/Python/bltinmodule.c
1aad9c7dade411992005343f6b5b825ac9369ebc 16-Sep-2003 Jeremy Hylton <jeremy@alum.mit.edu> Reflow long lines and reformat.
/external/python/cpython2/Python/bltinmodule.c
c58a3a10a91f0c0c2debc2c386bfeee8184e0f86 18-Aug-2003 Walter Dörwald <walter@livinglogic.de> Fix a crash: when sq_item failed the code continued blindly and used the
NULL pointer. (Detected by Michael Hudson, patch provided by Neal Norwitz).

Fix refcounting leak in filtertuple().
/external/python/cpython2/Python/bltinmodule.c
689735562d45a2c384fbe48069098a4459111fea 14-Aug-2003 Neil Schemenauer <nascheme@enme.ucalgary.ca> Make filter(bool, ...) as fast as filter(None, ...).
/external/python/cpython2/Python/bltinmodule.c
eaef61511656071194565878dc80c46096d46415 02-Aug-2003 Raymond Hettinger <python@rcn.com> As discussed on python-dev, changed builtin.zip() to handle zero arguments
by returning an empty list instead of raising a TypeError.
/external/python/cpython2/Python/bltinmodule.c
a9b9c9fa9fe9d1ae74ba9f89c43557a7f9bc04f5 23-Apr-2003 Alex Martelli <aleaxit@gmail.com> some more error-message enhancements
/external/python/cpython2/Python/bltinmodule.c
f471d4783a54362c730fcd7e38ffb1d74af76f7a 23-Apr-2003 Alex Martelli <aleaxit@gmail.com> complete and clarify some error messages for range()
/external/python/cpython2/Python/bltinmodule.c
41c9f880d8bf59e80b6ca5963c3e9e2b17386736 22-Apr-2003 Alex Martelli <aleaxit@gmail.com> fixed a potential refcount bug (thanks Raymond!).
/external/python/cpython2/Python/bltinmodule.c
a70b19147fd163744be34745d393af7be603629f 22-Apr-2003 Alex Martelli <aleaxit@gmail.com> Adding new built-in function sum, with docs and tests.
/external/python/cpython2/Python/bltinmodule.c
28e83e3a668c9098595c858aae04d69022306fdb 15-Apr-2003 Guido van Rossum <guido@python.org> Some errors from range() should be TypeError, not ValueError.
/external/python/cpython2/Python/bltinmodule.c
817d6c9c9e1d838885fa3422021f4c74cf639a8c 14-Apr-2003 Guido van Rossum <guido@python.org> Prompted by Tim's comment, when handle_range_longs() sees an
unexpected type, report the actual type rather than 'float'. (It's
hard to even reach this code with a float. :-)
/external/python/cpython2/Python/bltinmodule.c
874e1f7ed3911b3290d095891082041b122e7030 14-Apr-2003 Tim Peters <tim.peters@gmail.com> handle_range_longs(): refcount handling is very delicate here, and
the code erroneously decrefed the istep argument in an error case. This
caused a co_consts tuple to lose a float constant prematurely, which
eventually caused gc to try executing static data in floatobject.c (don't
ask <wink>). So reworked this extensively to ensure refcount correctness.
/external/python/cpython2/Python/bltinmodule.c
efbbb1c60237a9a2997dc4b1ab213e4c6f0da824 11-Apr-2003 Guido van Rossum <guido@python.org> Patch by Chad Netzer (with significant change):
- range() now works even if the arguments are longs with magnitude
larger than sys.maxint, as long as the total length of the sequence
fits. E.g., range(2**100, 2**101, 2**100) is the following list:
[1267650600228229401496703205376L]. (SF patch #707427.)
/external/python/cpython2/Python/bltinmodule.c
ff41c48a77b7d1411ce97190c8b8405bdaa261e1 06-Apr-2003 Raymond Hettinger <python@rcn.com> SF patch #701494: more apply removals
/external/python/cpython2/Python/bltinmodule.c
7571a0fbcf6fd5d6014008f566f970c84cff7d95 23-Mar-2003 Tim Peters <tim.peters@gmail.com> Improved new Py_TRACE_REFS gimmicks.
Arranged that all the objects exposed by __builtin__ appear in the list
of all objects. I basically peed away two days tracking down a mystery
leak in sys.gettotalrefcount() in a ZODB app (== tons of code), because
the object leaking the references didn't appear in the sys.getobjects(0)
list. The object happened to be False. Now False is in the list, along
with other popular & previously missing leak candidates (like None).
Alas, we still don't have a choke point covering *all* Python objects,
so the list of all objects may still be incomplete.
/external/python/cpython2/Python/bltinmodule.c
3e59076b1d7313b564786ffcbec17ee86aa5cc60 23-Feb-2003 Neal Norwitz <nnorwitz@gmail.com> Fix SF bug #690435, apply fails to check if warning raises exception
(patch provided by Greg Chapman)
/external/python/cpython2/Python/bltinmodule.c
4b499dd3fb49181efbd99f87e45ff923146cba8a 13-Feb-2003 Guido van Rossum <guido@python.org> - Finally fixed the bug in compile() and exec where a string ending
with an indented code block but no newline would raise SyntaxError.
This would have been a four-line change in parsetok.c... Except
codeop.py depends on this behavior, so a compilation flag had to be
invented that causes the tokenizer to revert to the old behavior;
this required extra changes to 2 .h files, 2 .c files, and 2 .py
files. (Fixes SF bug #501622.)
/external/python/cpython2/Python/bltinmodule.c
8dd19321bbb3b4f94d15ca3a405053265b99e91e 10-Feb-2003 Walter Dörwald <walter@livinglogic.de> Change filtertuple() to use tp_as_sequence->sq_item
instead of PyTuple_GetItem, so an overwritten __getitem__
in a tuple subclass works. SF bug #665835.
/external/python/cpython2/Python/bltinmodule.c
2c646c9fc1964603adcc7687016de76effc66a55 10-Feb-2003 Tim Peters <tim.peters@gmail.com> Squashed compiler wng about signed/unsigned clash in comparison.
/external/python/cpython2/Python/bltinmodule.c
1918f7755e03900224c5a53cca9fc0088c3186d3 10-Feb-2003 Walter Dörwald <walter@livinglogic.de> Change filterstring() and filterunicode(): If the
object is not a real str or unicode but an instance
of a subclass, construct the output via looping
over __getitem__. This guarantees that the result
is the same for function==None and function==lambda x:x

This doesn't happen for tuples, because filtertuple()
uses PyTuple_GetItem().

(This was discussed on SF bug #665835).
/external/python/cpython2/Python/bltinmodule.c
b9b8e9cf6d0d9b5d4d526f8cbd0601e284397753 10-Feb-2003 Just van Rossum <just@letterror.com> My previous checkin caused compile() to no longer accept buffers, as noted
my MAL. Fixed. (Btw. eval() still doesn't take buffers, but that was so
even before my patch.)
/external/python/cpython2/Python/bltinmodule.c
3aaf42c6139ed211a59b200130d1d205982b9818 10-Feb-2003 Just van Rossum <just@letterror.com> patch #683515: "Add unicode support to compile(), eval() and exec"
Incorporated nnorwitz's comment re. Py__USING_UNICODE.
/external/python/cpython2/Python/bltinmodule.c
c3da83fcd7e25ffb1ed15f5adad4efa1c03ebc03 04-Feb-2003 Walter Dörwald <walter@livinglogic.de> Make sure filter() never returns tuple, str or unicode
subclasses. (Discussed in SF patch #665835)
/external/python/cpython2/Python/bltinmodule.c
531e000d2e6c15b7a83018d8c663770c012ee98e 04-Feb-2003 Walter Dörwald <walter@livinglogic.de> PyUnicode_Resize() doesn't free its argument in case of a failure,
so we can jump to the error handling code that does.
(Spotted by Neal Norwitz)
/external/python/cpython2/Python/bltinmodule.c
903f1e0c40cd25489cdf8856ccb1bb8932c819f8 04-Feb-2003 Walter Dörwald <walter@livinglogic.de> filterstring() and filterunicode() in Python/bltinmodule.c
blindly assumed that tp_as_sequence->sq_item always returns
a str or unicode object. This might fail with str or unicode
subclasses.

This patch checks whether the object returned from __getitem__
is a str/unicode object and raises a TypeError if not (and
the filter function returned true).

Furthermore the result for __getitem__ can be more than one
character long, so checks for enough memory have to be done.
/external/python/cpython2/Python/bltinmodule.c
94c30c012431c8495c73850a4438b0b7a3a2b9d4 03-Feb-2003 Neal Norwitz <nnorwitz@gmail.com> SF #661437, apply() should get PendingDeprecation
/external/python/cpython2/Python/bltinmodule.c
8afd7571a18593bef57d98ccd68865fd1d400643 25-Jan-2003 Martin v. Löwis <martin@v.loewis.de> Patch #636005: Filter unicode into unicode.
/external/python/cpython2/Python/bltinmodule.c
69bf8f3f4e2867bec07f6682df83174e5ae4f0ad 04-Jan-2003 Raymond Hettinger <python@rcn.com> SF bug #655271: Slightly modify locals() doc

Clarify the operation of locals().
/external/python/cpython2/Python/bltinmodule.c
bbfb91041634d11c73046775f62a1c44bc729bc3 29-Dec-2002 Raymond Hettinger <python@rcn.com> Make error message more specific for min() and max().
Suggested by MvL.
/external/python/cpython2/Python/bltinmodule.c
ea3fdf44a29accd666a3b5f058539c351d921657 29-Dec-2002 Raymond Hettinger <python@rcn.com> SF patch #659536: Use PyArg_UnpackTuple where possible.

Obtain cleaner coding and a system wide
performance boost by using the fast, pre-parsed
PyArg_Unpack function instead of PyArg_ParseTuple
function which is driven by a format string.
/external/python/cpython2/Python/bltinmodule.c
d9a6ad3bebc2b451482db152171fca3144b2cd97 12-Dec-2002 Walter Dörwald <walter@livinglogic.de> Enhance issubclass() and PyObject_IsSubclass() so that a tuple is
supported as the second argument. This has the same meaning as
for isinstance(), i.e. issubclass(X, (A, B)) is equivalent
to issubclass(X, A) or issubclass(X, B). Compared to isinstance(),
this patch does not search the tuple recursively for classes, i.e.
any entry in the tuple that is not a class, will result in a
TypeError.

This closes SF patch #649608.
/external/python/cpython2/Python/bltinmodule.c
566f6afe9a9de23132302020dcb4c612d5180f23 26-Oct-2002 Martin v. Löwis <martin@v.loewis.de> Patch #512981: Update readline input stream on sys.stdin/out change.
/external/python/cpython2/Python/bltinmodule.c
4c0134248c18403ee5f091ac36e5d16cc077bbfa 27-Aug-2002 Peter Schneider-Kamp <nowonder@nowonder.de> execfile should call PyErr_SetFromErrnoWithFilename instead of
simply PyErr_SetFromErrno

This closes bug 599163.
/external/python/cpython2/Python/bltinmodule.c
c7903a13d2dc58d2f239a4d3bb29703199b450e4 16-Aug-2002 Guido van Rossum <guido@python.org> A nice little speed-up for filter():

- Use PyObject_Call() instead of PyEval_CallObject(), saves several
layers of calls and checks.

- Pre-allocate the argument tuple rather than calling Py_BuildValue()
each time round the loop.

- For filter(None, seq), avoid an INCREF and a DECREF.
/external/python/cpython2/Python/bltinmodule.c
31d2df5b60a20e43e3a8e23bc1cb8cebc41c96e4 14-Aug-2002 Martin v. Löwis <martin@v.loewis.de> Patch #550192: Set softspace to 0 in raw_input().
/external/python/cpython2/Python/bltinmodule.c
cc8764ca9dc3fceb9dc283163a89c9bb649b5392 11-Aug-2002 Marc-André Lemburg <mal@egenix.com> Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level.

u'%c' will now raise a ValueError in case the argument is an
integer outside the valid range of Unicode code point ordinals.

Closes SF bug #593581.
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
bea18ccde6bc12e061c21bb6b944379d8b123845 14-Jun-2002 Guido van Rossum <guido@python.org> SF patch 568629 by Oren Tirosh: types made callable.

These built-in functions are replaced by their (now callable) type:

slice()
buffer()

and these types can also be called (but have no built-in named
function named after them)

classobj (type name used to be "class")
code
function
instance
instancemethod (type name used to be "instance method")

The module "new" has been replaced with a small backward compatibility
placeholder in Python.

A large portion of the patch simply removes the new module from
various platform-specific build recipes. The following binary Mac
project files still have references to it:

Mac/Build/PythonCore.mcp
Mac/Build/PythonStandSmall.mcp
Mac/Build/PythonStandalone.mcp

[I've tweaked the code layout and the doc strings here and there, and
added a comment to types.py about StringTypes vs. basestring. --Guido]
/external/python/cpython2/Python/bltinmodule.c
14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f 13-Jun-2002 Martin v. Löwis <martin@v.loewis.de> Patch #568124: Add doc string macros.
/external/python/cpython2/Python/bltinmodule.c
c4c453f5ae0a245aa0dd59431c323911c47f2735 06-Jun-2002 Raymond Hettinger <python@rcn.com> Skip Montanaro's patch, SF 559833, exposing xrange type in builtins.
Also, added more regression tests to cover the new type and test its
conformity with range().
/external/python/cpython2/Python/bltinmodule.c
32a7e7f6b65bd64f28daccaf05e906f93f2ef77e 31-May-2002 Neal Norwitz <nnorwitz@gmail.com> Change name from string to basestring
/external/python/cpython2/Python/bltinmodule.c
cacfc07d083286e80b6f86939d466e186f7ea3c0 24-May-2002 Guido van Rossum <guido@python.org> - A new type object, 'string', is added. This is a common base type
for 'str' and 'unicode', and can be used instead of
types.StringTypes, e.g. to test whether something is "a string":
isinstance(x, string) is True for Unicode and 8-bit strings. This
is an abstract base class and cannot be instantiated directly.
/external/python/cpython2/Python/bltinmodule.c
39a86c2188b22818c187e860fbf7d77a28a6a116 12-May-2002 Tim Peters <tim.peters@gmail.com> SF bug 555042: zip() may trigger MemoryError.
NOT a bugfix candidate: this is a fix to an optimization introduced
in 2.3.
/external/python/cpython2/Python/bltinmodule.c
67d687a1145d12f1e7e835a0c8259ba1cc2450b1 29-Apr-2002 Tim Peters <tim.peters@gmail.com> builtin_zip(): Take a good guess at how big the result list will be,
and allocate it in one gulp.

This isn't a bugfix, it's just a minor optimization that may or may not
pay off.
/external/python/cpython2/Python/bltinmodule.c
5de9842b34cbefbfe74e6a99004616352f223133 27-Apr-2002 Tim Peters <tim.peters@gmail.com> Repair widespread misuse of _PyString_Resize. Since it's clear people
don't understand how this function works, also beefed up the docs. The
most common usage error is of this form (often spread out across gotos):

if (_PyString_Resize(&s, n) < 0) {
Py_DECREF(s);
s = NULL;
goto outtahere;
}

The error is that if _PyString_Resize runs out of memory, it automatically
decrefs the input string object s (which also deallocates it, since its
refcount must be 1 upon entry), and sets s to NULL. So if the "if"
branch ever triggers, it's an error to call Py_DECREF(s): s is already
NULL! A correct way to write the above is the simpler (and intended)

if (_PyString_Resize(&s, n) < 0)
goto outtahere;

Bugfix candidate.
/external/python/cpython2/Python/bltinmodule.c
7dab2426ca0bae36fde565407ddb4b2d2cbf2575 26-Apr-2002 Guido van Rossum <guido@python.org> - New builtin function enumerate(x), from PEP 279. Example:
enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c").
The argument can be an arbitrary iterable object.
/external/python/cpython2/Python/bltinmodule.c
7b8c7546ebc1fc3688ef95768fa8b82f0f205490 14-Apr-2002 Jack Jansen <jack.jansen@cwi.nl> Mass checkin of universal newline support.
Highlights: import and friends will understand any of \r, \n and \r\n
as end of line. Python file input will do the same if you use mode 'U'.
Everything can be disabled by configuring with --without-universal-newlines.

See PEP278 for details.
/external/python/cpython2/Python/bltinmodule.c
77f6a65eb00f005939c6c7c5d6ac0f037a0ce1bd 04-Apr-2002 Guido van Rossum <guido@python.org> Add the 'bool' type and its values 'False' and 'True', as described in
PEP 285. Everything described in the PEP is here, and there is even
some documentation. I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison. I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.

Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.
/external/python/cpython2/Python/bltinmodule.c
3484a18af1ad1998bc0677befddf5d0a87f6a682 09-Mar-2002 Martin v. Löwis <martin@v.loewis.de> Patch #494045: patches errno and stat to cope on plan9.
/external/python/cpython2/Python/bltinmodule.c
d50e544b9f67738f122d9931eab8b8d71633527a 09-Mar-2002 Tim Peters <tim.peters@gmail.com> Docstring for filter(): Someone on the Tutor list reasonably complained
that it didn't tell enough of the truth.
Bugfix candidate (I guess -- it helps and it's harmless).
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
733c8935f9dfd1be70c472649eb845ea22bbc878 13-Dec-2001 Jeremy Hylton <jeremy@alum.mit.edu> Fix for SF bug [ #492403 ] exec() segfaults on closure's func_code

Based on the patch from Danny Yoo. The fix is in exec_statement() in
ceval.c.

There are also changes to introduce use of PyCode_GetNumFree() in
several places.
/external/python/cpython2/Python/bltinmodule.c
518ab1c02a01a1a502fedeccb62ea73f2a952ba7 28-Nov-2001 Jeremy Hylton <jeremy@alum.mit.edu> Use PyOS_snprintf instead of sprintf.
/external/python/cpython2/Python/bltinmodule.c
603c6831d08d8598f76e767acdd6d37227b3e9ec 05-Nov-2001 Tim Peters <tim.peters@gmail.com> SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
Changes enabling Python to compile under OS/2 Visual Age C++.
/external/python/cpython2/Python/bltinmodule.c
a427a2b8d09a756119d424efac85159a0270b503 29-Oct-2001 Tim Peters <tim.peters@gmail.com> Rename "dictionary" (type and constructor) to "dict".
/external/python/cpython2/Python/bltinmodule.c
e2ae77b8b8a62e648bb1864a9b36ef3280984404 24-Oct-2001 Guido van Rossum <guido@python.org> SF patch #474590 -- RISC OS support
/external/python/cpython2/Python/bltinmodule.c
d892357bf7bfb8ce34a0652c7002d78bbce17b6e 16-Oct-2001 Guido van Rossum <guido@python.org> SF patch #471852 (anonymous) notes that getattr(obj, name, default)
masks any exception, not just AttributeError. Fix this.
/external/python/cpython2/Python/bltinmodule.c
03290ecbf1661c0192e6abdbe00ae163af461d77 07-Oct-2001 Guido van Rossum <guido@python.org> Implement isinstance(x, (A, B, ...)). Note that we only allow tuples,
not other sequences (then we'd have to except strings, and we'd still
be susceptible to recursive attacks).
/external/python/cpython2/Python/bltinmodule.c
742dfd6f178c3880248c32d64322e2cff8cea23f 13-Sep-2001 Tim Peters <tim.peters@gmail.com> Get rid of builtin_open() entirely (the C code and docstring, not the
builtin function); Guido pointed out that it could be just another
name in the __builtin__ dict for the file constructor now.
/external/python/cpython2/Python/bltinmodule.c
4b7625ee83d2063c6ad0a82b28ff7362350393c8 13-Sep-2001 Tim Peters <tim.peters@gmail.com> _PyBuiltin_Init(): For clarity, macroize this purely repetitive code.
/external/python/cpython2/Python/bltinmodule.c
59c9a645e2f44b0b546225678d704787d9eae35d 13-Sep-2001 Tim Peters <tim.peters@gmail.com> SF bug [#460467] file objects should be subclassable.
Preliminary support. What's here works, but needs fine-tuning.
/external/python/cpython2/Python/bltinmodule.c
8bce4acb17ee7146c5736ad020ea0e129bd7f67b 06-Sep-2001 Guido van Rossum <guido@python.org> Rename 'getset' to 'property'.
/external/python/cpython2/Python/bltinmodule.c
b3a639ed7d53ab49eae174c5605d0861c56489f3 05-Sep-2001 Guido van Rossum <guido@python.org> builtin_execfile(): initialize another local that the GCC on leroy
found it necessary to warn about.
/external/python/cpython2/Python/bltinmodule.c
7eea37e8317bda88d9f50b862f13642e837957ce 05-Sep-2001 Tim Peters <tim.peters@gmail.com> At Guido's suggestion, here's a new C API function, PyObject_Dir(), like
__builtin__.dir(). Moved the guts from bltinmodule.c to object.c.
/external/python/cpython2/Python/bltinmodule.c
37a309db7086381da6ae176cec8817cdd75de872 04-Sep-2001 Tim Peters <tim.peters@gmail.com> builtin_dir(): Treat classic classes like types. Use PyDict_Keys instead
of PyMapping_Keys because we know we have a real dict. Tolerate that
objects may have an attr named "__dict__" that's not a dict (Py_None
popped up during testing).

test_descr.py, test_dir(): Test the new classic-class behavior; beef up
the new-style class test similarly.

test_pyclbr.py, checkModule(): dir(C) is no longer a synonym for
C.__dict__.keys() when C is a classic class (looks like the same thing
that burned distutils! -- should it be *made* a synoym again? Then it
would be inconsistent with new-style class behavior.).
/external/python/cpython2/Python/bltinmodule.c
5d2b77cf31c5a3cbabc74936831480b9caea3a12 03-Sep-2001 Tim Peters <tim.peters@gmail.com> Make dir() wordier (see the new docstring). The new behavior is a mixed
bag. It's clearly wrong for classic classes, at heart because a classic
class doesn't have a __class__ attribute, and I'm unclear on whether
that's feature or bug. I'll repair this once I find out (in the
meantime, dir() applied to classic classes won't find the base classes,
while dir() applied to a classic-class instance *will* find the base
classes but not *their* base classes).

Please give the new dir() a try and see whether you love it or hate it.
The new dir([]) behavior is something I could come to love. Here's
something to hate:

>>> class C:
... pass
...
>>> c = C()
>>> dir(c)
['__doc__', '__module__']
>>>

The idea that an instance has a __doc__ attribute is jarring (of course
it's really c.__class__.__doc__ == C.__doc__; likewise for __module__).

OTOH, the code already has too many special cases, and dir(x) doesn't
have a compelling or clear purpose when x isn't a module.
/external/python/cpython2/Python/bltinmodule.c
f5cb3574682b4e1bb740e99f200a4e5e585a166e 24-Aug-2001 Guido van Rossum <guido@python.org> Add 'super' builtin type.
/external/python/cpython2/Python/bltinmodule.c
29a62dd6ebe48c4a5c7b4f7d6f0e8589d94a5a0d 23-Aug-2001 Guido van Rossum <guido@python.org> Add new built-in type 'getset' (PyGetSet_Type).
This implements the 'getset' class from test_binop.py.
/external/python/cpython2/Python/bltinmodule.c
9fa96bed6fcad0faae778cf160f3415de560d08a 18-Aug-2001 Tim Peters <tim.peters@gmail.com> Fix for bug [#452230] future division isn't propagated.
builtin_eval wasn't merging in the compiler flags from the current frame;
I suppose we never noticed this before because future division is the
first future-feature that can affect expressions (nested_scopes and
generators had only statement-level effects).
/external/python/cpython2/Python/bltinmodule.c
6cd6a82db93fa37a13d0b5312ce6510c4d6967de 18-Aug-2001 Tim Peters <tim.peters@gmail.com> A fiddled version of the rest of Michael Hudson's SF patch
#449043 supporting __future__ in simulated shells
which implements PEP 264.
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.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/bltinmodule.c
f9836ba4fea66d74fc2afddc434a147265a9caa7 08-Aug-2001 Martin v. Löwis <martin@v.loewis.de> Put conditional S_ISDIR definition(s) into pyport.h.
/external/python/cpython2/Python/bltinmodule.c
257b3bfa76742ef68cfb30a087ed85a4dfc54f79 08-Aug-2001 Tim Peters <tim.peters@gmail.com> Repair the Windows build (S_ISDIR() macro doesn't exist).
Somebody else should feel free to repair this a different way; see Python-
Dev for discussion.
/external/python/cpython2/Python/bltinmodule.c
6b3a2c4a48eeefce64de12060d4ba0f38a5f3033 08-Aug-2001 Martin v. Löwis <martin@v.loewis.de> Patch #448227: Raise an exception when a directory is passed to execfile.
/external/python/cpython2/Python/bltinmodule.c
6d6c1a35e08b95a83dbe47dbd9e6474daff00354 02-Aug-2001 Tim Peters <tim.peters@gmail.com> Merge of descr-branch back into trunk.
/external/python/cpython2/Python/bltinmodule.c
302b54acd91f999c039f9a3618f734dbdfb74467 31-Jul-2001 Jeremy Hylton <jeremy@alum.mit.edu> Do for hasattr() what was done for getattr()

Namely, an exception is raised if the second arg to hasattr() is not a
string or Unicode.
/external/python/cpython2/Python/bltinmodule.c
0eb1115f4415593861a85aad3c7d12081252c866 31-Jul-2001 Jeremy Hylton <jeremy@alum.mit.edu> Fix for SF byg [ #420304 ] getattr function w/ default

Fix suggested by Michael Hudson: Raise TypeError if attribute name
passed to getattr() is not a string or Unicode. There is some
unfortunate duplication of code between builtin_getattr() and
PyObject_GetAttr(), but it appears to be unavoidable.
/external/python/cpython2/Python/bltinmodule.c
15c1c4f6d2cc9c657ae1cb3fc50b14d7e8063343 30-Jul-2001 Jeremy Hylton <jeremy@alum.mit.edu> Fix for SF bug [ #443866 ] Evaluating func_code causing core dump

If the code object has free variables, raise TypeError.
/external/python/cpython2/Python/bltinmodule.c
ae21df59c372dd73307b3cb7178567a930d478c2 26-Jul-2001 Marc-André Lemburg <mal@egenix.com> Undoing the UCS-4 patch addition which caused unichr() to return
surrogates for Unicode code points outside range(0x10000) on narrow
Python builds.
/external/python/cpython2/Python/bltinmodule.c
5ba58662817b708a453020f0425fe4747ea6d5cb 16-Jul-2001 Tim Peters <tim.peters@gmail.com> Part way to allowing "from __future__ import generators" to communicate
that info to code dynamically compiled *by* code compiled with generators
enabled. Doesn't yet work because there's still no way to tell the parser
that "yield" is OK (unlike nested_scopes, the parser has its fingers in
this too).
Replaced PyEval_GetNestedScopes by a more-general
PyEval_MergeCompilerFlags. Perhaps I should not have? I doubted it was
*intended* to be part of the public API, so just did.
/external/python/cpython2/Python/bltinmodule.c
efafcea2805436c12fd6544d9bff355cfac061d8 09-Jul-2001 Thomas Wouters <thomas@python.org> Re-add 'advanced' xrange features, adding DeprecationWarnings as discussed
on python-dev. The features will still vanish, however, just one release
later.
/external/python/cpython2/Python/bltinmodule.c
cfd829eefca1c5b971a27306a09dbb6704d96e8d 05-Jul-2001 Guido van Rossum <guido@python.org> Complete the xrange-simplification checkins: call PyRange_New() with
fewer arguments.
/external/python/cpython2/Python/bltinmodule.c
8f4558583f3b7e2d98e13baec06c2f43c9e6a723 27-Jun-2001 Fredrik Lundh <fredrik@pythonware.com> use Py_UNICODE_WIDE instead of USE_UCS4_STORAGE and Py_UNICODE_SIZE
tests.
/external/python/cpython2/Python/bltinmodule.c
236d8b79748fec890d57ad0dd99ea3f1c3ba57df 27-Jun-2001 Guido van Rossum <guido@python.org> Cosmetic changes to MvL's change to unichr():

- the correct range for the error message is range(0x110000);

- put the 4-byte Unicode-size code inside the same else branch as the
2-byte code, rather generating unreachable code in the 2-byte case.

- Don't hide the 'else' behine the '}'.

(I would prefer that in 4-byte mode, any value should be accepted, but
reasonable people can argue about that, so I'll put that off.)
/external/python/cpython2/Python/bltinmodule.c
0ba70cc3c893f70cc9deb09447277539d7625403 27-Jun-2001 Martin v. Löwis <martin@v.loewis.de> Support using UCS-4 as the Py_UNICODE type:
Add configure option --enable-unicode.
Add config.h macros Py_USING_UNICODE, PY_UNICODE_TYPE, Py_UNICODE_SIZE,
SIZEOF_WCHAR_T.
Define Py_UCS2.
Encode and decode large UTF-8 characters into single Py_UNICODE values
for wide Unicode types; likewise for UTF-16.
Remove test whether sizeof Py_UNICODE is two.
/external/python/cpython2/Python/bltinmodule.c
0dcf67e56d891832b53a82ee0abb60dcc2e0148e 26-Jun-2001 Fredrik Lundh <fredrik@pythonware.com> more unicode tweaks: make unichr(0xdddddddd) behave like u"\Udddddddd"
wrt surrogates. (this extends the valid range from 65535 to 1114111)
/external/python/cpython2/Python/bltinmodule.c
5b979356044281e3524500a1a6eb8d1cbdf25362 26-Jun-2001 Fredrik Lundh <fredrik@pythonware.com> experimental UCS-4 support: don't assume that MS_WIN32 implies
HAVE_USABLE_WCHAR_T
/external/python/cpython2/Python/bltinmodule.c
4324aa3572f123883e67a807b633b3d0d452a267 29-May-2001 Tim Peters <tim.peters@gmail.com> Cruft cleanup: Removed the unused last_is_sticky argument from the internal
_PyTuple_Resize().
/external/python/cpython2/Python/bltinmodule.c
3c6b148a676f95e074b5cf6b5c7c060f65d0a16d 21-May-2001 Tim Peters <tim.peters@gmail.com> SF bug #425836: Reference leak in filter().
Mark Hammond claimed that the iterized filter() forgot to decref the
iterator upon return. He was right!
/external/python/cpython2/Python/bltinmodule.c
26cffde4c2950ac2afb41f19a65a28c4e905060d 14-May-2001 Mark Hammond <mhammond@skippinet.com.au> Fix the Py_FileSystemDefaultEncoding checkin - declare the variable in a fileobject.h, and initialize it in bltinmodule.
/external/python/cpython2/Python/bltinmodule.c
ef8b654bbea15dc55767a7095e01dff7a3ca86cb 13-May-2001 Mark Hammond <mhammond@skippinet.com.au> Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system. As discussed on python-dev and in patch 410465.
/external/python/cpython2/Python/bltinmodule.c
8572b4fedf7e6ee4cd350680d53cd0a21574b083 06-May-2001 Tim Peters <tim.peters@gmail.com> Generalize zip() to work with iterators.
NEEDS DOC CHANGES.
More AttributeErrors transmuted into TypeErrors, in test_b2.py, and,
again, this strikes me as a good thing.
This checkin completes the iterator generalization work that obviously
needed to be done. Can anyone think of others that should be changed?
/external/python/cpython2/Python/bltinmodule.c
f4848dac41689d1f2f8bd224bd935beae9b8df86 05-May-2001 Tim Peters <tim.peters@gmail.com> Make PyIter_Next() a little smarter (wrt its knowledge of iterator
internals) so clients can be a lot dumber (wrt their knowledge).
/external/python/cpython2/Python/bltinmodule.c
15d81efb8a7045ce2860792f11741965b496a98b 04-May-2001 Tim Peters <tim.peters@gmail.com> Generalize reduce() to work with iterators.
NEEDS DOC CHANGES.
/external/python/cpython2/Python/bltinmodule.c
4e9afdca392668bc7e07c79d8af0f95ef497fba4 04-May-2001 Tim Peters <tim.peters@gmail.com> Generalize map() to work with iterators.
NEEDS DOC CHANGES.
Possibly contentious: The first time s.next() yields StopIteration (for
a given map argument s) is the last time map() *tries* s.next(). That
is, if other sequence args are longer, s will never again contribute
anything but None values to the result, even if trying s.next() again
could yield another result. This is the same behavior map() used to have
wrt IndexError, so it's the only way to be wholly backward-compatible.
I'm not a fan of letting StopIteration mean "try again later" anyway.
/external/python/cpython2/Python/bltinmodule.c
c30745316258adc66a3c45f45e8fd0148038622a 03-May-2001 Tim Peters <tim.peters@gmail.com> Generalize max(seq) and min(seq) to work with iterators.
NEEDS DOC CHANGES.
/external/python/cpython2/Python/bltinmodule.c
0e57abf0cdc7cd3f8cca518ded422d782587740c 02-May-2001 Tim Peters <tim.peters@gmail.com> Generalize filter(f, seq) to work with iterators. This also generalizes
filter() to no longer insist that len(seq) be defined.
NEEDS DOC CHANGES.
/external/python/cpython2/Python/bltinmodule.c
748b8bbe020561cdb953b052f7f9d43be83d8081 28-Apr-2001 Tim Peters <tim.peters@gmail.com> Fix buglet reported on c.l.py: map(fnc, file.xreadlines()) blows up.
Also a 2.1 bugfix candidate (am I supposed to do something with those?).
Took away map()'s insistence that sequences support __len__, and cleaned
up the convoluted code that made it *look* like it really cared about
__len__ (in fact the old ->len field was only *used* as a flag bit, as
the main loop only looked at its sign bit, setting the field to -1 when
IndexError got raised; renamed the field to ->saw_IndexError instead).
/external/python/cpython2/Python/bltinmodule.c
59d1d2b434e8cf79e8b1321f148254c68f56c1f7 20-Apr-2001 Guido van Rossum <guido@python.org> Iterators phase 1. This comprises:

new slot tp_iter in type object, plus new flag Py_TPFLAGS_HAVE_ITER
new C API PyObject_GetIter(), calls tp_iter
new builtin iter(), with two forms: iter(obj), and iter(function, sentinel)
new internal object types iterobject and calliterobject
new exception StopIteration
new opcodes for "for" loops, GET_ITER and FOR_ITER (also supported by dis.py)
new magic number for .pyc files
new special method for instances: __iter__() returns an iterator
iteration over dictionaries: "for x in dict" iterates over the keys
iteration over files: "for x in file" iterates over lines

TODO:

documentation
test suite
decide whether to use a different way to spell iter(function, sentinal)
decide whether "for key in dict" is a good idea
use iterators in map/filter/reduce, min/max, and elsewhere (in/not in?)
speed tuning (make next() a slot tp_next???)
/external/python/cpython2/Python/bltinmodule.c
388ed08cbf89ec362541bb165045739866fe9c98 07-Apr-2001 Tim Peters <tim.peters@gmail.com> SF patch #413552 - Premature decref on object
Jeffery Collins pointed out that filterstring decrefs a character object
before it's done using it. This works by accident today because another
module always happens to have an active reference too at the time. The
accident doesn't work after his Pippy modifications, and since it *is*
an accident even in the mainline Python, it should work by design there too.
The patch accomplishes that.
/external/python/cpython2/Python/bltinmodule.c
bc32024769eecd3c2251e00850e6a5c003aa9253 22-Mar-2001 Jeremy Hylton <jeremy@alum.mit.edu> Extend support for from __future__ import nested_scopes

If a module has a future statement enabling nested scopes, they are
also enable for the exec statement and the functions compile() and
execfile() if they occur in the module.

If Python is run with the -i option, which enters interactive mode
after executing a script, and the script it runs enables nested
scopes, they are also enabled in interactive mode.

XXX The use of -i with -c "from __future__ import nested_scopes" is
not supported. What's the point?

To support these changes, many function variants have been added to
pythonrun.c. All the variants names end with Flags and they take an
extra PyCompilerFlags * argument. It is possible that this complexity
will be eliminated in a future version of the interpreter in which
nested scopes are not optional.
/external/python/cpython2/Python/bltinmodule.c
823649d544eec66a61176dbb76b51a9408c7f4ed 21-Mar-2001 Guido van Rossum <guido@python.org> Move the code implementing isinstance() and issubclass() to new C
APIs, PyObject_IsInstance() and PyObject_IsSubclass() -- both
returning an int, or -1 for errors.
/external/python/cpython2/Python/bltinmodule.c
6f77667a64e258c324013e35eb4f0e5e99469f7b 19-Jan-2001 Marc-André Lemburg <mal@egenix.com> Backed out the unistr() builtin.
/external/python/cpython2/Python/bltinmodule.c
c862cf400f90e7ef63fa333d1af141934eb92c59 19-Jan-2001 Jeremy Hylton <jeremy@alum.mit.edu> clearer error messages for apply() and "no locals"
/external/python/cpython2/Python/bltinmodule.c
8dabbf149e351c801a7d3b65891c49949be8251c 19-Jan-2001 Guido van Rossum <guido@python.org> Fix for the bug in complex() just reported by Ping.
/external/python/cpython2/Python/bltinmodule.c
ad7c98e264bbc9c84e911417c8770f6e95ffb794 17-Jan-2001 Marc-André Lemburg <mal@egenix.com> This patch adds a new builtin unistr() which behaves like str()
except that it always returns Unicode objects.

A new C API PyObject_Unicode() is also provided.

This closes patch #101664.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
/external/python/cpython2/Python/bltinmodule.c
53451b3fd19be3b6e7db058c34251898000408df 17-Jan-2001 Guido van Rossum <guido@python.org> Use rich comparisons in min and max.
/external/python/cpython2/Python/bltinmodule.c
f1fbc62a8c82dd172beb5def713d3815a562ee65 12-Jan-2001 Fred Drake <fdrake@acm.org> Update the docstring for apply() so that "args" is marked as optional
(since it is).
/external/python/cpython2/Python/bltinmodule.c
ad991775ab57fc5c4647b70d793d52ff6b0d25bf 12-Jan-2001 Guido van Rossum <guido@python.org> (Modified) patch by Ping - SF Patch #102681.

- Make error messages from issubclass() and isinstance() a bit more
descriptive (Ping, modified by Guido)

- Couple of tiny fixes to other docstrings (Ping)

- Get rid of trailing whitespace (Guido)
/external/python/cpython2/Python/bltinmodule.c
23ab199bfd6f5f7fb264d7f79dd177b3e6a59021 04-Jan-2001 Neil Schemenauer <nascheme@enme.ucalgary.ca> Add NotImplemented to the builtin module.
/external/python/cpython2/Python/bltinmodule.c
f07aad171a57dcc1e661d56660eb4ca51a2944d9 23-Dec-2000 Andrew M. Kuchling <amk@amk.ca> CHange error messages for ord(), using "string" instead of "string or Unicode"
/external/python/cpython2/Python/bltinmodule.c
9bcc68c1832572f7dc77dee5ebf27e9e3b4deaf0 20-Dec-2000 Andrew M. Kuchling <amk@amk.ca> Whoops! Two stray characters crept in to my last check-in
/external/python/cpython2/Python/bltinmodule.c
34c20cf705045ab6e496c1271fb522cfabd409e5 20-Dec-2000 Andrew M. Kuchling <amk@amk.ca> Patch #102955, fixing one of the warnings in bug #121479:
Simplifies ord()'s logic at the cost of some code duplication, removing a
" `ord' might be used uninitialized in this function" warning
/external/python/cpython2/Python/bltinmodule.c
cc343caf419c7f29ececd67b6119d1b7c9a6b6be 04-Dec-2000 Neil Schemenauer <nascheme@enme.ucalgary.ca> Make isinstance() more permissive in what types of arguments it
accepts. Clarify exception messages for isinstance() and
issubclass(). Closes bug #124106.
/external/python/cpython2/Python/bltinmodule.c
661ea26b3d8621ad0acc0ed2f2036ab29355f8ff 24-Oct-2000 Fred Drake <fdrake@acm.org> Ka-Ping Yee <ping@lfw.org>:
Changes to error messages to increase consistency & clarity.

This (mostly) closes SourceForge patch #101839.
/external/python/cpython2/Python/bltinmodule.c
d5fadf75e4d18df61db41205ace0cda28d98eeaa 26-Sep-2000 Fred Drake <fdrake@acm.org> Rationalize use of limits.h, moving the inclusion to Python.h.
Add definitions of INT_MAX and LONG_MAX to pyport.h.
Remove includes of limits.h and conditional definitions of INT_MAX
and LONG_MAX elsewhere.

This closes SourceForge patch #101659 and bug #115323.
/external/python/cpython2/Python/bltinmodule.c
d1ba443206b535f41154f10b9d56d4fc76a1a9d8 19-Sep-2000 Marc-André Lemburg <mal@egenix.com> This patch adds a new Python C API called PyString_AsStringAndSize()
which implements the automatic conversion from Unicode to a string
object using the default encoding.

The new API is then put to use to have eval() and exec accept
Unicode objects as code parameter. This closes bugs #110924
and #113890.

As side-effect, the traditional C APIs PyString_Size() and
PyString_AsString() will also accept Unicode objects as
parameters.
/external/python/cpython2/Python/bltinmodule.c
691270feee4fd2da19b36eca3bfac4b83ceb119a 18-Sep-2000 Marc-André Lemburg <mal@egenix.com> Deferred the attribute name object type checking to the underlying
PyObject_Set/GetAttr() calls.

This patch fixes bug #113829.
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
0df002c45b0bf2bf23bb8c0a395e86f907a94d81 27-Aug-2000 Guido van Rossum <guido@python.org> Add three new APIs: PyRun_AnyFileEx(), PyRun_SimpleFileEx(),
PyRun_FileEx(). These are the same as their non-Ex counterparts but
have an extra argument, a flag telling them to close the file when
done.

Then this is used by Py_Main() and execfile() to close the file after
it is parsed but before it is executed.

Adding APIs seems strange given the feature freeze but it's the only
way I see to close the bug report without incompatible changes.

[ Bug #110616 ] source file stays open after parsing is done (PR#209)
/external/python/cpython2/Python/bltinmodule.c
5ca1ef92384d8e4e940bd34ce8150c087931b18b 18-Aug-2000 Barry Warsaw <barry@python.org> comples_from_string(): Move s_buffer[] up to the top-level function
scope. Previously, s_buffer[] was defined inside the
PyUnicode_Check() scope, but referred to in the outer scope via
assignment to s. This quiets an Insure portability warning.
/external/python/cpython2/Python/bltinmodule.c
29b83810bde8dfcf72e45405e884aa0953e23d0f 12-Aug-2000 Trent Mick <trentm@activestate.com> Clean up a couple of warnings on Win64. The downcast of the strlen size_t
return value to int is safe here because in each case it previouls checked that
there will be no overflow.
/external/python/cpython2/Python/bltinmodule.c
bd599b5928cda5f3cb04d7c5070d9298101e1592 03-Aug-2000 Barry Warsaw <barry@python.org> Both PEP 201 Lockstep Iteration and SF patch #101030 have been
accepted by the BDFL.

builtin_zip(): New function to implement the zip() function described
in the above proposal.

zip_doc[]: Docstring for zip().

builtin_methods[]: added entry for zip()
/external/python/cpython2/Python/bltinmodule.c
7e018909862a3fe6c571bbb7143f4ffb18ae834c 31-Jul-2000 Peter Schneider-Kamp <nowonder@nowonder.de> merge Include/my*.h into Include/pyport.h

marked my*.h as obsolete
/external/python/cpython2/Python/bltinmodule.c
e28c296f0febd56ff082ed07f542e1e6c3b8a2bd 24-Jul-2000 Thomas Wouters <thomas@python.org> Another missed ansification.
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
03657cfdb056dbd36db12cc3db12a6b58a962e20 12-Jul-2000 Jeremy Hylton <jeremy@alum.mit.edu> replace PyXXX_Length calls with PyXXX_Size calls
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
4be47c0f76c349ee9c04b08ed122c8bd8190d2c5 09-Jul-2000 Tim Peters <tim.peters@gmail.com> Get rid of unused vars in builtin_unicode (they were causing
legit warnings).
/external/python/cpython2/Python/bltinmodule.c
1b1bcc993579e64d751dc75bc8521adb9e94c732 07-Jul-2000 Marc-André Lemburg <mal@egenix.com> Fixed unicode() to use the new API PyUnicode_FromEncodedObject().
This adds support for instance to the constructor (instances
have to define __str__ and can return Unicode objects via that
hook; string return values are decoded into Unicode using the
current default encoding).
/external/python/cpython2/Python/bltinmodule.c
41aa8e523d1f81dc4b4d529dd01c59aef350eada 03-Jul-2000 Jack Jansen <jack.jansen@cwi.nl> Include limits.h if we have it.
/external/python/cpython2/Python/bltinmodule.c
ffcc3813d82e6b96db79f518f4e67b940a13ce64 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice - 2nd try.
/external/python/cpython2/Python/bltinmodule.c
fd71b9e9d496caa510dec56a9b69966558d6ba5d 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice.
/external/python/cpython2/Python/bltinmodule.c
106f2dae868770f6b6ed2c949dd5b4deb07b880b 28-Jun-2000 Guido van Rossum <guido@python.org> Trent Mick:

Various small fixes to the builtin module to ensure no buffer
overflows.

- chunk #1:
Proper casting to ensure no truncation, and hence no surprises, in the
comparison.

- chunk #2:
The id() function guarantees a unique return value for different
objects. It does this by returning the pointer to the object. By
returning a PyInt, on Win64 (sizeof(long) < sizeof(void*)) the pointer
is truncated and the guarantee may be proven false. The appropriate
return function is PyLong_FromVoidPtr, this returns a PyLong if that
is necessary to return the pointer without truncation.

[GvR: note that this means that id() can now return a long on Win32
platforms. This *might* break some code...]

- chunk #3:
Ensure no overflow in raw_input(). Granted the user would have to pass
in >2GB of data but it *is* a possible buffer overflow condition.
/external/python/cpython2/Python/bltinmodule.c
5550de3084d6686032479b3cb9e34337eea24f7b 20-Jun-2000 Fred Drake <fdrake@acm.org> Christopher Fandrich <cfandrich@8cs.com>:
Fix memory leak in initializing __debug__.
/external/python/cpython2/Python/bltinmodule.c
78e6c671dbb3b5cf98ddcd16f9364da8c8619076 26-May-2000 Barry Warsaw <barry@python.org> All the exception building related stuff has been moved out of this
module and into _exceptions.c. This includes all the PyExc_* globals,
the bltin_exc table, init_class_exc(), fini_instances(),
finierrors().

Renamed _PyBuiltin_Init_1() to _PyBuiltin_Init() since the two phase
initializations are necessary any more.

Removed as obsolete _PyBuiltin_Init_2(), _PyBuiltin_Fini_1() and
_PyBuiltin_Fini_2().
/external/python/cpython2/Python/bltinmodule.c
1226588e57503785de79c9ce5dc91b307237f175 25-May-2000 Barry Warsaw <barry@python.org> bltin_exc: Removed the leaf_exc flag in the structure, which was only
used to build the fallback string-based exception.
/external/python/cpython2/Python/bltinmodule.c
c640b18d96b995c0bf61527317f7982b04bac21a 09-May-2000 Fred Drake <fdrake@acm.org> M.-A. Lemburg <mal@lemburg.com>:
Fixed docs according to the new behaviour (the Unicode
encoding is no longer fixed to UTF-8).
/external/python/cpython2/Python/bltinmodule.c
b18618dab7b6b85bb05b084693706e59211fa180 04-May-2000 Guido van Rossum <guido@python.org> Vladimir Marangozov's long-awaited malloc restructuring.
For more comments, read the patches@python.org archives.
For documentation read the comments in mymalloc.h and objimpl.h.

(This is not exactly what Vladimir posted to the patches list; I've
made a few changes, and Vladimir sent me a fix in private email for a
problem that only occurs in debug mode. I'm also holding back on his
change to main.c, which seems unnecessary to me.)
/external/python/cpython2/Python/bltinmodule.c
a7cfca23e1bf803177855dda95ceb7e3815ce745 04-May-2000 Guido van Rossum <guido@python.org> A bit of cleanup:

- When 'import exceptions' fails, don't suggest to use -v to print the traceback;
this doesn't actually work.
- Remove comment about fallback to string exceptions.
- Remove a PyErr_Occurred() check after all is said and done that can
never trigger.
- Remove static function newstdexception() which is no longer called.
/external/python/cpython2/Python/bltinmodule.c
48719d3d1f116f6432040fea1754692038ba227c 02-May-2000 Barry Warsaw <barry@python.org> _PyBuiltin_Init_2(): Remove the misleading comment.
/external/python/cpython2/Python/bltinmodule.c
47eeb9bdadbddb9d0d83c33415164eff10756bc4 02-May-2000 Barry Warsaw <barry@python.org> initerrors(): Remove this function. String-based standard exceptions
are no longer supported (i.e. -X option is removed).

_PyBuiltin_Init_1(): Don't call initerrors(). This does mean that it
is possible to raise an ImportError before that exception has been
initialized, say because exceptions.py can't be found, or contains
bogosity. See changes to errors.c for how this is handled.

_PyBuiltin_Init_2(): Don't test Py_UseClassExceptionsFlag, just go
ahead and initialize the class-based standard exceptions. If this
fails, we throw a Py_FatalError.
/external/python/cpython2/Python/bltinmodule.c
078b24f000d44a0827e1555f8cb2b525923da593 13-Apr-2000 Fred Drake <fdrake@acm.org> When refering to Unicode characters in exception messages and
docstrings, the documentation guidelines call for "Unicode", not
"unicode". Comply.
/external/python/cpython2/Python/bltinmodule.c
394b54d01a42fe235b3e6ec55f0ce38fe1a03f50 12-Apr-2000 Jeremy Hylton <jeremy@alum.mit.edu> ord: provide better error messages
/external/python/cpython2/Python/bltinmodule.c
3afba7644b481eb7ef6baf02fad42a185b0f008e 11-Apr-2000 Guido van Rossum <guido@python.org> Marc-Andre Lemburg:

Added special case to unicode(): when being passed a
Unicode object as first argument, return the object as-is.
Raises an exception when given a Unicode object *and* an
encoding name.
/external/python/cpython2/Python/bltinmodule.c
9e896b37c7a554250d7d832566cc4fe7d30d034c 05-Apr-2000 Guido van Rossum <guido@python.org> Marc-Andre's third try at this bulk patch seems to work (except that
his copy of test_contains.py seems to be broken -- the lines he
deleted were already absent). Checkin messages:


New Unicode support for int(), float(), complex() and long().

- new APIs PyInt_FromUnicode() and PyLong_FromUnicode()
- added support for Unicode to PyFloat_FromString()
- new encoding API PyUnicode_EncodeDecimal() which converts
Unicode to a decimal char* string (used in the above new
APIs)
- shortcuts for calls like int(<int object>) and float(<float obj>)
- tests for all of the above

Unicode compares and contains checks:
- comparing Unicode and non-string types now works; TypeErrors
are masked, all other errors such as ValueError during
Unicode coercion are passed through (note that PyUnicode_Compare
does not implement the masking -- PyObject_Compare does this)
- contains now works for non-string types too; TypeErrors are
masked and 0 returned; all other errors are passed through

Better testing support for the standard codecs.

Misc minor enhancements, such as an alias dbcs for the mbcs codec.

Changes:
- PyLong_FromString() now applies the same error checks as
does PyInt_FromString(): trailing garbage is reported
as error and not longer silently ignored. The only characters
which may be trailing the digits are 'L' and 'l' -- these
are still silently ignored.
- string.ato?() now directly interface to int(), long() and
float(). The error strings are now a little different, but
the type still remains the same. These functions are now
ready to get declared obsolete ;-)
- PyNumber_Int() now also does a check for embedded NULL chars
in the input string; PyNumber_Long() already did this (and
still does)

Followed by:

Looks like I've gone a step too far there... (and test_contains.py
seem to have a bug too).

I've changed back to reporting all errors in PyUnicode_Contains()
and added a few more test cases to test_contains.py (plus corrected
the join() NameError).
/external/python/cpython2/Python/bltinmodule.c
09095f3f61b5672a529a9c5d7e17bf3e307a0364 11-Mar-2000 Guido van Rossum <guido@python.org> Marc-Andre Lemburg: added new builtin functions unicode() and
unichr(); changed ord() to support Unicode strings; added new
exception UnicodeError; fixed a typo in doc string for buffer().
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
65a75b0d52e840fcb2ab19281570d7abdbf7ef08 17-Feb-2000 Guido van Rossum <guido@python.org> Changes by Mark Hammond related to the new WindowsError exception.
/external/python/cpython2/Python/bltinmodule.c
7b912120caa517ef4fa65eefc26e63f3dea8009a 23-Dec-1999 Fred Drake <fdrake@acm.org> Adjusted apply() docstring based on comments from Gerrit Holl
<gerrit.holl@pobox.com>.
/external/python/cpython2/Python/bltinmodule.c
226ae6ca122f814dabdc40178c7b9656caf729c2 12-Oct-1999 Barry Warsaw <barry@python.org> Mainlining the string_methods branch. See branch revision log
messages for specific changes.
/external/python/cpython2/Python/bltinmodule.c
3d587442f9a6abca294025f8432684916ed13988 19-Jul-1999 Fred Drake <fdrake@acm.org> Fixed order of parameters in slice() docstring. The Library Reference
had it right! Reported by Tim Hochberg <tim.hochberg@ieee.org>.
/external/python/cpython2/Python/bltinmodule.c
87460821755ba72294b0c95b7d130b922d2a7ea4 22-Jun-1999 Guido van Rossum <guido@python.org> Patch by Tim Peters:

Introduce a new builtin exception, UnboundLocalError, raised when ceval.c
tries to retrieve or delete a local name that isn't bound to a value.
Currently raises NameError, which makes this behavior a FAQ since the same
error is raised for "missing" global names too: when the user has a global
of the same name as the unbound local, NameError makes no sense to them.
Even in the absence of shadowing, knowing whether a bogus name is local or
global is a real aid to quick understanding.

Example:

D:\src\PCbuild>type local.py
x = 42

def f():
print x
x = 13
return x

f()

D:\src\PCbuild>python local.py
Traceback (innermost last):
File "local.py", line 8, in ?
f()
File "local.py", line 4, in f
print x
UnboundLocalError: x

D:\src\PCbuild>

Note that UnboundLocalError is a subclass of NameError, for compatibility
with existing class-exception code that may be trying to catch this as a
NameError. Unfortunately, I see no way to make this wholly compatible
with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError
is an alias for NameError --GvR].

[The ceval.c patch differs slightly from the second version that Tim
submitted; I decided not to raise UnboundLocalError for DELETE_NAME,
only for DELETE_LOCAL. DELETE_NAME is only generated at the module
level, and since at that level a NameError is raised for referencing
an undefined name, it should also be raised for deleting one.]
/external/python/cpython2/Python/bltinmodule.c
7f851869217740347bda37e1c470559602f48b4c 17-Jun-1999 Guido van Rossum <guido@python.org> # Darn! Local variable l declared but not used in abstract_issubclass().
/external/python/cpython2/Python/bltinmodule.c
668213d3b8876a30c5cec84a0d07590374495aba 16-Jun-1999 Guido van Rossum <guido@python.org> Patch by Jim Fulton (code style tweaked a bit) to support
ExtensionClasses in isinstance() and issubclass().

- abstract instance and class protocols are used *only* in those
cases that would generate errors before the patch. That is, there's
no penalty for the normal case.

- instance protocol: an object smells like an instance if it
has a __class__ attribute that smells like a class.

- class protocol: an object smells like a class if it has a
__bases__ attribute that is a tuple with elements that
smell like classes (although not all elements may actually get
sniffed ;).
/external/python/cpython2/Python/bltinmodule.c
99fb7c70f4e9e399c4cfbfb18f1f04a57fc80b50 07-Apr-1999 Guido van Rossum <guido@python.org> Remove unused variable from complex_from_string() code.
/external/python/cpython2/Python/bltinmodule.c
1195023b8987a44be54399a075bbfe26c693786c 25-Mar-1999 Guido van Rossum <guido@python.org> Patch by Nick and Stephanie Lockwood to implement complex() with a string
argument. This closes TODO item 2.19.
/external/python/cpython2/Python/bltinmodule.c
0daf022225b3670f908e633be210b2ff0a172788 19-Mar-1999 Guido van Rossum <guido@python.org> New builtin buffer() creates a derived read-only buffer from any
object that supports the buffer interface (e.g. strings, arrays).
/external/python/cpython2/Python/bltinmodule.c
72b715d979151e4f1d0439bc922e0afc3eb770cc 24-Feb-1999 Barry Warsaw <barry@python.org> (initerrors): Make sure that the exception tuples ("base-classes" when
string-based exceptions are used) reflect the real class hierarchy,
i.e. that SystemExit derives from Exception not StandardError.
/external/python/cpython2/Python/bltinmodule.c
124eff022578980310f47a351525b4b6cd5f7b27 23-Feb-1999 Guido van Rossum <guido@python.org> Patch by Tim Peters to improve the range checks for range() and
xrange(), especially for platforms where int and long are different
sizes (so sys.maxint isn't actually the theoretical limit for the
length of a list, but the largest C int is -- sys.maxint is the
largest Python int, which is actually a C long).
/external/python/cpython2/Python/bltinmodule.c
7890203f491e9e967017676bf444b03c913ca8b5 29-Jan-1999 Barry Warsaw <barry@python.org> bltin_exc[]: EnvironmentError is not a "leaf exception", so set it's
leaf_exc flag to zero otherwise the name leaks memory.
/external/python/cpython2/Python/bltinmodule.c
fa77e09dd006c9852d636481af6c6199b2d7b5aa 28-Jan-1999 Barry Warsaw <barry@python.org> builtin_map(): A better fix for the previous leak plug (remember
PyList_Append steals a reference even if it fails).

builtin_filter(): Had the same leak problem as builtin_map().
/external/python/cpython2/Python/bltinmodule.c
2133287c3ed12557cb1dde84ffe928e1f04eeda9 28-Jan-1999 Barry Warsaw <barry@python.org> builtin_map(): Nailed memory leak. PyList_Append() borrows a
reference, so you have to DECREF the appended value. This was a fun
one!
/external/python/cpython2/Python/bltinmodule.c
f988e687a1f0251c36fe620e5f562c113f338cd9 28-Jan-1999 Barry Warsaw <barry@python.org> builtin_complex(): Nailed memory leak. This one's in the instance
test for classes with a __complex__() method. The attribute is pulled
out of the instance with PyObject_GetAttr() but this transfers
ownership and the function object was never DECREF'd.
/external/python/cpython2/Python/bltinmodule.c
e23cde2f8d0084f8ccfb8b6149afe06809f1c81c 12-Jan-1999 Guido van Rossum <guido@python.org> Avoid overflow if possible in calculations for range(); report
unavoidable overflow as OverflowError.
/external/python/cpython2/Python/bltinmodule.c
344864fcfb9bf50100f1b8df7c83449e72007a84 01-Dec-1998 Barry Warsaw <barry@python.org> Added new builtin standard exception: NotImplementedError (its C
counterpart is PyExc_NotImplementedError).
/external/python/cpython2/Python/bltinmodule.c
df12a5930569a089c95865207a95c60b4a8031c2 23-Nov-1998 Guido van Rossum <guido@python.org> Fix cosmetic bug in delattr docstring discovered by JvR.
/external/python/cpython2/Python/bltinmodule.c
968f8cbacea38d991cb5c8816da1235355c004df 01-Oct-1998 Barry Warsaw <barry@python.org> builtin_apply(): Second argument type check is relaxed to allow any sequence.
/external/python/cpython2/Python/bltinmodule.c
98b6246c0c60f2831b0c7a66d8c0659ebac1ec32 14-Sep-1998 Barry Warsaw <barry@python.org> Several changes that Python carry on in the face of errors in the
initialization of class exceptions. Specifically:

init_class_exc(): This function now returns an integer status of the
class exception initialization. No fatal errors in this method now.
Also, use PySys_WriteStderr() when writing error messages. When an
error occurs in this function, 0 is returned, but the partial creation
of the exception classes is not undone (this happens elsewhere).

Things that could trigger the fallback:

- exceptions.py fails to be imported (due to syntax error, etc.)

- one of the exception classes is missing (e.g. due to library
version mismatch)

- exception class can't be inserted into __builtin__'s dictionary

- MemoryError instance can't be pre-allocated

- some other PyErr_Occurred

newstdexception(): Changed the error message. This is still a fatal
error because if the string based exceptions can't be created, we
really can't continue.

initerrors(): Be sure to xdecref the .exc field, which might be
non-NULL if class exceptions init was aborted.

_PyBuiltin_Init_2(): If class exception init fails, print a warning
message and reinstate the string based exceptions.
/external/python/cpython2/Python/bltinmodule.c
746340d989f02af9c8d75545c7068b5db9894826 04-Sep-1998 Guido van Rossum <guido@python.org> Should no longer surround PyOS_Readline() call with
Py_{BEGIN,END}_ALLOW_THREADS macros. Also get rid of the declaration
for it (it's now in pythonrun.h).
/external/python/cpython2/Python/bltinmodule.c
d086a1a8649ca1bb0720d701112c698ab5463db2 23-Jul-1998 Barry Warsaw <barry@python.org> Added support for two new standard errors: EnvironmentError and
OSError. The EnvironmentError serves primarily as the (common
implementation) base class for IOError and OSError. OSError is used
by posixmodule.c

Also added tuple definition of EnvironmentError when using string
based exceptions.
/external/python/cpython2/Python/bltinmodule.c
fa4ac71dd6602347d80e4cdb71f3867fb63d3578 10-Jul-1998 Guido van Rossum <guido@python.org> Small changes to map() and filter():

(1) If a sequence S is shorter than len(S) indicated, don't fail --
just use the shorter size. (I.e, len(S) is just a hint.)

(2) Implement the special case map(None, S) as list(S) -- it's faster.
/external/python/cpython2/Python/bltinmodule.c
8ea9f4d10aa81251aa857362e9e3fb17511d99db 30-Jun-1998 Guido van Rossum <guido@python.org> Fix a stupid little bug: len() of an unsized returns -1 and leaves an
exception waiting to happen next...
/external/python/cpython2/Python/bltinmodule.c
950ff2923af04c5579775ac453f714cb4eb08ea1 29-Jun-1998 Guido van Rossum <guido@python.org> Experimental feature: add default argument to getattr().
/external/python/cpython2/Python/bltinmodule.c
f9d9c6c5d2e63e9ced996aa545fc2c933323bd93 26-Jun-1998 Guido van Rossum <guido@python.org> Added doc strings.
/external/python/cpython2/Python/bltinmodule.c
d9b5208e903a7149a3c5733abbaf7f59f3d7c426 26-Jun-1998 Guido van Rossum <guido@python.org> In raw_input(prompt), make sure that str(prompt) really a string
object before using it.
/external/python/cpython2/Python/bltinmodule.c
9396673a58811d9cba74080217c9210805ade72c 29-May-1998 Guido van Rossum <guido@python.org> Remove a few unused locals (I love VC++ for this!).
/external/python/cpython2/Python/bltinmodule.c
09df08a105c054a82c1c3d52efa2a21553c0b4d1 22-May-1998 Guido van Rossum <guido@python.org> A bunch of functions are now properly implemented in abstract.c, and
the code here becomes much simpler. In particular: abs(), divmod(),
pow(), int(), long(), float(), len(), tuple(), list().

Also make sure that no use of a function pointer gotten from a
tp_as_sequence or tp_as_mapping structure is made without checking it
for NULL first.

A few other cosmetic things, such as properly reindenting slice().
/external/python/cpython2/Python/bltinmodule.c
1e162d3753528ef25885f20106512599ebad9b0b 09-May-1998 Guido van Rossum <guido@python.org> Implement round() slightly different, so that for negative ndigits no
additional errors happen in the last step. The trick is to avoid
division by 0.1**n -- multiply by 10.0**n instead.
/external/python/cpython2/Python/bltinmodule.c
a937d14898e8e396a1c9acc0fbd2db5209d1a6ce 24-Apr-1998 Guido van Rossum <guido@python.org> Fred's right -- we need PyList_SET_ITEM().
/external/python/cpython2/Python/bltinmodule.c
507338e5caf22fa2da780e1f3e2f32e08f1800f6 23-Apr-1998 Guido van Rossum <guido@python.org> In-line the code in range() to set the list items; there's really no
need to call PyList_SetItem(v,i,w) when PyList_GET_ITEM(v,i)=w {sic}
will do.
/external/python/cpython2/Python/bltinmodule.c
730806d3d9bd8c54466e4a864b2b1f94df4413d2 11-Apr-1998 Guido van Rossum <guido@python.org> Make new gcc -Wall happy
/external/python/cpython2/Python/bltinmodule.c
8f74571596e23a1742d393532968cd727771c535 13-Mar-1998 Guido van Rossum <guido@python.org> Use a faster way to check for null bytes in the string argument for
int(), long(), float().
/external/python/cpython2/Python/bltinmodule.c
d6af46d4aef833099a405c18cd3b391298bddcff 10-Dec-1997 Guido van Rossum <guido@python.org> Need a cast when comparing type object in isinstance()
/external/python/cpython2/Python/bltinmodule.c
f5dd914196dc4c55394832b3de62fb621b4482e2 02-Dec-1997 Guido van Rossum <guido@python.org> Support type objects in isinstance().

E.g. isinstance('',types.StringType) will return true now instead of
raising a TypeError exception. This is for JPython compatibility.
/external/python/cpython2/Python/bltinmodule.c
ee81af89779d8ea189f23fddca1d96a4eb49751e 26-Sep-1997 Guido van Rossum <guido@python.org> Release interpreter lock around readline call in [raw_]input().
/external/python/cpython2/Python/bltinmodule.c
b01a7fa5f8208fb5c767964e63b44f0a02814f62 18-Sep-1997 Barry Warsaw <barry@python.org> initerrors(): Eliminate circular reference which was causing a small
but annoying memory leak. This was introduced when PyExc_Exception
was added; the loop above populating the PyExc_StandardError exception
tuple started at index 1 in bltin_exc, but PyExc_Exception was added
at index 0, so PyExc_StandardError was getting inserted in itself!
How else can a tuple include itself?!

Change the loop to start at index 2.

This was a *fun* one! :-)
/external/python/cpython2/Python/bltinmodule.c
412cdc2284693c07a3ab7c812284b0a95ffa0724 16-Sep-1997 Barry Warsaw <barry@python.org> [Py_Exc]NumberError => [Py_Exc]ArithmeticError
/external/python/cpython2/Python/bltinmodule.c
0474832d9c6c708d8addd31a989dff772fdfefbf 16-Sep-1997 Guido van Rossum <guido@python.org> Introduce PyExc_Exception as the conceptual root class for all exceptions.
/external/python/cpython2/Python/bltinmodule.c
aee0bad0a50f9f533267d241bea97a0b2118f238 05-Sep-1997 Guido van Rossum <guido@python.org> First part of package support.

This doesn't yet support "import a.b.c" or "from a.b.c import x", but
it does recognize directories. When importing a directory, it
initializes __path__ to a list containing the directory name, and
loads the __init__ module if found.

The (internal) find_module() and load_module() functions are
restructured so that they both also handle built-in and frozen modules
and Mac resources (and directories of course). The imp module's
find_module() and (new) load_module() also have this functionality.
Moreover, imp unconditionally defines constants for all module types,
and has two more new functions: find_module_in_package() and
find_module_in_directory().

There's also a new API function, PyImport_ImportModuleEx(), which
takes all four __import__ arguments (name, globals, locals, fromlist).
The last three may be NULL. This is currently the same as
PyImport_ImportModule() but in the future it will be able to do
relative dotted-path imports.

Other changes:

- bltinmodule.c: in __import__, call PyImport_ImportModuleEx().

- ceval.c: always pass the fromlist to __import__, even if it is a C
function, so PyImport_ImportModuleEx() is useful.

- getmtime.c: the function has a second argument, the FILE*, on which
it applies fstat(). According to Sjoerd this is much faster. The
first (pathname) argument is ignored, but remains for backward
compatibility (so the Mac version still works without changes).

By cleverly combining the new imp functionality, the full support for
dotted names in Python (mini.py, not checked in) is now about 7K,
lavishly commented (vs. 14K for ni plus 11K for ihooks, also lavishly
commented).

Good night!
/external/python/cpython2/Python/bltinmodule.c
757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5 30-Aug-1997 Barry Warsaw <barry@python.org> Removed obsolete exception PyExc_AccessError.

Added PyErr_MemoryErrorInst to hold the pre-instantiated instance when
using class based exceptions.

Simplified the creation of all built-in exceptions, both class based
and string based. Actually, for class based exceptions, the string
ones are still created just in case there's a problem creating the
class based ones (so you still get *some* exception handling!). Now
the init and fini functions run through a list of structure elements,
creating the strings (and optionally classes) for every entry.

initerrors(): the new base class exceptions StandardError,
LookupError, and NumberError are initialized when using string
exceptions, to tuples containing the list of derived string
exceptions. This GvR trick enables forward compatibility! One bit of
nastiness is that the C code has to know the inheritance tree embodied
in exceptions.py.

Added the two phase init and fini functions.
/external/python/cpython2/Python/bltinmodule.c
cde8b1ba0c0948f2cec00d11821214e06ca419cb 22-Aug-1997 Barry Warsaw <barry@python.org> Two new built-in functions: issubclass() and isinstance(). Both take
classes as their second arguments. The former takes a class as the
first argument and returns true iff first is second, or is a subclass
of second.

The latter takes any object as the first argument and returns true iff
first is an instance of the second, or any subclass of second.

Also, change all occurances of pointer compares against
PyExc_IndexError with PyErr_ExceptionMatches() calls.
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
c8b6df90045a3f419e6fab272d93ad4159e54ccc 23-May-1997 Guido van Rossum <guido@python.org> PyObject_Compare can raise an exception now.
/external/python/cpython2/Python/bltinmodule.c
b6a7f77c9ff557643dee97e0c9e39c194376fa0a 09-May-1997 Guido van Rossum <guido@python.org> Oops -- missed FloatingPointError in renaming.
/external/python/cpython2/Python/bltinmodule.c
b05a5c7698cd8dff3e5c02e513db765ba12281f0 07-May-1997 Guido van Rossum <guido@python.org> Instead of importing graminit.h whenever one of the three grammar 'root'
symbols is needed, define these in Python.h with a Py_ prefix.
/external/python/cpython2/Python/bltinmodule.c
666b17a28091be3ab1fdd935b881113416787622 06-May-1997 Guido van Rossum <guido@python.org> New dir() function --
- uses abstract interface where possible
- uses __members__ and __methods__
- returns [] when an object has no info available
/external/python/cpython2/Python/bltinmodule.c
15e33a4c42c9afacbe93eb4e3102a5e068e292eb 30-Apr-1997 Guido van Rossum <guido@python.org> Avoid sprintf buffer overflow if more than 9999 arguments.
/external/python/cpython2/Python/bltinmodule.c
79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569 29-Apr-1997 Guido van Rossum <guido@python.org> Quickly renamed the remaining files -- this directory is done.
/external/python/cpython2/Python/bltinmodule.c
6bf62dad9e83003a70aef4158df063697926ba7c 11-Apr-1997 Guido van Rossum <guido@python.org> Keep gcc -Wall and Microsoft VC happy.
/external/python/cpython2/Python/bltinmodule.c
c6472e9ee161c3bbc003dbf8ce3f74ec8f700eb9 31-Mar-1997 Guido van Rossum <guido@python.org> 1. Add string conversions to int(), long(), float(). (Not to complex()!)

2. Fix two bugs in complex():

- Memory leak when using complex(classinstance) -- r was never
DECREF'ed.

- Conversion of the second argument, if not complex, was done using
the type vector of the 1st.
/external/python/cpython2/Python/bltinmodule.c
1c6a459921b3fbc04f818b95f277302336573dde 11-Mar-1997 Guido van Rossum <guido@python.org> Define __debug__ as 0 if -O is given, 1 otherwise. Also test for
errors in initializing the dictionary.
/external/python/cpython2/Python/bltinmodule.c
0ae748d3c409fc4b870baadd601a53c6a43ddf11 14-Feb-1997 Guido van Rossum <guido@python.org> Changes for Lee Busby's SIGFPE patch set.
New file pyfpe.c and exception FloatingPointError.
Surround some f.p. operations with PyFPE macro brackets.
/external/python/cpython2/Python/bltinmodule.c
e8811f85ed7c1a1087ee371f236e33cf4f159568 14-Feb-1997 Guido van Rossum <guido@python.org> Added intern() function.
/external/python/cpython2/Python/bltinmodule.c
8d751616710f480833e87c5b752a4d2aecee58a1 18-Jan-1997 Guido van Rossum <guido@python.org> Intern the string "__complex__".
/external/python/cpython2/Python/bltinmodule.c
1a2c5cbcc49a2845ebc323ce7860554ca616cc73 10-Dec-1996 Guido van Rossum <guido@python.org> Add unistd.h to make gcc -Wall happy.
/external/python/cpython2/Python/bltinmodule.c
ed0af8fe702505001c67ec5e233fb84944529f7e 06-Dec-1996 Guido van Rossum <guido@python.org> Support __complex__ method on instances, for complex() conversion.

Keep gcc -Wall happy.
/external/python/cpython2/Python/bltinmodule.c
d266eb460e20ded087d01a29da0a230e235afc40 25-Oct-1996 Guido van Rossum <guido@python.org> New permission notice, includes CNRI.
/external/python/cpython2/Python/bltinmodule.c
b75fba04c7f0a691ef1416e01121f01940472875 16-Oct-1996 Guido van Rossum <guido@python.org> Forget about Ellipses b/w compatibility.
/external/python/cpython2/Python/bltinmodule.c
e449af7da940d353a54036fb72e7405d2da362e3 11-Oct-1996 Guido van Rossum <guido@python.org> Ellipses -> Ellipsis rename (the dictionary really says that it should
be Ellipsis!).
Bumped the API version because a linker-visible symbol is affected.
Old C code will still compile -- there's a b/w compat macro.
Similarly, old Python code will still run, builtin exports both
Ellipses and Ellipsis.
/external/python/cpython2/Python/bltinmodule.c
b072150d7f737728236ed819bc17383411e4eb86 07-Sep-1996 Guido van Rossum <guido@python.org> Stupid bug: complex(x,y) would yield x+xj
/external/python/cpython2/Python/bltinmodule.c
79d96d6bffa21ea59f8e084f0b96d354e6097427 16-Aug-1996 Guido van Rossum <guido@python.org> Don't die in resizestring() on filter(<func>, "").
/external/python/cpython2/Python/bltinmodule.c
fe4b6ee77596320353bca3d9f1143d6ed97476f3 08-Aug-1996 Guido van Rossum <guido@python.org> Include mymath.h instead of declaring prototypes for math functions.
Fix leak and unchecked error in complex().
/external/python/cpython2/Python/bltinmodule.c
6ffd55389914b299b1a03be2091744b9411c926e 30-Jul-1996 Guido van Rossum <guido@python.org> Add 'Ellipses' object.
/external/python/cpython2/Python/bltinmodule.c
8861b74445560c078d11ff6800a3ce20a869ea93 30-Jul-1996 Guido van Rossum <guido@python.org> Changes for slice and ellipses
/external/python/cpython2/Python/bltinmodule.c
530956d247fd01cb4e3bdc0dedd7ab3e0b9a8b13 21-Jul-1996 Guido van Rossum <guido@python.org> Py_complex; and WITHOUT_COMPLEX added to getargs.c
/external/python/cpython2/Python/bltinmodule.c
795ba583f263f240ec30e2021f3f49622e8ff78f 24-May-1996 Guido van Rossum <guido@python.org> Removed some redundant header includes.

dir(object) now returns object.__dict__.keys() even if __dict__ is not
a dictionary.
/external/python/cpython2/Python/bltinmodule.c
d17057745c1dc58ec6e245991fd049fd987c6895 09-Apr-1996 Guido van Rossum <guido@python.org> Add list() method, analogous to tuple().
/external/python/cpython2/Python/bltinmodule.c
c96ef6ab9e6282aabd53527c0c603115319e85ed 26-Jan-1996 Guido van Rossum <guido@python.org> properly initialize optional arguments to apply()
/external/python/cpython2/Python/bltinmodule.c
8a5c5d277eba096c4f12fdcdf5b3550d63f6bc56 12-Jan-1996 Guido van Rossum <guido@python.org> changes for complex numbers
/external/python/cpython2/Python/bltinmodule.c
b7b45627e88756b06d37ef5f01dd48b5e0e1188c 04-Aug-1995 Guido van Rossum <guido@python.org> avoid resize of 0-length tuple
/external/python/cpython2/Python/bltinmodule.c
53bb7fff11cb07ba48dd30aca8c956dec0986a00 26-Jul-1995 Guido van Rossum <guido@python.org> be more suspicious of getlocals()
/external/python/cpython2/Python/bltinmodule.c
681d79aaf397850778608f35585d091fa7fe370a 18-Jul-1995 Guido van Rossum <guido@python.org> keyword arguments and faster calls
/external/python/cpython2/Python/bltinmodule.c
32120311ed8f167f841249d8fd7799ba517f2a44 10-Jul-1995 Guido van Rossum <guido@python.org> rename arglist to alist (conflict with new grammar symbol)
/external/python/cpython2/Python/bltinmodule.c
872537cc86080d5f816c2e6f81906a7cb8c0a468 08-Jul-1995 Guido van Rossum <guido@python.org> added locals() and globals(); [raw_]input() uses readline()
/external/python/cpython2/Python/bltinmodule.c
8a1e8eb62fc89814a942f6ba59cac0ac32cd9fe5 18-Feb-1995 Guido van Rossum <guido@python.org> fix bogus test for negative float
/external/python/cpython2/Python/bltinmodule.c
24c137432c0f0d26f13d2f645688e904f8ca0ee1 14-Feb-1995 Guido van Rossum <guido@python.org> call __import__() with 4 args instead of 1
/external/python/cpython2/Python/bltinmodule.c
2165158ab32bf1808478cb0199df45d8be1ec2f4 10-Feb-1995 Guido van Rossum <guido@python.org> test for float to the float power here
/external/python/cpython2/Python/bltinmodule.c
a6f605022914ff7817ea7003825df32985dcacc3 26-Jan-1995 Guido van Rossum <guido@python.org> moved callable() to object.c
/external/python/cpython2/Python/bltinmodule.c
7f9fa97ca22e56a6cde2dfd3f2ba1704db8e463f 20-Jan-1995 Guido van Rossum <guido@python.org> fix import related leaks
/external/python/cpython2/Python/bltinmodule.c
0865dd9ce96de4467365ea14bea75805d8ddc8c6 17-Jan-1995 Guido van Rossum <guido@python.org> fix Alpha bug in (x)range; different __builtins__ initialization
/external/python/cpython2/Python/bltinmodule.c
58b6873f6b348ca4511ac8fa01bed76b049f6ec5 10-Jan-1995 Guido van Rossum <guido@python.org> fix subtle refcount big in filter() -- Tim MacKenzie
/external/python/cpython2/Python/bltinmodule.c
5524a59b0930638413ab44b150a3e66818a34cf9 10-Jan-1995 Guido van Rossum <guido@python.org> move coerce() from bltinmodule.c to object.c and implement builtin_coerce() differently
/external/python/cpython2/Python/bltinmodule.c
84eaa8396e3e8fbc08dd8cbcce0518d7b11fb01a 10-Jan-1995 Guido van Rossum <guido@python.org> fix globals/locals defaults for eval/execfile
/external/python/cpython2/Python/bltinmodule.c
6135a87f2b1474be6caf1bf776024d0c6d10a6d1 09-Jan-1995 Guido van Rossum <guido@python.org> __builtins__ mods (and sys_checkinterval for ceval.c)
/external/python/cpython2/Python/bltinmodule.c
6a00cd8b89e23c4e577eabc9956debc725afde21 07-Jan-1995 Guido van Rossum <guido@python.org> * Python/bltinmodule.c: restructured coerce(), divmod(), pow() to
use new instancebinop interface
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.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/bltinmodule.c
030ae175821e4e94c50139c6fac68ac507b0403f 10-Nov-1994 Guido van Rossum <guido@python.org> fix pow() core dump
/external/python/cpython2/Python/bltinmodule.c
180d7b4d5588737601b3242d8ce9cab59a75286f 29-Sep-1994 Guido van Rossum <guido@python.org> * Python/ceval.c, Include/ceval.h: promote MakePendingCalls to
global: Py_MakePendingCalls. Also guard against recursive calls

* Include/classobject.h, Objects/classobject.c,
Python/{ceval.c,bltinmodule.c}: entirely redone operator
overloading. The rules for class instances are now much more
relaxed than for other built-in types
(whose coerce must still return two objects of the same type)
/external/python/cpython2/Python/bltinmodule.c
e4ab6475f1d9e97f17bd17206a10c1d8c4c4130c 30-Aug-1994 Guido van Rossum <guido@python.org> * Python/getmtime.c: Remove mac specifics (Mac subdirectory has
its own version now)
* Python/bltinmodule.c (builtin_tuple): use pre-existing
listtuple(v) for lists
/external/python/cpython2/Python/bltinmodule.c
14144fcdfde3efdac2d2c609b985ade5edc4eda2 29-Aug-1994 Guido van Rossum <guido@python.org> Added delattr()
/external/python/cpython2/Python/bltinmodule.c
cae027b2988de4ad7165288907f91ba2f280bd98 29-Aug-1994 Guido van Rossum <guido@python.org> * Python/bltinmodule.c: added tuple() builtin
/external/python/cpython2/Python/bltinmodule.c
df05ac6dfb9f7210cf332ec288493c27d72ba0e7 29-Aug-1994 Guido van Rossum <guido@python.org> Python/bltinmodule.c: mods by Andrew Kuchling to implement
pow(x,y,z) == pow(x,y)%z, but without incurring overflow
/external/python/cpython2/Python/bltinmodule.c
2d9518585cf9411bf311bcb9d4e578d255e98c9b 29-Aug-1994 Guido van Rossum <guido@python.org> * Python/bltinmodule.c (builtin_vars): correct typo in error msg
/external/python/cpython2/Python/bltinmodule.c
7d6aa51b56c6337ad5b1cb880f7c075290777f51 21-Dec-1993 Guido van Rossum <guido@python.org> * rangeobject.[ch], bltinmodule.c: incorporate new version of range
object (unchanged from source except "range" -> "xrange").
/external/python/cpython2/Python/bltinmodule.c
590baa4a7a43b596119b47f605e3e570c2b3b0ee 30-Nov-1993 Guido van Rossum <guido@python.org> * import.c (get_module): pass .py filename to parse_file, not .pyc filename!
* funcobject.c (func_repr): don't call getstringvalue(None) for anonymous
functions.
* bltinmodule.c: removed lambda (which is now a built-in function);
removed implied lambda for string arg to filter/map/reduce.
* Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in
function by lambda as grammar entity: instead of "lambda('x: x+1')" you
write "lambda x: x+1".
* Xtmodule.c (checkargdict): return 0, not NULL, for error.
/external/python/cpython2/Python/bltinmodule.c
c60041175547df61e67ff167bd5ad18f7967795d 05-Nov-1993 Guido van Rossum <guido@python.org> * mpzmodule.c: removed redundant mpz_print function.
* object.[ch], bltinmodule.c, fileobject.c: changed str() to call
strobject() which calls an object's __str__ method if it has one.
strobject() is also called by writeobject() when PRINT_RAW is passed.
* ceval.c: rationalize code for PRINT_ITEM (no change in function!)
* funcobject.c, codeobject.c: added compare and hash functionality.
Functions with identical code objects and the same global dictionary are
equal. Code objects are equal when their code, constants list and names
list are identical (i.e. the filename and code name don't count).
(hash doesn't work yet since the constants are in a list and lists can't
be hashed -- suppose this should really be done with a tuple now we have
resizetuple!)
/external/python/cpython2/Python/bltinmodule.c
e77a757094f68351f336044654cd91575c677896 03-Nov-1993 Guido van Rossum <guido@python.org> * nismodule.c: database keys and values can contain null bytes. be more
careful about these.
* arraymodule.c: added 8 byte swap; added 'i' format character; added
reverse() method; rename read/write to fromfile/tofile.
* config.c: Set version to 0.9.9++.
* rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts
will have a well-defined effect independent of word size.
* bltinmodule.c: renamed bagof() to filter().
/external/python/cpython2/Python/bltinmodule.c
2586bf0a3434fc0430b6c16a56ad2b950eabc589 01-Nov-1993 Guido van Rossum <guido@python.org> * rangeobject.{c,h}, bltinmodule.c: removed non-essential ops from range
object.
/external/python/cpython2/Python/bltinmodule.c
615194a3526ce2cd50a255113470ba24e3fca0b9 01-Nov-1993 Sjoerd Mullender <sjoerd@acm.org> Fixed bugs in resizetuple and extended the interface.
Added ifdefs in stringobject.c for shared strings of length 1.
Renamed free_list in tupleobject.c to free_tuples.
/external/python/cpython2/Python/bltinmodule.c
dc4b93db7097a34cee492b188ec2fd65c5b9bc4b 27-Oct-1993 Guido van Rossum <guido@python.org> * listobject.c (list_ass_slice): XDECREF instead of DECREF so
setlistslice() can be used to cut the unused part out of a freshly made
slice (as done by bagof()). [needed by the next mod!]
* structural changes to bagof(), map() etc.
/external/python/cpython2/Python/bltinmodule.c
12d12c5faf4d770160b7975b54e8f9b12694e012 26-Oct-1993 Guido van Rossum <guido@python.org> * compile.[ch]: support for lambda()
* PROTO.h, mymalloc.h: added #ifdefs for TURBOC and GNUC.
* allobjects.h: added #include "rangeobject.h"
* Grammar: added lambda_input; relaxed syntax for exec.
* bltinmodule.c: added bagof, map, reduce, lambda, xrange.
* tupleobject.[ch]: added resizetuple().
* rangeobject.[ch]: new object type to speed up range operations (not
convinced this is needed!!!)
/external/python/cpython2/Python/bltinmodule.c
89b3325dc4d6999bb00068e048a76f7eba23a7a5 22-Oct-1993 Guido van Rossum <guido@python.org> * import.c (MAGIC): Changed magic word to avoid confusion about exec
function vs. exec statement
* bltinmodule.c: renamed the module to __builtin__.
* posixmodule.c (posix_execv): renamed exec --> execv since it is now a
reserved word.
/external/python/cpython2/Python/bltinmodule.c
db3165e6559c6b83373e7fed9cdf4371552a9a8e 18-Oct-1993 Guido van Rossum <guido@python.org> * bltinmodule.c: removed exec() built-in function.
* Grammar: add exec statement; allow testlist in expr statement.
* ceval.c, compile.c, opcode.h: support exec statement;
avoid optimizing locals when it is used
* fileobject.{c,h}: add getfilename() internal function.
/external/python/cpython2/Python/bltinmodule.c
234f942aefb779efa6cfb7225e21d16a3f7e80f7 17-Jun-1993 Guido van Rossum <guido@python.org> * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.
Added $(SYSDEF) to its build rule in Makefile.
* cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also
changed files that still used it... And made several things static
that weren't but should have been... And other minor cleanups...
* listobject.[ch]: add external interfaces {set,get}listslice
* socketmodule.c: fix bugs in new send() argument parsing.
* sunaudiodevmodule.c: added flush() and close().
/external/python/cpython2/Python/bltinmodule.c
81daa32c15cfa9f05eda037916cdbfd5b4323431 20-May-1993 Guido van Rossum <guido@python.org> Access checks now work, at least for instance data (not for methods
yet). The class is now passed to eval_code and stored in the current
frame. It is also stored in instance method objects. An "unbound"
instance method is now returned when a function is retrieved through
"classname.funcname", which when called passes the class to eval_code.
/external/python/cpython2/Python/bltinmodule.c
25831652fd4c03323066d4cafdc0551c396a993e 19-May-1993 Guido van Rossum <guido@python.org> Several changes in one:

(1) dictionaries/mappings now have attributes values() and items() as
well as keys(); at the C level, use the new function mappinggetnext()
to iterate over a dictionary.

(2) "class C(): ..." is now illegal; you must write "class C: ...".

(3) Class objects now know their own name (finally!); and minor
improvements to the way how classes, functions and methods are
represented as strings.

(4) Added an "access" statement and semantics. (This is still
experimental -- as long as you don't use the keyword 'access' nothing
should be changed.)
/external/python/cpython2/Python/bltinmodule.c
5b7221849e240c2a62ebbc48d58607417b42ef44 30-Mar-1993 Guido van Rossum <guido@python.org> * Fixed some subtleties with fastlocals. You can no longer access
f_fastlocals in a traceback object (this is a core dump hazard
if there are <nil> entries), but instead eval_code() merges the fast
locals back into the locals dictionary if it looks like the local
variables will be retained. Also, the merge routines save
exceptions since this is sometimes needed (alas!).

* Added id() to bltinmodule.c, which returns an object's address
(identity). Useful to walk arbitrary data structures containing
cycles.

* Added compile() to bltinmodule.c and compile_string() to
pythonrun.[ch]: support to exec/eval arbitrary code objects. The
code that defaults globals and locals is moved from run_node in
pythonrun.c (which is now identical to eval_node) to eval_code in
ceval.c. [XXX For elegance a clean-up session is necessary.]
/external/python/cpython2/Python/bltinmodule.c
9bfef44d97d1ae24e03717e3d59024b44626a9de 29-Mar-1993 Guido van Rossum <guido@python.org> * Changed all copyright messages to include 1993.
* Stubs for faster implementation of local variables (not yet finished)
* Added function name to code object. Print it for code and function
objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version
number has changed accordingly)
* Print address of self for built-in methods
* New internal functions getattro and setattro (getattr/setattr with
string object arg)
* Replaced "dictobject" with more powerful "mappingobject"
* New per-type functio tp_hash to implement arbitrary object hashing,
and hashobject() to interface to it
* Added built-in functions hash(v) and hasattr(v, 'name')
* classobject: made some functions static that accidentally weren't;
added __hash__ special instance method to implement hash()
* Added proper comparison for built-in methods and functions
/external/python/cpython2/Python/bltinmodule.c
e537240c252ff678d49451ee6f80fa934653a724 16-Mar-1993 Guido van Rossum <guido@python.org> * Changed many files to use mkvalue() instead of newtupleobject().
* Fixcprt.py: added [-y file] option, do only files younger than file.
* modsupport.[ch]: added vmkvalue().
* intobject.c: use mkvalue().
* stringobject.c: added "formatstring"; renamed string* to string_*;
ceval.c: call formatstring for string % value.
* longobject.c: close memory leak in divmod.
* parsetok.c: set result node to NULL when returning an error.
/external/python/cpython2/Python/bltinmodule.c
9e51f9bec85ac8bc167c2fb8d3956968ef8311af 12-Feb-1993 Guido van Rossum <guido@python.org> bltinmodule.c: added round(x, [n]); coerce() of two class instances
will try to coerce anyway.
classobject.c: instance 'nonzero' should first try __nonzero__
only then __len__.
/external/python/cpython2/Python/bltinmodule.c
d014ea6b5efbfb3d143fc8aacf8bee733cf4c8f0 26-Nov-1992 Guido van Rossum <guido@python.org> * classobject.c: in instance_lenth, test result of call_object
for exception before using it. Fixed a few other places where the
outcome of calling sq_length wasn't tested for exceptions
(bltinmodule.c, ceval.c).
/external/python/cpython2/Python/bltinmodule.c
c89705d6975ffb1e4a3764f4f36bab339f969e8f 26-Nov-1992 Guido van Rossum <guido@python.org> * config.c: Added audioop to lists.
* Makefile: change default source directory
* socketmodule.c: added getsockname and getpeername
* bltinmodule.c: corrected typo in type() error message
* Added new built-in functions str() and repr(): repr(x) == `x`;
str(x) == x if x is a string, otherwise str(x) == repr(x).
* Added joinfields to stropmodule.c (string.join calls joinfields now)
/external/python/cpython2/Python/bltinmodule.c
a9e7dc10816dcf5eda63d3ef00930ef9d55e0675 18-Oct-1992 Guido van Rossum <guido@python.org> * bltinmodule.c: added built-in function cmp(a, b)

* flmodule.c: added {do,check}_only_forms to fl's list of functions;
and don't print a message when an unknown object is returned.

* pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup.

* Made jpegmodule.c smaller by using getargs() and mkvalue() consistently.

* Increased parser stack size to 500 in parser.h.

* Implemented custom allocation of stack frames to frameobject.c and
added dynamic stack overflow checks (value stack only) to ceval.c.
(There seems to be a bug left: sometimes stack traces don't make sense.)
/external/python/cpython2/Python/bltinmodule.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/bltinmodule.c
1899c2e0550fa025080e35bb3ec25aeff0118dc7 12-Sep-1992 Guido van Rossum <guido@python.org> Made builtins int(), long(), float(), oct() and hex() more generic.
/external/python/cpython2/Python/bltinmodule.c
2b81dc9c00f5000fd5c1c9aac8b666ccc7f0a1a6 19-Aug-1992 Guido van Rossum <guido@python.org> fix *serious* (new) bug in evalfile: forgot to initialize s!!!
/external/python/cpython2/Python/bltinmodule.c
94390a4eaf48c3ddf91cdbf78fcf5db7b57972ec 14-Aug-1992 Guido van Rossum <guido@python.org> use getargs() in more cases;
oct(0) should return '0', not '00'
/external/python/cpython2/Python/bltinmodule.c
e6eefc22313e7f2da5918ecd608fbb0b7a7a1610 14-Aug-1992 Guido van Rossum <guido@python.org> * classobject.[ch], {float,long,int}object.c, bltinmodule.c:
coercion is now completely generic.
* ceval.c: for instances, don't coerce for + and *; * reverses
arguments if left one is non-instance numeric and right one sequence.
/external/python/cpython2/Python/bltinmodule.c
04691fc1c1bb737c0db772f5c1ea697a351a01d9 12-Aug-1992 Guido van Rossum <guido@python.org> Changes so that user-defined classes can implement operations invoked
by special syntax: you can now define your own numbers, sequences and
mappings.
/external/python/cpython2/Python/bltinmodule.c
ff4949eeee7f86117d4a69599777ff5564315e39 05-Aug-1992 Guido van Rossum <guido@python.org> * Makefile: cosmetics
* socketmodule.c: get rid of makepair(); fix makesocketaddr to fix
broken recvfrom()
* socketmodule: get rid of getStrarg()
* ceval.h: move eval_code() to new file eval.h, so compile.h is no
longer needed.
* ceval.c: move thread comments to ceval.h; always make save/restore
thread functions available (for dynloaded modules)
* cdmodule.c, listobject.c: don't include compile.h
* flmodule.c: include ceval.h
* import.c: include eval.h instead of ceval.h
* cgen.py: add forground(); noport(); winopen(""); to initgl().
* bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c,
selectmodule.c:
adapt to threads (add BGN/END SAVE macros)
* stdwinmodule.c: adapt to threads and use a special stdwin lock.
* pythonmain.c: don't include getpythonpath().
* pythonrun.c: use BGN/END SAVE instead of direct calls; also more
BGN/END SAVE calls etc.
* thread.c: bigger stack size for sun; change exit() to _exit()
* threadmodule.c: use BGN/END SAVE macros where possible
* timemodule.c: adapt better to threads; use BGN/END SAVE; add
longsleep internal function if BSD_TIME; cosmetics
/external/python/cpython2/Python/bltinmodule.c
bab9d0385585fcddf6ee96a4ca38dd18e3517f54 05-Apr-1992 Guido van Rossum <guido@python.org> Copyright for 1992 added
/external/python/cpython2/Python/bltinmodule.c
df840d911ff204aa225a1bc5313709211dbdf383 27-Mar-1992 Guido van Rossum <guido@python.org> lint
/external/python/cpython2/Python/bltinmodule.c
22ebe2f4a74d61982a9c01e452c4cb914ecdbaae 12-Mar-1992 Guido van Rossum <guido@python.org> Strip leading whitespace from input().
/external/python/cpython2/Python/bltinmodule.c
f08ab0ad158f88f05dd923b129d2397e1882be14 04-Mar-1992 Guido van Rossum <guido@python.org> Skip leading whitespace of eval() string argument.
/external/python/cpython2/Python/bltinmodule.c
0f61f8a4bdd0a0871ada8e4e909e165f0e44eb6e 25-Feb-1992 Guido van Rossum <guido@python.org> Added execfile().
/external/python/cpython2/Python/bltinmodule.c
577894929523315f30f020f4c43f4de84475690d 05-Feb-1992 Guido van Rossum <guido@python.org> Get rid of comment about open().
/external/python/cpython2/Python/bltinmodule.c
33894be6572e1f205359947db8a1025a21f15788 27-Jan-1992 Guido van Rossum <guido@python.org> Added getattr and setattr built-in functions.
/external/python/cpython2/Python/bltinmodule.c
6d80647f7f82d8a0aba2d735ca9d894cadd3b332 19-Jan-1992 Guido van Rossum <guido@python.org> long_format() is now declared in longobject.h.
/external/python/cpython2/Python/bltinmodule.c
768a3f0ab8c1abdf14372cbdf3c83cc93b28ac4e 31-Dec-1991 Guido van Rossum <guido@python.org> Added SystemExit.
/external/python/cpython2/Python/bltinmodule.c
ed7711b7cb00cd2dfab52e9626f67632a3d75816 24-Dec-1991 Guido van Rossum <guido@python.org> Sorted exceptions; added ImportError.
/external/python/cpython2/Python/bltinmodule.c
fb905c3ebfe71c619cf4a4cb8bf162beb3526db2 16-Dec-1991 Guido van Rossum <guido@python.org> Regularize exceptions.
/external/python/cpython2/Python/bltinmodule.c
c02e15c45ed7ed6ff13f82da356f18ab9a197b7c 16-Dec-1991 Guido van Rossum <guido@python.org> Added "apply"; added "SyntaxError"; changed table lay-out.
/external/python/cpython2/Python/bltinmodule.c
50afb7a2167c2f8c51b2453df0cdf692c1682723 10-Dec-1991 Guido van Rossum <guido@python.org> Added new exceptions.
/external/python/cpython2/Python/bltinmodule.c
006bcd42ac082f05560f60577c08c957a8d38371 24-Oct-1991 Guido van Rossum <guido@python.org> Made dir() more robust.
Added hex() and oct().
/external/python/cpython2/Python/bltinmodule.c
dc8a108a36a55b480e302c556c773a2de17ec76a 20-Oct-1991 Guido van Rossum <guido@python.org> Protect dir() against non-directory __dict__ attributes.
/external/python/cpython2/Python/bltinmodule.c
a57fb011f17bd0f382f6d0a81e8733d81ee34353 16-Aug-1991 Guido van Rossum <guido@python.org> Change getbuiltin interface to get the name as an object;
call dict2lookup insteead of dictlookup.
/external/python/cpython2/Python/bltinmodule.c
c6bb8f7ab290d50934c761b25beb82918f23cf89 01-Jul-1991 Guido van Rossum <guido@python.org> Add and use coerce() routine for mixed mode arithmetic
/external/python/cpython2/Python/bltinmodule.c
909336104b70cae29c0c4fde4477d508e1d709ac 07-Jun-1991 Guido van Rossum <guido@python.org> printobject now returns an error code
/external/python/cpython2/Python/bltinmodule.c
ad40531aa199f0532777a336a6961a46afa11eac 03-Jun-1991 Guido van Rossum <guido@python.org> Fix conversion of double to long; stylistic changes.
/external/python/cpython2/Python/bltinmodule.c
d4905454cc154b492bd6afed48694ae3c579345e 05-May-1991 Guido van Rossum <guido@python.org> Added long() and support for longs in int() and float();
turned abs() and divmod() into generic versions;
added pow().
/external/python/cpython2/Python/bltinmodule.c
26203aa42260e416a68e717f5723169c2f57b77c 04-Apr-1991 Guido van Rossum <guido@python.org> Use fileobject's filegetline() to implement unlimited raw_input().
/external/python/cpython2/Python/bltinmodule.c
f70e43a073b36c6f6e9894c01025243a77a452d4 19-Feb-1991 Guido van Rossum <guido@python.org> Added copyright notice.
/external/python/cpython2/Python/bltinmodule.c
865828d7cfa76371ce1a5f068dac129d04bfa403 19-Feb-1991 Guido van Rossum <guido@python.org> Reversed min and max (to alphabetical order).
/external/python/cpython2/Python/bltinmodule.c
86cd6e646e99f38da1992a048c64b464e873d8e8 21-Jan-1991 Guido van Rossum <guido@python.org> File name shortening.
/external/python/cpython2/Python/bltinmodule.c
3f5da24ea304e674a9abbdcffc4d671e32aa70f1 20-Dec-1990 Guido van Rossum <guido@python.org> "Compiling" version
/external/python/cpython2/Python/bltinmodule.c