History log of /external/python/cpython2/Lib/test/test_compile.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7791165fb36ecca2398ac81e9b6bc0248821262c 22-Jan-2016 Victor Stinner <victor.stinner@gmail.com> code_richcompare() now uses the constants types

Issue #25843: When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.

Add a new _PyCode_ConstantKey() private function.
/external/python/cpython2/Lib/test/test_compile.py
43e9007767618aac7d6c30228518ae375ebb3008 29-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Fixed Py3k warnings in tests for issue #24731.
/external/python/cpython2/Lib/test/test_compile.py
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/Lib/test/test_compile.py
5d7d26c403d86e9525820d872eb3e331dbc31750 14-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25388: Fixed tokenizer hang when processing undecodable source code
with a null byte.
/external/python/cpython2/Lib/test/test_compile.py
3eb554fc828c812a31c1a3cd9f619eacbb708010 05-Sep-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #22221: Backported fixes from Python 3 (issue #18960).

* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment. This affects compile(),
eval() and exec() too.

* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.

* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
/external/python/cpython2/Lib/test/test_compile.py
4f09e615cd6b7bef321e1cc33d8936ceaf2ac680 10-Aug-2014 Benjamin Peterson <benjamin@python.org> test for 2 arg exec case
/external/python/cpython2/Lib/test/test_compile.py
af09c774e57d9c9b265fad0c092b63852d06ed25 29-Jul-2014 Robert Jordens <jordens@gmail.com> Issue #21591: add test for qualified exec in tuple form.
/external/python/cpython2/Lib/test/test_compile.py
ab4a69158b93ce8bae450a4d3b588d220aab7aea 23-May-2014 Antoine Pitrou <solipsis@pitrou.net> Issue #21523: Fix over-pessimistic computation of the stack effect of some opcodes in the compiler.

This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
/external/python/cpython2/Lib/test/test_compile.py
1658797a9d27e5307be1c0c9ab653ebf1d8c80d7 25-Nov-2012 Mark Dickinson <mdickinson@enthought.com> Issue #16339: Document and test exec(stmt, globals, locals) form in Python 2.7.
/external/python/cpython2/Lib/test/test_compile.py
24b07bcba350bb86c4d6ca446e1564647a199868 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython2/Lib/test/test_compile.py
af61719ec354015566028250a2912efa30f4cda4 21-Mar-2010 Florent Xicluna <florent.xicluna@gmail.com> Silence some py3k SyntaxWarning using check_py3k_warnings() with "exec" statements.
/external/python/cpython2/Lib/test/test_compile.py
0dee9c1b5cba45c2a6c0320021f88397c559312e 17-Mar-2010 Benjamin Peterson <benjamin@python.org> prevent lambda functions from having docstrings #8164
/external/python/cpython2/Lib/test/test_compile.py
b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab 24-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> use assert[Not]IsInstance where appropriate
/external/python/cpython2/Lib/test/test_compile.py
aa98058cc44ba20f35c106d20918c6196b737561 24-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> use assert[Not]In where appropriate
/external/python/cpython2/Lib/test/test_compile.py
ce8e33a095030e7af94f58f9da196b240bdf0476 08-Jan-2010 Senthil Kumaran <orsenthil@gmail.com> Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
/external/python/cpython2/Lib/test/test_compile.py
3ddc435af6873c6304058d7bcbcb19ee4fba7781 08-Jan-2010 Senthil Kumaran <orsenthil@gmail.com> Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
/external/python/cpython2/Lib/test/test_compile.py
e36199b49df77c96bad687c6681d8e54c5053b84 13-Nov-2009 Benjamin Peterson <benjamin@python.org> fix several compile() issues by translating newlines in the tokenizer
/external/python/cpython2/Lib/test/test_compile.py
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e 01-Jul-2009 Benjamin Peterson <benjamin@python.org> convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_compile.py
d1f5a59edb56b64336f07fc88cff6cbebed12dd6 13-Jun-2009 Benjamin Peterson <benjamin@python.org> allow importing from a module named None if it has an 'as' clause
/external/python/cpython2/Lib/test/test_compile.py
565e1b6bb724af71f439ec914b34f74e5163fe3d 13-Jun-2009 Benjamin Peterson <benjamin@python.org> prevent import statements from assigning to None
/external/python/cpython2/Lib/test/test_compile.py
64b7e501f46938a15e6ee2eaaaf6fc2b56e4abd8 16-Jul-2008 Mark Dickinson <dickinsm@gmail.com> Issue #3360: Fix incorrect parsing of "020000000000.0".
/external/python/cpython2/Lib/test/test_compile.py
5216721a532c348bcc59a03c7ee206f2cb2ae497 24-Apr-2008 Amaury Forgeot d'Arc <amauryfa@gmail.com> Issue2681: the literal 0o8 was wrongly accepted, and evaluated as float(0.0).
This happened only when 8 is the first digit.
Credits go to Lukas Meuser.
/external/python/cpython2/Lib/test/test_compile.py
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/Lib/test/test_compile.py
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/Lib/test/test_compile.py
9ff19b54346d39d15cdcf75e9d66ab46ea6064d6 17-Mar-2008 Eric Smith <eric@trueblade.com> Finished backporting PEP 3127, Integer Literal Support and Syntax.

