summaryrefslogtreecommitdiff
path: root/Python/graminit.c
AgeCommit message (Collapse)AuthorLines
1995-01-07Grammar changedGuido van Rossum-462/+476
1994-08-30Merge back to main trunkGuido van Rossum-78/+94
1993-11-30change syntactical position of lambdef (was an atom, now is a test)Guido van Rossum-73/+81
1993-11-30* import.c (get_module): pass .py filename to parse_file, not .pyc filename!Guido van Rossum-624/+626
* funcobject.c (func_repr): don't call getstringvalue(None) for anonymous functions. * bltinmodule.c: removed lambda (which is now a built-in function); removed implied lambda for string arg to filter/map/reduce. * Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in function by lambda as grammar entity: instead of "lambda('x: x+1')" you write "lambda x: x+1". * Xtmodule.c (checkargdict): return 0, not NULL, for error.
1993-10-27Committing the correct graminit.c; also changed confusing comments in Grammar.Guido van Rossum-714/+697
1993-10-26* compile.[ch]: support for lambda()Guido van Rossum-675/+701
* PROTO.h, mymalloc.h: added #ifdefs for TURBOC and GNUC. * allobjects.h: added #include "rangeobject.h" * Grammar: added lambda_input; relaxed syntax for exec. * bltinmodule.c: added bagof, map, reduce, lambda, xrange. * tupleobject.[ch]: added resizetuple(). * rangeobject.[ch]: new object type to speed up range operations (not convinced this is needed!!!)
1993-10-18* bltinmodule.c: removed exec() built-in function.Guido van Rossum-395/+432
* Grammar: add exec statement; allow testlist in expr statement. * ceval.c, compile.c, opcode.h: support exec statement; avoid optimizing locals when it is used * fileobject.{c,h}: add getfilename() internal function.
1993-06-17* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum-16/+25
Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
1993-05-19Several changes in one:Guido van Rossum-488/+486
(1) dictionaries/mappings now have attributes values() and items() as well as keys(); at the C level, use the new function mappinggetnext() to iterate over a dictionary. (2) "class C(): ..." is now illegal; you must write "class C: ...". (3) Class objects now know their own name (finally!); and minor improvements to the way how classes, functions and methods are represented as strings. (4) Added an "access" statement and semantics. (This is still experimental -- as long as you don't use the keyword 'access' nothing should be changed.)
1992-04-06Latest gramamrGuido van Rossum-132/+130
1992-03-31tightened try statement syntaxGuido van Rossum-10/+22
1992-03-24*** empty log message ***Guido van Rossum-601/+699
1991-07-27New grammar (semicolons, continue, no multiple NEWLINES)Guido van Rossum-537/+576
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20"Compiling" versionGuido van Rossum-1/+1
1990-10-26removed dir statement. Function arguments may now be tests.Guido van Rossum-484/+460
1990-10-14Initial revisionGuido van Rossum-0/+1094