mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
354433a59d
(Code contributed by Jiwon Seo.) The documentation portion of the patch is being re-worked and will be checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's rationale for the design decisions on binding behavior (as described in in his patch comments and in discussions on python-dev). The test file, test_genexps.py, is written in doctest format and is meant to exercise all aspects of the the patch. Further additions are welcome from everyone. Please stress test this new feature as much as possible before the alpha release.
73 lines
1.5 KiB
C
73 lines
1.5 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 augassign 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 yield_stmt 276
|
|
#define raise_stmt 277
|
|
#define import_stmt 278
|
|
#define import_as_name 279
|
|
#define dotted_as_name 280
|
|
#define dotted_name 281
|
|
#define global_stmt 282
|
|
#define exec_stmt 283
|
|
#define assert_stmt 284
|
|
#define compound_stmt 285
|
|
#define if_stmt 286
|
|
#define while_stmt 287
|
|
#define for_stmt 288
|
|
#define try_stmt 289
|
|
#define except_clause 290
|
|
#define suite 291
|
|
#define test 292
|
|
#define and_test 293
|
|
#define not_test 294
|
|
#define comparison 295
|
|
#define comp_op 296
|
|
#define expr 297
|
|
#define xor_expr 298
|
|
#define and_expr 299
|
|
#define shift_expr 300
|
|
#define arith_expr 301
|
|
#define term 302
|
|
#define factor 303
|
|
#define power 304
|
|
#define atom 305
|
|
#define listmaker 306
|
|
#define testlist_gexp 307
|
|
#define lambdef 308
|
|
#define trailer 309
|
|
#define subscriptlist 310
|
|
#define subscript 311
|
|
#define sliceop 312
|
|
#define exprlist 313
|
|
#define testlist 314
|
|
#define testlist_safe 315
|
|
#define dictmaker 316
|
|
#define classdef 317
|
|
#define arglist 318
|
|
#define argument 319
|
|
#define list_iter 320
|
|
#define list_for 321
|
|
#define list_if 322
|
|
#define gen_iter 323
|
|
#define gen_for 324
|
|
#define gen_if 325
|
|
#define testlist1 326
|
|
#define encoding_decl 327
|