[Tracker-discuss] [issue366] problem while accessing value using the slice operator []

Naresh metatracker at psf.upfronthosting.co.za
Sun Jan 2 06:09:43 CET 2011


New submission from Naresh <naresh_kumar23736 at yahoo.com>:

example : list=['abcd', 786 , 2.23, 'john', 70.2 ]
          print list[0:-1]
      output:      ['abcd', 786 , 2.23, 'john']
is this expected behavior because list[0:-1] is supposed to print list from starting to end but this is not happening

----------
messages: 1884
nosy: naresh_kumar23736 at yahoo.com
priority: bug
status: unread
title: problem while accessing value using the slice operator []

_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue366>
_______________________________________________________


More information about the Tracker-discuss mailing list