summaryrefslogtreecommitdiffstats
path: root/Lib/test/output/test_grammar
Commit message (Collapse)AuthorAgeFilesLines
* Fix for SF [ 734869 ] Lambda functions in list comprehensionsJeremy Hylton2003-05-211-0/+1
| | | | | | The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module. Repair by move tmpname into the symtable entry. Bugfix candidate.
* Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum2002-04-031-1/+1
| | | | | | | | | | | | | 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.
* Test case for SF bugs #463359 and #462937, added to test_grammar for lack ofThomas Wouters2001-09-261-0/+1
| | | | | a better place. Excessively fragile code, but at least it breaks when something in this area changes!
* Add test for a list comprehension that is nested in the left-hand partJeremy Hylton2001-03-191-0/+1
| | | | | | | | | of another list comp. This caused crashes reported as SF bugs 409230 and 407800. Note that the new tests are in a function so that the name lookup code isn't affected by how many *other* list comprehensions are in the same scope.
* Add simple section for assert, including assert w/ lambdasJeremy Hylton2001-02-191-0/+1
|
* Add test for syntax error on "x = 1 + 1".Jeremy Hylton2001-02-191-5/+0
| | | | Move check_syntax() function into test_support.
* update test cases for recent compiler changes: exec/import * in nestedJeremy Hylton2001-02-091-1/+0
| | | | functinos and cell vars with */** parameters
* Allow 'continue' inside 'try' clauseJeremy Hylton2001-02-011-0/+2
| | | | SF patch 102989 by Thomas Wouters
* Undo recent change that banned using import to bind a global, as perJeremy Hylton2001-02-011-1/+0
| | | | | | | | | | | discussion on python-dev. 'from mod import *' is still banned except at the module level. Fix value for special NOOPT entry in symtable. Initialze to 0 instead of None, so that later uses of PyInt_AS_LONG() are valid. (Bug reported by Donn Cave.) replace local REPR macros with PyObject_REPR in object.h
* add test for illegal importsJeremy Hylton2001-01-301-0/+2
|
* PEP 227 implementationJeremy Hylton2001-01-251-0/+2
| | | | | test_new: new.code() noew takes two more arguments test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
* add extra tests to verify that co_varnames is being set up properlyJeremy Hylton2001-01-251-2/+4
| | | | | also normalize checks for syntax errors and delete commented out definition of verify.
* Add simple test of list comprehension that uses a name that isn'tJeremy Hylton2001-01-231-0/+1
| | | | | otherwise used in the same code block. (Not sure this is the right place, but there is no test_list_comprehensions.py.)
* Added tests of "print >> None"Barry Warsaw2000-08-291-0/+1
|
* require list comprehensions to start with a for clauseSkip Montanaro2000-08-221-0/+1
|
* PEP 214, Extended print Statement, has been accepted by the BDFL.Barry Warsaw2000-08-211-0/+4
| | | | Additional test cases for the extended print form.
* list comprehensions. seeSkip Montanaro2000-08-121-0/+7
| | | | | | http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470 for details.
* fix previous checkinJeremy Hylton2000-03-281-23/+0
|
* add test cases for Greg Ewing's extended call syntax patchJeremy Hylton2000-03-281-0/+24
|
* Test output files in their new locationBarry Warsaw1996-12-101-0/+46