[Patches] [ python-Patches-577875 ] Merge xrange() into slice()
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 31 Jul 2002 02:41:29 -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 */
:-)
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2002-07-31 09:41
Message:
Logged In: YES
user_id=6656
Is this patch now dead?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=577875&group_id=5470