On 04/18, Ionel Cristian Mărieș wrote:
> Also there's the issue about not being able to implement a true proxy (as
> outlined before).
Proxies are a bit of a pain. But you can create your own callable function.
Something like (untested):
def callable(obj):
try:
func = obj.__call__
return True
except AttributeError:
return False
--
~Ethan~
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/