PEP 284, Integer for-loops
David Eppstein
eppstein at ics.uci.edu
Thu Mar 7 16:47:49 EST 2002
In article <3c87d103.26130283 at news.laplaza.org>,
mats at laplaza.org (Mats Wichmann) wrote:
> If you'e going on to teach Python, you'd tell 'em those can of course
> be combined.
I don't want to teach Python. I want to teach other stuff. Python is
close to an ideal language for this purpose: easy to just start using
without spending a lot of time teaching it, easy to express algorithms
as actual debugged working code without all the overhead of C/C++/Java
(the other logical choices of languages, that the students already
know). But there are a few warts in the design, where instead of just
using Python I have to stop and explain some unnatural unintuitive
syntax. Multi-parameter range() is one of those warts.
More information about the Python-list
mailing list