__getattr__ arbitrary returns fix

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

No files matched your search

+8
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
# -----------------