Skip to content

Commit

Permalink
extended class5 into another test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neppord committed Mar 1, 2011
1 parent d7ddf7b commit 31c1742
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/basic/class6.py
@@ -0,0 +1,14 @@
def create(cls):
return cls()

class A:
def __init__(self):
self.msg = "A.m()"
def m(self):
print self.msg

a = A()
a.m()

b = create(A)
b.m()

0 comments on commit 31c1742

Please sign in to comment.