Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #9125: Update parser module for "except ... as ..." syntax. | Mark Dickinson | 2010-06-30 | 1 | -0/+6 |
| | |||||
* | Remove unused imports in test modules. | Georg Brandl | 2010-02-07 | 1 | -1/+0 |
| | |||||
* | use assert[Not]IsInstance where appropriate | Ezio Melotti | 2010-01-24 | 1 | -1/+1 |
| | |||||
* | Issue #2333: Backport set and dict comprehensions syntax. | Alexandre Vassalotti | 2010-01-11 | 1 | -0/+12 |
| | |||||
* | Issue #2335: Backport set literals syntax from Python 3.x. | Alexandre Vassalotti | 2010-01-09 | 1 | -0/+13 |
| | |||||
* | fix test_parser from tokenizer tweak | Benjamin Peterson | 2009-12-06 | 1 | -4/+4 |
| | |||||
* | fix several compile() issues by translating newlines in the tokenizer | Benjamin Peterson | 2009-11-12 | 1 | -3/+3 |
| | |||||
* | Allow multiple context managers in one with statement, as proposed | Georg Brandl | 2009-05-25 | 1 | -0/+1 |
| | | | | | | | in http://codereview.appspot.com/53094 and accepted by Guido. The construct is transformed into multiple With AST nodes so that there should be no problems with the semantics. | ||||
* | #4529: fix parser's validation for try-except-finally statements. | Georg Brandl | 2008-12-05 | 1 | -0/+10 |
| | |||||
* | #4396 make the parser module correctly validate the with syntax | Benjamin Peterson | 2008-11-24 | 1 | -0/+4 |
| | |||||
* | #4048 make the parser module accept relative imports as valid | Benjamin Peterson | 2008-11-03 | 1 | -0/+2 |
| | |||||
* | make sure the parser flags and passed onto the compiler | Benjamin Peterson | 2008-10-31 | 1 | -0/+9 |
| | | | | | This fixes "from __future__ import unicode_literals" in an exec statment See #4225 | ||||
* | check that the parser module can handle the new keyword syntax | Benjamin Peterson | 2008-08-19 | 1 | -0/+1 |
| | |||||
* | Note that the stderr output of the test is intentional. | Martin v. Löwis | 2008-03-18 | 1 | -0/+2 |
| | |||||
* | Issue 1881. Increased the stack limit from 500 to 1500. Also added | Facundo Batista | 2008-02-23 | 1 | -0/+17 |
| | | | | | | a test for this (and because of this test you'll see in stderr a message that parser.c sends before raising MemoryError). Thanks Ralf Schmitt. | ||||
* | SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors. | Guido van Rossum | 2007-07-18 | 1 | -0/+6 |
| | | | | (Slightly tweaked for style and refcounts.) | ||||
* | Whitespace normalization. | Tim Peters | 2006-08-25 | 1 | -1/+1 |
| | |||||
* | Expose column offset information in parse trees. | Jeremy Hylton | 2006-08-22 | 1 | -0/+38 |
| | |||||
* | Add another little test to make sure we roundtrip multiple list comp ifs ok. | Neal Norwitz | 2006-04-12 | 1 | -0/+4 |
| | | | | Add tests for generator expressions too. | ||||
* | Merge ast-branch to head | Jeremy Hylton | 2005-10-20 | 1 | -1/+23 |
| | | | | | | | | | | 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. | ||||
* | PEP 342 implementation. Per Guido's comments, the generator throw() | Phillip J. Eby | 2005-08-02 | 1 | -0/+11 |
| | | | | | method still needs to support string exceptions, and allow None for the third argument. Documentation updates are needed, too. | ||||
* | Whitespace normalization. | Tim Peters | 2005-04-20 | 1 | -1/+1 |
| | |||||
* | Flush out support for ``class B(): pass`` syntax by adding support to the | Brett Cannon | 2005-04-09 | 1 | -0/+3 |
| | | | | | | 'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix. | ||||
* | SF patch #1007189, multi-line imports, for instance: | Anthony Baxter | 2004-08-31 | 1 | -0/+14 |
| | | | | | "from blah import (foo, bar baz, bongo)" | ||||
* | PEP-0318, @decorator-style. In Guido's words: | Anthony Baxter | 2004-08-02 | 1 | -2/+10 |
| | | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728. | ||||
* | SF patch #872326: Generator expression implementation | Raymond Hettinger | 2004-05-19 | 1 | -0/+2 |
| | | | | | | | | | | | | | | (Code contributed by Jiwon Seo.) The documentation portion of the patch is being re-worked and will be checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's rationale for the design decisions on binding behavior (as described in in his patch comments and in discussions on python-dev). The test file, test_genexps.py, is written in doctest format and is meant to exercise all aspects of the the patch. Further additions are welcome from everyone. Please stress test this new feature as much as possible before the alpha release. | ||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -5/+4 |
| | | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807. | ||||
* | Whitespace normalization. | Tim Peters | 2003-02-19 | 1 | -1/+1 |
| | |||||
* | Add tests and news entry about parser errors from bug #678518. | Neal Norwitz | 2003-02-10 | 1 | -0/+17 |
| | |||||
* | Teach the parsermodule about floor division. Fixes | Michael W. Hudson | 2003-01-29 | 1 | -0/+5 |
| | | | | | | [ 676521 ] parser module validation failure bugfix candidate. | ||||
* | Standardize behavior: no docstrings in test functions. | Guido van Rossum | 2002-08-22 | 1 | -5/+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. :) | ||||
* | Remove some now-obsolete generator future statements. | Tim Peters | 2002-04-01 | 1 | -8/+4 |
| | | | | | I left the email pkg alone; I'm not sure how Barry would like to handle that. | ||||
* | Change the PyUnit-based tests to use the test_main() approach. This | Fred Drake | 2001-09-20 | 1 | -2/+10 |
| | | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves. | ||||
* | Use the "st" versions of the "ast" calls in the parser module -- there is | Fred Drake | 2001-07-17 | 1 | -2/+2 |
| | | | | no reason to pretend the syntax trees we're dealing with are abstract. | ||||
* | Added tests for the new yield support in the parser module. | Fred Drake | 2001-07-17 | 1 | -1/+132 |
| | | | | (Should be merged with descr branch.) | ||||
* | Convert the parser module test to use PyUnit. | Fred Drake | 2001-06-04 | 1 | -208/+212 |
| | |||||
* | 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. | ||||
* | Add more regression tests, including for the import statement variations. | Fred Drake | 2001-01-07 | 1 | -10/+35 |
| | | | | | These will detect regression on SF bug #127271 and other import statement bugs. | ||||
* | Added tests to avoid regression on bug #125375. | Fred Drake | 2000-12-11 | 1 | -1/+20 |
| | | | | | | | | roundtrip(): Show the offending syntax tree when things break; this makes it a little easier to debug the module by adding test cases. (Still need better tests for this module, but there's not enough time today.) | ||||
* | Update the parser module to support augmented assignment. | Fred Drake | 2000-08-25 | 1 | -22/+84 |
| | | | | Add some test cases. | ||||
* | Add a minimal test suite for the parser module. | Fred Drake | 2000-08-21 | 1 | -0/+116 |