Re: range() is not the best way to check range?
- From: "Dan Bishop" <danb_83@xxxxxxxxx>
- Date: 17 Jul 2006 19:49:19 -0700
Summercoolness@xxxxxxxxx wrote:
it seems that range() can be really slow:....
if i in range (0, 10000):
This creates a 10,000-element list and sequentially searches it. Of
course that's gonna be slow.
.
- References:
- range() is not the best way to check range?
- From: Summercoolness
- range() is not the best way to check range?
- Prev by Date: Re: Coding style
- Next by Date: Re: Any pyChart experts lend a hand?
- Previous by thread: range() is not the best way to check range?
- Next by thread: Re: range() is not the best way to check range?
- Index(es):