__getattr__ arbitrary returns fix
This commit is contained in:
1 parent
45d3bbff0d
commit
d106b2ce2b
3 files changed
+13
-12
No files matched your search
@@ -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
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user