function with variable arguments

Xah Lee xah at xahlee.org
Sat May 14 06:41:28 EDT 2005


Thanks to all for the reply. (i should've known better)

on a related topic,
I think it would be a improvement for the built-in range() so that step
needs not be an integer.
Further, it'd be better to support decreasing range. e.g.

Range( 5, 7, 0.3); # returns [5, 5.3, 5.6, 5.9, 6.2, 6.5, 6.8]
Range( 5, -4, -2); # returns [5,3,1,-1,-3]

 Xah
 xah at xahlee.orghttp://xahlee.org/




More information about the Python-list mailing list