__getattr__ arbitrary returns fix

This commit is contained in:
Dave Halter
2014-04-27 23:15:32 +02:00
parent 45d3bbff0d
commit d106b2ce2b
3 changed files with 13 additions and 12 deletions

View File

@@ -356,6 +356,14 @@ Wrapper(Base()).ret(3)
#? int()
Wrapper2(Base()).ret(3)
class GetattrArray():
def __getattr__(self, name):
return [1]
#? int()
GetattrArray().something[0]
# -----------------
# private vars
# -----------------