1
0
forked from VimPlug/jedi

property recursion tests

This commit is contained in:
David Halter
2012-08-21 12:19:18 +02:00
parent f52fea984d
commit 528b978ca5

View File

@@ -312,8 +312,23 @@ class PropClass():
@property
def nested(self):
""" causes recusions in properties, should work """
return self.ret
@property
def nested2(self):
""" causes recusions in properties, should not work """
return self.nested2
@property
def join1(self):
""" mutual recusion """
return self.join2
@property
def join2(self):
""" mutual recusion """
return self.join1
#? str()
PropClass("").ret
@@ -330,6 +345,13 @@ PropClass(1).nested
#? []
PropClass().nested.
#?
PropClass(1).nested2
#? []
PropClass().nested2.
#?
PropClass(1).join1
# -----------------
# staticmethod/classmethod
# -----------------