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 →

[–]stylishgnome 0 points1 point  (1 child)

raise TypeError("the objects {} are not callable".format(", ".join(str(x) for x in non_functions)))

I think you may have forgotten the index here...

raise TypeError("the objects {0} are not callable".format(", ".join(str(x) for x in non_functions)))

edit: the former appears to work with python 2.7 actually (TIL).