On 02/05/2015 22:40, Jon Ribbens wrote:
On 2015-05-02, BartC <b...@freeuk.com> wrote:
So do I, I think, if no-one is willing to admit that the original way of
implementing range() was a glaring mistake.
I think the issue is that nobody else here thinks the "original way"
of iterating was to use range(), for anything other than extremely
small ranges.
For information, it looks like xrange() was added on 26 Oct 1993,
which pre-dates Python 1.0.
No chance, or so I thought, but to save others from looking it up
https://hg.python.org/cpython/annotate/89e1e5d9ccbf/Python/bltinmodule.c
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list