summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grammar.py
Commit message (Collapse)AuthorAgeFilesLines
* Update the code to better reflect recommended style:Fred Drake2000-12-121-10/+10
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-90/+90
|
* Added test cases for extended printing to an instance. This picked upBarry Warsaw2000-10-111-1/+9
| | | | a bug in JPython where the instance had to have a flush() method.
* This patch adds a new Python C API called PyString_AsStringAndSize()Marc-André Lemburg2000-09-191-0/+7
| | | | | | | | | | | | | 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.
* Added tests of "print >> None"Barry Warsaw2000-08-291-0/+25
|
* require list comprehensions to start with a for clauseSkip Montanaro2000-08-221-0/+6
|
* PEP 214, Extended print Statement, has been accepted by the BDFL.Barry Warsaw2000-08-211-0/+19
| | | | Additional test cases for the extended print form.
* list comprehensions. seeSkip Montanaro2000-08-121-0/+40
| | | | | | http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470 for details.
* add test cases for Greg Ewing's extended call syntax patchJeremy Hylton2000-03-281-2/+33
|
* No need to define assert, it's built in.Guido van Rossum1997-04-161-2/+2
|
* avoid math, don't abort when overflow check failsGuido van Rossum1995-03-041-3/+4
|
* Fix exec test so presence of __builtins__ doesn't break itGuido van Rossum1995-01-101-0/+3
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-17/+103
|
* Some minute changes.Guido van Rossum1993-12-291-3/+21
|
* * test_select.py: (some) tests for built-in select moduleGuido van Rossum1993-11-111-0/+16
| | | | | | * test_grammar.py, testall.out: added test for funny things in string literals * token.py, symbol.py: definitions used with built-in parser module. * tokenize.py: added double-quote recognition
* * string.py: added rindex(), rfind(); changed index() to interpretGuido van Rossum1993-11-081-10/+13
| | | | | | | | | | | negative start indices starting from the right. * ftplib.py: debug() -> set_debuglevel(); change demo to use __init__(). * os.py: added execl, execlp, and execvp. * lambda.py: removed (now that we have built-in map, reduce, bagof, lambda) * test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce * commands.py: use os, not posix * test_grammar.py: make it easy to disable non-portable int overflow tests * dis.py: don't abuse range()
* added builtin b/w compat module.Guido van Rossum1993-10-221-1/+20
| | | | changed testing of exec.
* Added some new tests and two new files for testing: test_types.pyGuido van Rossum1992-11-271-6/+33
| | | | | (testing operations on built-in types) and autotest.py (automatic regression testing).
* '+' no longer accepted for varargs listGuido van Rossum1992-04-031-1/+1
|
* Some weird forms of try statements are no longer allowed.Guido van Rossum1992-03-311-5/+1
|
* Initial revisionGuido van Rossum1992-01-271-0/+344