class assignments for statements is working now (oh gosh, this commit must be so non-readable for everyone except me...)

This commit is contained in:
David Halter
2012-07-17 16:35:55 +02:00
parent 1f9e3190bf
commit cc2f616c7e
2 changed files with 23 additions and 14 deletions

View File

@@ -160,16 +160,16 @@ class B():
pass
def t(self):
return ''
##p = property(t)
p = property(t)
#? []
B().r()
#? int()
B().r
##? str()
#? str()
B().p
##? []
#? []
B().p()
# -----------------
@@ -177,16 +177,23 @@ B().p()
# -----------------
class V:
def __init__(self):
self.a = 1
def __init__(self, a):
self.a = a
def ret(self):
return self.a
d = b
b = ret
c = b
#? int()
V(1).b()
#? int()
V(1).c()
#? []
V(1).d()
##? int()
V().b()
# -----------------
# ordering