Remove Python2 buitin "print" from Python3's grammr. Start class tests

This commit is contained in:
rocky
2015-12-22 05:50:00 -05:00
parent 217b1b6f54
commit 41cceb5931
5 changed files with 75 additions and 27 deletions

View File

@@ -0,0 +1,2 @@
class A:
pass

View 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()