properties work now also with initialization values of classes

This commit is contained in:
David Halter committed 2012-07-10 17:52:46 +02:00
1 parent e4739fddf9
commit 53358b28d3
5 files changed
+26 -9

No files matched your search

+17
View File
@@ -66,6 +66,23 @@ nothing("")[0]
#? str()
nothing("")[1]
# -----------------
# properties
# -----------------
class PropClass():
def __init__(self, a):
self.a = a
@property
def ret(self):
return self.a
#? str()
PropClass("").ret
#? []
PropClass().ret.
# -----------------
# not found decorators
# -----------------