[Python-3000] [Python-Dev] Type of range object members
Alexander Belopolsky
alexander.belopolsky at gmail.com
Tue Aug 15 04:15:36 CEST 2006
On Aug 14, 2006, at 10:01 PM, Nick Coghlan wrote:
> Guido van Rossum wrote:
>> Methinks that as long as PyIntObject uses long (see intobject.h)
>> there's no point in changing this to long.
>
> Those fields are going to have to change to Py_Object* eventually
> if xrange() is going to become the range() replacement in Py3k. . .
>
In this case it will become indistinguishable from
typedef struct {
PyObject_HEAD
PyObject *start, *stop, *step; /* not NULL */
} PySliceObject;
See sliceobject.h . Would it make sense to unify rangeobject with
PySliceObject?
More information about the Python-3000
mailing list