You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Remove Python2 buitin "print" from Python3's grammr. Start class tests
This commit is contained in:
2
test/simple_source/def/01_class.py
Normal file
2
test/simple_source/def/01_class.py
Normal file
@@ -0,0 +1,2 @@
|
||||
class A:
|
||||
pass
|
33
test/simple_source/def/10_class.py
Normal file
33
test/simple_source/def/10_class.py
Normal file
@@ -0,0 +1,33 @@
|
||||
class A:
|
||||
|
||||
class A1:
|
||||
def __init__(self):
|
||||
self.a1 = True
|
||||
|
||||
def foo(self):
|
||||
self.b = True
|
||||
|
||||
def __init__(self):
|
||||
self.a = True
|
||||
|
||||
def foo(self):
|
||||
self.fooed = True
|
||||
|
||||
|
||||
class B:
|
||||
def __init__(self):
|
||||
self.bed = True
|
||||
|
||||
def bar(self):
|
||||
self.barred = True
|
||||
|
||||
|
||||
class C(A,B):
|
||||
def foobar(self):
|
||||
self.foobared = True
|
||||
|
||||
|
||||
c = C()
|
||||
c.foo()
|
||||
c.bar()
|
||||
c.foobar()
|
Reference in New Issue
Block a user