Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use assert[Not]IsInstance where appropriate | Ezio Melotti | 2010-01-24 | 1 | -3/+3 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -12/+12 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -5/+1 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -1/+5 |
| | | | | Patch by flox | ||||
* | fix several compile() issues by translating newlines in the tokenizer | Benjamin Peterson | 2009-11-12 | 1 | -0/+13 |
| | |||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -5/+5 |
| | |||||
* | allow importing from a module named None if it has an 'as' clause | Benjamin Peterson | 2009-06-13 | 1 | -0/+2 |
| | |||||
* | prevent import statements from assigning to None | Benjamin Peterson | 2009-06-13 | 1 | -0/+6 |
| | |||||
* | Issue #3360: Fix incorrect parsing of "020000000000.0". | Mark Dickinson | 2008-07-16 | 1 | -0/+4 |
| | |||||
* | Issue2681: the literal 0o8 was wrongly accepted, and evaluated as float(0.0). | Amaury Forgeot d'Arc | 2008-04-24 | 1 | -1/+1 |
| | | | | | This happened only when 8 is the first digit. Credits go to Lukas Meuser. | ||||
* | Properly check for consistency with the third argument of | Georg Brandl | 2008-03-29 | 1 | -0/+14 |
| | | | | compile() when compiling an AST node. | ||||
* | Patch #1810 by Thomas Lee, reviewed by myself: | Georg Brandl | 2008-03-28 | 1 | -0/+27 |
| | | | | | allow compiling Python AST objects into code objects in compile(). | ||||
* | Finished backporting PEP 3127, Integer Literal Support and Syntax. | Eric Smith | 2008-03-17 | 1 | -1/+7 |
| | | | | | | | | 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 | ||||
* | Disallow function calls like foo(None=1). | Georg Brandl | 2007-06-07 | 1 | -0/+3 |
| | | | | Backport from py3k rev. 55708 by Guido. | ||||
* | Fix long-standing bug in name mangling for package imports | Jeremy Hylton | 2007-02-27 | 1 | -0/+13 |
| | | | | Reported by Mike Verdone. | ||||
* | Remove an unneeded import of 'warnings'. | Brett Cannon | 2006-12-13 | 1 | -1/+0 |
| | |||||
* | Bug #1512814, Fix incorrect lineno's when code at module scope | Neal Norwitz | 2006-07-10 | 1 | -0/+10 |
| | | | | started after line 256. | ||||
* | On 64 bit systems, int literals that use less than 64 bits are now ints | Neal Norwitz | 2006-07-09 | 1 | -0/+15 |
| | | | | rather than longs. This also fixes the test for eval(-sys.maxint - 1). | ||||
* | Fix SF bug 1441486: bad unary minus folding in compiler. | Neil Schemenauer | 2006-07-09 | 1 | -0/+4 |
| | |||||
* | Add an additional test for bug #1519018. | Georg Brandl | 2006-07-08 | 1 | -0/+2 |
| | |||||
* | Fix SF bug #1519018: 'as' is now validated properly in import statements | Neal Norwitz | 2006-07-08 | 1 | -0/+4 |
| | |||||
* | Forward port MvL's fix in 43227: | Neal Norwitz | 2006-03-23 | 1 | -0/+4 |
| | | | | | Fix crash when a Unicode string containing an encoding declaration is compile()d. Fixes #1115379. | ||||
* | Fix SF bug #1448804 and ad a test to ensure that all subscript operations ↵ | Nick Coghlan | 2006-03-13 | 1 | -0/+72 |
| | | | | continue to be handled correctly | ||||
* | Fix problem handling EXTENDED_ARGs from SF bug # 1333982 | Neal Norwitz | 2005-10-24 | 1 | -0/+23 |
| | |||||
* | SF bug #1048870: call arg of lambda not updating | Raymond Hettinger | 2004-10-24 | 1 | -0/+9 |
| | |||||
* | SF patch #1007189, multi-line imports, for instance: | Anthony Baxter | 2004-08-31 | 1 | -0/+41 |
| | | | | | "from blah import (foo, bar baz, bongo)" | ||||
* | Completed the patch for Bug #215126. | Raymond Hettinger | 2004-08-02 | 1 | -0/+57 |
| | | | | | | | * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests. | ||||
* | Upgrade None assignment SyntaxWarning to a SyntaxError. | Raymond Hettinger | 2004-07-17 | 1 | -0/+15 |
| | |||||
* | - Removed FutureWarnings related to hex/oct literals and conversions | Guido van Rossum | 2003-11-29 | 1 | -8/+11 |
| | | | | | | | | | | 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. | ||||
* | SF patch #736962. Converted test_compile to unittest format. | Raymond Hettinger | 2003-06-23 | 1 | -160/+140 |
| | |||||
* | Added regression test for SF #757818 | Raymond Hettinger | 2003-06-20 | 1 | -0/+5 |
| | |||||
* | Fix SF bug #688424, 64-bit test problems | Neal Norwitz | 2003-02-18 | 1 | -2/+7 |
| | |||||
* | - Finally fixed the bug in compile() and exec where a string ending | Guido van Rossum | 2003-02-13 | 1 | -0/+9 |
| | | | | | | | | | 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.) | ||||
* | SF #660455 : patch by NNorwitz. | Guido van Rossum | 2003-02-12 | 1 | -6/+9 |
| | | | | | | | | | | "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! | ||||
* | Comment out a test that was anticipating SF patch 661536 -- but that | Guido van Rossum | 2003-01-28 | 1 | -6/+6 |
| | | | | isn't checked in yet. :-( | ||||
* | Verify treatment of unary minus on negative numbers SF bug #660455. | Guido van Rossum | 2003-01-28 | 1 | -0/+7 |
| | |||||
* | Get rid of relative imports in all unittests. Now anything that | Barry Warsaw | 2002-07-23 | 1 | -1/+1 |
| | | | | | | | | | | | 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. :) | ||||
* | Fix SF Bug 564931: compile() traceback must include filename. | Thomas Heller | 2002-07-09 | 1 | -0/+9 |
| | |||||
* | Don't munge __debug__ and leave it that way. | Jeremy Hylton | 2001-11-13 | 1 | -0/+2 |
| | |||||
* | Fix SF buf #480096: Assign to __debug__ still allowed | Jeremy Hylton | 2001-11-09 | 1 | -1/+13 |
| | | | | | | 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. | ||||
* | SF patch #455966: Allow leading 0 in float/imag literals. | Tim Peters | 2001-08-30 | 1 | -0/+44 |
| | | | | Consequences for Jython still unknown (but raised on Jython-Dev). | ||||
* | SF bug [#455775] float parsing discrepancy. | Tim Peters | 2001-08-27 | 1 | -0/+15 |
| | | | | PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...). | ||||
* | Whitespace normalization. | Tim Peters | 2001-02-21 | 1 | -1/+1 |
| | |||||
* | SF patch #103749: implicit tuple + default arg | Jeremy Hylton | 2001-02-19 | 1 | -3/+33 |
| | |||||
* | add test for SyntaxError on | Jeremy Hylton | 2001-01-19 | 1 | -1/+7 |
| | | | | | def f(a): global a | ||||
* | a bold attempt to fix things broken by MAL's verify patch: import | Fredrik Lundh | 2001-01-17 | 1 | -1/+1 |
| | | | | 'verify' iff it's used by a test module... | ||||
* | This patch removes all uses of "assert" in the regression test suite | Marc-André Lemburg | 2001-01-17 | 1 | -1/+1 |
| | | | | | | | 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. | ||||
* | added test case for fixed duplicate arguments bug in Python/compile.c | Peter Schneider-Kamp | 2000-07-25 | 1 | -0/+16 |