Issue 13200: Add start, stop and step attributes to range objects (original ) (raw )Created on 2011-10-17 14:29 by smarnach , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (6)
msg145701 - (view)
Author: Sven Marnach (smarnach)
Date: 2011-10-17 14:28
As discussed on python-ideas [1], range objects should expose their start, stop and step values as read-only data attributes. I've attached a patch to this end. I'll open a separate issue for range comparison. [1]: http://mail.python.org/pipermail/python-ideas/2011-October/012356.html
msg145706 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2011-10-17 14:58
I would add tests that check the read-only-ness.
msg145710 - (view)
Author: Sven Marnach (smarnach)
Date: 2011-10-17 15:14
Thanks, Éric. Added new version of the patch. (Could I also edit the old one?)
msg145711 - (view)
Author: Ezio Melotti (ezio.melotti) *
Date: 2011-10-17 15:24
There's actually a similar proposal with a patch and a few comments in #9896 .
msg145724 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2011-10-17 16:14
> (Could I also edit the old one?) If you want to remove the older version, follow the edit link on the right. In case you don’t have the permissions, I’ll do it.
msg147095 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2011-11-05 16:10
The other bug is older and has more discussion, I’m closing this one as duplicate.
History
Date
User
Action
Args
2022-04-11 14:57:22
admin
set
github: 57409
2011-11-05 16:11:15
eric.araujo
set
status: open -> closedresolution: duplicatesuperseder: Introspectable range objects stage: patch review -> resolved
2011-11-05 16:10:54
eric.araujo
set
messages: +
2011-10-17 16:14:58
eric.araujo
set
files: - range-members.patch
2011-10-17 16:14:42
eric.araujo
set
messages: +
2011-10-17 15:24:42
ezio.melotti
set
nosy: + rhettinger , terry.reedy , pitrou , daniel.urban messages: +
2011-10-17 15:14:22
smarnach
set
files: + range-members.patch messages: +
2011-10-17 14:58:38
eric.araujo
set
nosy: + eric.araujo messages: +
2011-10-17 14:54:02
mark.dickinson
set
nosy: + mark.dickinson
2011-10-17 14:30:11
ezio.melotti
set
keywords: + patch , needs review nosy: + ezio.melotti stage: patch reviewversions: + Python 3.3
2011-10-17 14:29:00
smarnach
create