Added 0b and 0o literals to tokenizer.
Modified PyOS_strtoul to support 0b and 0o inputs.
Modified PyLong_FromString to support guessing 0b and 0o inputs.
Renamed test_hexoct.py to test_int_literal.py and added binary tests.
Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py
/external/python/cpython2/Lib/test/test_compile.py
e06cf4534f738f0ad4669f504fbde58bf8b3fb86 07-Jun-2007 Georg Brandl <georg@python.org> Disallow function calls like foo(None=1).
Backport from py3k rev. 55708 by Guido.
/external/python/cpython2/Lib/test/test_compile.py
37075c5acee9d25b1d0a8e8a945964a5c0c9b1e1 27-Feb-2007 Jeremy Hylton <jeremy@alum.mit.edu> Fix long-standing bug in name mangling for package imports

Reported by Mike Verdone.
/external/python/cpython2/Lib/test/test_compile.py
905820ccba901b2b76ae8e27b63d0e242b3b7553 13-Dec-2006 Brett Cannon <bcannon@gmail.com> Remove an unneeded import of 'warnings'.
/external/python/cpython2/Lib/test/test_compile.py
ed657556086076576050c936947935be0900020d 10-Jul-2006 Neal Norwitz <nnorwitz@gmail.com> Bug #1512814, Fix incorrect lineno's when code at module scope
started after line 256.
/external/python/cpython2/Lib/test/test_compile.py
28746aba9bf636d03eb1c1c5f4550c6f2dbf5300 10-Jul-2006 Neal Norwitz <nnorwitz@gmail.com> On 64 bit systems, int literals that use less than 64 bits are now ints
rather than longs. This also fixes the test for eval(-sys.maxint - 1).
/external/python/cpython2/Lib/test/test_compile.py
6ec6ab02c33b1b879fef7058bcfecd4edaa66bd9 09-Jul-2006 Neil Schemenauer <nascheme@enme.ucalgary.ca> Fix SF bug 1441486: bad unary minus folding in compiler.
/external/python/cpython2/Lib/test/test_compile.py
9575fb241e554031362aec97c638453fae0d5561 08-Jul-2006 Georg Brandl <georg@python.org> Add an additional test for bug #1519018.
/external/python/cpython2/Lib/test/test_compile.py
fb48afa708d2b5de9d59e6c91e2c063889c41e45 08-Jul-2006 Neal Norwitz <nnorwitz@gmail.com> Fix SF bug #1519018: 'as' is now validated properly in import statements
/external/python/cpython2/Lib/test/test_compile.py
e98ccf66902f10ce2daaa33a22fb8ee8d99de18f 23-Mar-2006 Neal Norwitz <nnorwitz@gmail.com> Forward port MvL's fix in 43227:

Fix crash when a Unicode string containing an encoding declaration is
compile()d. Fixes #1115379.
/external/python/cpython2/Lib/test/test_compile.py
eadee9a7448170c054b9e30639f46cd110bd6263 13-Mar-2006 Nick Coghlan <ncoghlan@gmail.com> Fix SF bug #1448804 and ad a test to ensure that all subscript operations continue to be handled correctly
/external/python/cpython2/Lib/test/test_compile.py
6ab080cd4017b0daa742be7b5ce1e78416922a79 24-Oct-2005 Neal Norwitz <nnorwitz@gmail.com> Fix problem handling EXTENDED_ARGs from SF bug # 1333982
/external/python/cpython2/Lib/test/test_compile.py
9047c8f73d0e8c865452f80a4219d647be7c433a 24-Oct-2004 Raymond Hettinger <python@rcn.com> SF bug #1048870: call arg of lambda not updating
/external/python/cpython2/Lib/test/test_compile.py
1a4ddaecc732c207fa69890db87ac4b47da867b8 31-Aug-2004 Anthony Baxter <anthonybaxter@gmail.com> SF patch #1007189, multi-line imports, for instance:
"from blah import (foo, bar
baz, bongo)"
/external/python/cpython2/Lib/test/test_compile.py
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/Lib/test/test_compile.py
11a70c79b90d106bfe2b4db7039c4fa12f1fc145 17-Jul-2004 Raymond Hettinger <python@rcn.com> Upgrade None assignment SyntaxWarning to a SyntaxError.
/external/python/cpython2/Lib/test/test_compile.py
6c9e130524533263b690e86639a36b6f3e7a8eeb 30-Nov-2003 Guido van Rossum <guido@python.org> - Removed FutureWarnings related to hex/oct literals and conversions
and left shifts. (Thanks to Kalle Svensson for SF patch 849227.)
This addresses most of the remaining semantic changes promised by
PEP 237, except for repr() of a long, which still shows the trailing
'L'. The PEP appears to promise warnings for operations that
changed semantics compared to Python 2.3, but this is not
implemented; we've suffered through enough warnings related to
hex/oct literals and I think it's best to be silent now.
/external/python/cpython2/Lib/test/test_compile.py
8a99b5023931c5a01540bda67516235a8dfe8470 23-Jun-2003 Raymond Hettinger <python@rcn.com> SF patch #736962. Converted test_compile to unittest format.
/external/python/cpython2/Lib/test/test_compile.py
4327521688baf21f67b134a21cb6398d6b72967f 20-Jun-2003 Raymond Hettinger <python@rcn.com> Added regression test for SF #757818
/external/python/cpython2/Lib/test/test_compile.py
eb2a5ef36a790ccd3d6943cd75c81fc289fc55c6 18-Feb-2003 Neal Norwitz <nnorwitz@gmail.com> Fix SF bug #688424, 64-bit test problems
/external/python/cpython2/Lib/test/test_compile.py
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/Lib/test/test_compile.py
66b1259dbc2cf4aaefd779d76c4a83fe8003bafd 12-Feb-2003 Guido van Rossum <guido@python.org> SF #660455 : patch by NNorwitz.

