Ezio Melotti <ezio.melo...@gmail.com> added the comment:

Hi, this is the meta bug tracker where to report bugs of the Python bug tracker 
at bugs.python.org. If you have Python questions you should ask them on 
python-list. If you have found a Python bug you can report it at 
bugs.python.org.
What you found is not a bug though:
>>> l = ['abcd', 786, 2.23, 'john', 70.2]
>>> l[-1]
70.2
>>> l[4]
70.2
>>> l[0:-1]
['abcd', 786, 2.23, 'john']
>>> l[0:4]
['abcd', 786, 2.23, 'john']
>>> l[:4]
['abcd', 786, 2.23, 'john']
As you can see the first value is included, but the last is excluded.

----------
assignedto:  -> ezio.melotti
nosy: +ezio.melotti
status: unread -> resolved

_______________________________________________________
PSF Meta Tracker <metatrac...@psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue366>
_______________________________________________________
_______________________________________________
Tracker-discuss mailing list
Tracker-discuss@python.org
http://mail.python.org/mailman/listinfo/tracker-discuss

Reply via email to