[Python-Dev] [PEP204] Range Literals

Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Sat, 15 Jul 2000 19:10:03 +0300 (IDT)


On Sat, 15 Jul 2000, Thomas Wouters wrote:

> There is also the question regarding (::) and generators. Should I finish
> the PEP for the sake of that ?

I think we decided we don't need those. The only reason people need
generators is for extra efficiency in 

for i in range(10^6):
	if i==5:
		break

But the compiler can do that for the [::] version, since it's
non-overridable.

About the refactoring: my advice is to refactor first, and ask questions
later <0.6 wink> -- after you mess with the code, just moving a function
around takes about 3 seconds.

(I'd put it in listobject.c first -- but just pick a place)