Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

> >> Why should ``all()`` special case ``range``? Apart from showing off 
> >> benchmarks, what's the point?
> 
> Mostly to avoid silly mistakes

What sort of silly mistakes?

> and the overhead of doing it would be very small, so a very small trade-off.

Its not just the overhead, its the coupling between two chunks of code 
which should be independent.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37131>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to