[Patches] [ python-Patches-577875 ] Merge xrange() into slice()
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 05 Jul 2002 11:25:01 -0700
Patches item #577875, was opened at 2002-07-05 18:25
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=577875&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Oren Tirosh (orenti)
Assigned to: Nobody/Anonymous (nobody)
Summary: Merge xrange() into slice()
Initial Comment:
Changes from Raymond Hettinger's last version of this
patch:
1. Removed #include "rangeobject.h" from Python.h
2. Changed repr to suppress None arguments so it now
looks like the old xrange repr.
3. Added .slice(len) method that exposes the functionality
of PySlice_GetIndicesEx.
Comment in PySlice_GetIndicesEx:
/* this is harder to get right than you might think */
:-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=577875&group_id=5470