summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-11-30 13:40:46 (GMT)
committerGuido van Rossum <guido@python.org>1993-11-30 13:40:46 (GMT)
commit590baa4a7a43b596119b47f605e3e570c2b3b0ee (patch)
tree767cbcf90f5b53bf63be9c2ea9a8081551120f10 /Include
parent8732d6aeea250f23af50b772d710109c9ee3bc00 (diff)
downloadcpython-590baa4a7a43b596119b47f605e3e570c2b3b0ee.zip
cpython-590baa4a7a43b596119b47f605e3e570c2b3b0ee.tar.gz
cpython-590baa4a7a43b596119b47f605e3e570c2b3b0ee.tar.bz2
* import.c (get_module): pass .py filename to parse_file, not .pyc filename!
* 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.
Diffstat (limited to 'Include')
-rw-r--r--Include/compile.h4
-rw-r--r--Include/graminit.h86
2 files changed, 44 insertions, 46 deletions
diff --git a/Include/compile.h b/Include/compile.h
index 2b0b29e..a23fea1 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -54,12 +54,10 @@ extern typeobject Codetype;
/* Public interface */
struct _node; /* Declare the existence of this type */
-codeobject *_compile PROTO((struct _node *, char *, int));
+codeobject *compile PROTO((struct _node *, char *));
codeobject *newcodeobject
PROTO((object *, object *, object *, object *, object *));
-#define compile(n,f) (_compile((n),(f),0))
-
#ifdef __cplusplus
}
#endif
diff --git a/Include/graminit.h b/Include/graminit.h
index 735838c..da87073 100644
--- a/Include/graminit.h
+++ b/Include/graminit.h
@@ -1,49 +1,49 @@
#define single_input 256
#define file_input 257
#define eval_input 258
-#define lambda_input 259
-#define funcdef 260
-#define parameters 261
-#define varargslist 262
-#define fpdef 263
-#define fplist 264
-#define stmt 265
-#define simple_stmt 266
-#define small_stmt 267
-#define expr_stmt 268
-#define print_stmt 269
-#define del_stmt 270
-#define pass_stmt 271
-#define flow_stmt 272
-#define break_stmt 273
-#define continue_stmt 274
-#define return_stmt 275
-#define raise_stmt 276
-#define import_stmt 277
-#define global_stmt 278
-#define access_stmt 279
-#define accesstype 280
-#define exec_stmt 281
-#define compound_stmt 282
-#define if_stmt 283
-#define while_stmt 284
-#define for_stmt 285
-#define try_stmt 286
-#define except_clause 287
-#define suite 288
-#define test 289
-#define and_test 290
-#define not_test 291
-#define comparison 292
-#define comp_op 293
-#define expr 294
-#define xor_expr 295
-#define and_expr 296
-#define shift_expr 297
-#define arith_expr 298
-#define term 299
-#define factor 300
-#define atom 301
+#define funcdef 259
+#define parameters 260
+#define varargslist 261
+#define fpdef 262
+#define fplist 263
+#define stmt 264
+#define simple_stmt 265
+#define small_stmt 266
+#define expr_stmt 267
+#define print_stmt 268
+#define del_stmt 269
+#define pass_stmt 270
+#define flow_stmt 271
+#define break_stmt 272
+#define continue_stmt 273
+#define return_stmt 274
+#define raise_stmt 275
+#define import_stmt 276
+#define global_stmt 277
+#define access_stmt 278
+#define accesstype 279
+#define exec_stmt 280
+#define compound_stmt 281
+#define if_stmt 282
+#define while_stmt 283
+#define for_stmt 284
+#define try_stmt 285
+#define except_clause 286
+#define suite 287
+#define test 288
+#define and_test 289
+#define not_test 290
+#define comparison 291
+#define comp_op 292
+#define expr 293
+#define xor_expr 294
+#define and_expr 295
+#define shift_expr 296
+#define arith_expr 297
+#define term 298
+#define factor 299
+#define atom 300
+#define lambdef 301
#define trailer 302
#define subscript 303
#define exprlist 304