You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Python 3 genexpr bug
This commit is contained in:
11
test/simple_source/expression/10_genexpr.py
Normal file
11
test/simple_source/expression/10_genexpr.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# From Python 3.4 calendar
|
||||
|
||||
# load_closure ::= LOAD_CLOSURE
|
||||
# load_closure ::= load_closure LOAD_CLOSURE
|
||||
# expr ::= LOAD_GLOBAL
|
||||
# get_iter ::= expr GET_ITER
|
||||
# genexpr ::= load_closure LOAD_GENEXPR LOAD_CONST MAKE_CLOSURE_0 expr GET_ITER CALL_FUNCTION_
|
||||
def formatyear(self, theyear, m=3):
|
||||
for (i, row) in enumerate(self.yeardays2calendar(theyear, m)):
|
||||
names = (self.formatmonthname(theyear, k, colwidth, False)
|
||||
for k in months)
|
Reference in New Issue
Block a user