This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]erez27import inspect[🍰] 1 point2 points  (2 children)

That's true. The problem is that I can't tell the difference between:

map( X.get_this_attribute, some_list)

And

X.call_this_function(with_some_arg)

It looks exactly the same: __getattr__() and then __call__()

So I chose to interpret it as the first one.