[issue2735] range: lean and mean

Alexander Belopolsky report at bugs.python.org
Fri May 2 04:38:05 CEST 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

The start/step/stop getter functions should INCREF return values.  Is 
there a reason not to adapt slice implementation:

static PyMemberDef slice_members[] = { 
        {"start", T_OBJECT, offsetof(PySliceObject, start), READONLY}, 
        {"stop", T_OBJECT, offsetof(PySliceObject, stop), READONLY}, 
        {"step", T_OBJECT, offsetof(PySliceObject, step), READONLY}, 
        {0} 
};

----------
nosy: +belopolsky

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2735>
__________________________________


More information about the Python-bugs-list mailing list