mirror of
https://github.com/python/cpython.git
synced 2024-12-16 13:25:18 +08:00
590baa4a7a
* 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.
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
#define single_input 256
|
|
#define file_input 257
|
|
#define eval_input 258
|
|
#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
|
|
#define testlist 305
|
|
#define dictmaker 306
|
|
#define classdef 307
|