org.python.core

Class PyXRange

public class PyXRange extends PySequence

Used to implement the builtin xrange function. Significant patches contributed by Jason Orendorff - jorendor@cbu.edu

Since: JPython 0.3

Author: Jim Hugunin - hugunin@python.org

Field Summary
intstart
intstep
intstop
Constructor Summary
PyXRange(int start, int stop, int step)
Method Summary
inthashCode()
PyListtolist()
StringtoString()
PyObject__add__(PyObject generic_other)
PyObject__findattr__(String name)
int__len__()

Field Detail

start

public int start

step

public int step

stop

public int stop

Constructor Detail

PyXRange

public PyXRange(int start, int stop, int step)

Method Detail

hashCode

public int hashCode()

tolist

public PyList tolist()

toString

public String toString()

__add__

public PyObject __add__(PyObject generic_other)

__findattr__

public PyObject __findattr__(String name)

__len__

public int __len__()
Jython homepage