"Unsigned" (i.e., positive-looking, but really negative) hex/oct
constants with a leading minus sign are once again properly negated.
The micro-optimization for negated numeric constants did the wrong
thing for such hex/oct constants. The patch avoids the optimization
for all hex/oct constants.

This needs to be backported to Python 2.2!
/external/python/cpython2/Lib/test/test_compile.py
fe8d84d5aea0f8ff9c27276473b1b8a1d69f5aeb 28-Jan-2003 Guido van Rossum <guido@python.org> Comment out a test that was anticipating SF patch 661536 -- but that
isn't checked in yet. :-(
/external/python/cpython2/Lib/test/test_compile.py
53b39d2e70768e34c3f01f0d6efbe76c9913d422 28-Jan-2003 Guido van Rossum <guido@python.org> Verify treatment of unary minus on negative numbers SF bug #660455.
/external/python/cpython2/Lib/test/test_compile.py
04f357cffef6d764f2f0ff2671dabde75ec250d1 23-Jul-2002 Barry Warsaw <barry@python.org> Get rid of relative imports in all unittests. Now anything that
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
/external/python/cpython2/Lib/test/test_compile.py
6b17abf6c0ddaed423a76e665124a80afbc39fe7 09-Jul-2002 Thomas Heller <theller@ctypes.org> Fix SF Bug 564931: compile() traceback must include filename.
/external/python/cpython2/Lib/test/test_compile.py
79b5b5b7fb914e49965f0b5369070826ecc4605a 13-Nov-2001 Jeremy Hylton <jeremy@alum.mit.edu> Don't munge __debug__ and leave it that way.
/external/python/cpython2/Lib/test/test_compile.py
778e26546284f956cbf8a85a8b7a0bf28c194410 09-Nov-2001 Jeremy Hylton <jeremy@alum.mit.edu> Fix SF buf #480096: Assign to __debug__ still allowed

Easy enough to catch assignment in the compiler. The perverse user
can still change the value of __debug__, but that may be the least he
can do.
/external/python/cpython2/Lib/test/test_compile.py
d507dab91f9790a24bd53d41d7fcf52fe89a6eff 30-Aug-2001 Tim Peters <tim.peters@gmail.com> SF patch #455966: Allow leading 0 in float/imag literals.
Consequences for Jython still unknown (but raised on Jython-Dev).
/external/python/cpython2/Lib/test/test_compile.py
9aa70d93aae89a9404a58f32f3fcd3c72b1ee56b 27-Aug-2001 Tim Peters <tim.peters@gmail.com> SF bug [#455775] float parsing discrepancy.
PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...).
/external/python/cpython2/Lib/test/test_compile.py
0009c4ea590b5bb4c00c33bc96dca47a42e720f1 21-Feb-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_compile.py
121b6eb018a839bfaf6af22ceb1a9793e62428df 20-Feb-2001 Jeremy Hylton <jeremy@alum.mit.edu> SF patch #103749: implicit tuple + default arg
/external/python/cpython2/Lib/test/test_compile.py
047e2c93e29ceaa9d321a6e81e6fa9db830173da 19-Jan-2001 Jeremy Hylton <jeremy@alum.mit.edu> add test for SyntaxError on
def f(a):
global a
/external/python/cpython2/Lib/test/test_compile.py
f785042433f0c43ed1ba2ba0388fc51d79bcf5c3 17-Jan-2001 Fredrik Lundh <fredrik@pythonware.com> a bold attempt to fix things broken by MAL's verify patch: import
'verify' iff it's used by a test module...
/external/python/cpython2/Lib/test/test_compile.py
3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e 17-Jan-2001 Marc-André Lemburg <mal@egenix.com> This patch removes all uses of "assert" in the regression test suite
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
/external/python/cpython2/Lib/test/test_compile.py
fdee0f0aa779fbe648cebe68878e9be5dc47e0bd 26-Jul-2000 Peter Schneider-Kamp <nowonder@nowonder.de> added test case for fixed duplicate arguments bug in Python/compile.c
/external/python/cpython2/Lib/test/test_compile.py