[pypy-dev] XRange Object [Fixed Patch]

Moshe Zadka m at moshez.org
Tue Jul 8 12:21:52 MEST 2003


On Tue, 8 Jul 2003, holger krekel <hpk at trillke.net> wrote:

> thanks you for the patch.  But i think that "xrange" should really
> be a builtin rather than a first-class type on stdobjspace.  

I disagree. For example, it should support methods such as tolist() and
getitem(). Maybe you want a smarter iterator method...which is fine,
look at the comment I put in the iterator method [roughly "this is
a standin because I wanted to do the simplest thing"]

-- 
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.
Agile Programming Language -- http://www.python.org/


More information about the pypy-dev mailing list