[Python-Dev] [PEP204] Range Literals
Barry A. Warsaw
bwarsaw@beopen.com
Fri, 14 Jul 2000 00:09:48 -0400 (EDT)
>>>>> "PP" == Paul Prescod <paul@prescod.net> writes:
PP> Why disallow this:
PP> fives=[0:maxint:5]
PP> As Fred points out, we've already got the underlying object
PP> implementation in the src!
PP> MAL also pointed out that immutable objects (like xranges) can
PP> be safely precomputed and reused.
PP> Finally, whatever the answer is, it should probably be the
PP> same as list comprehensions.
This is why you want a PEP, Paul!
-Barry