Favorite non-python language trick?

John Machin sjmachin at lexicon.net
Fri Jun 24 17:51:13 EDT 2005


James wrote:
> Interesting thread ...
> 
> 1.) Language support for ranges as in Ada/Pascal/Ruby
> 1..10 rather than range(1, 10)

Did you mean 1..9 or 1...10 or both or neither?

Can this construct be used like this: (i+1)..n ? If not, what would you 
use? What is the frequency of range literals in the average piece of code?





More information about the Python-list mailing list