You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Python 3.5 abc.py bug distilled
This commit is contained in:
14
test/simple_source/def/05_abc_class.py
Normal file
14
test/simple_source/def/05_abc_class.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Python3.5 bug from abc.py:
|
||||
# stmt ::= LOAD_CLOSURE RETURN_VALUE RETURN_LAST
|
||||
#
|
||||
# And this gets ignored.
|
||||
|
||||
# Note this is similar to 06_classbug.py but not the same.
|
||||
# classmethod -> object
|
||||
|
||||
class abstractclassmethod(classmethod):
|
||||
__isabstractmethod__ = True
|
||||
|
||||
def __init__(self, callable):
|
||||
callable.__isabstractmethod__ = True
|
||||
super().__init__(callable)
|
@@ -5,6 +5,9 @@
|
||||
# LOAD_FAST '__locals__'
|
||||
# STORE_LOCALS ''
|
||||
|
||||
# Note this is similar to 05_abc_class.py but not the same:
|
||||
# object -> classmethod
|
||||
|
||||
class abstractclassmethod(object):
|
||||
"""A Python 3.2 STORE_LOCALS bug
|
||||
"""
|
||||
|
Reference in New Issue
Block a user