
Jan. 2, 2014
4:49 p.m.
By designing an API that doesn't require such overloading. On Thursday, January 2, 2014, Alexander Heger wrote:
isinstance(x, Iterable) and not isinstance(x, str)
If you find yourself typing that a lot I think you have a bigger problem though.
How do you replace this? _______________________________________________ Python-ideas mailing list Python-ideas@python.org <javascript:;> https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido van Rossum (on iPad)