This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Merge xrange() into slice()
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: mwh Nosy List: mwh, orenti
Priority: normal Keywords: patch

Created on 2002-07-05 18:25 by orenti, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
slice3.diff orenti, 2002-07-05 18:25
Messages (3)
msg40496 - (view) Author: Oren Tirosh (orenti) Date: 2002-07-05 18:25
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 */

:-)


msg40497 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-07-31 09:41
Logged In: YES 
user_id=6656

Is this patch now dead?
msg40498 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-07-31 11:14
Logged In: YES 
user_id=6656

Oren says "yes".
History
Date User Action Args
2022-04-10 16:05:29adminsetgithub: 36856
2002-07-05 18:25:01orenticreate