[Python-ideas] Introduce collections.Reiterable
Antoine Pitrou
solipsis at pitrou.net
Sat Sep 21 07:37:11 CEST 2013
On Sat, 21 Sep 2013 15:04:30 +1000
Ben Finney <ben+python at benfinney.id.au> wrote:
> Neil Girdhar <mistersheik at gmail.com>
> writes:
>
> > I check for callable when accepting callbacks because I will call them
> > much later and raising the error then is harder to track down.
>
> Why is it harder to track down? That sounds like the problem to be
> fixed.
Well, there is no need to try and rehash this mantra. callable() was
revived for a reason.
I will suggest anyone wanting a LBYL vs. EAFP discussion to go discuss
it on python-list, really ;-) python-ideas is not the place for the same
old platonic language design discussions that everyone's been having for
10+ years.
Regards
Antoine.
More information about the Python-ideas
mailing list