Alexander Belopolsky <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2735>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to