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.

Author gosella
Recipients eric.araujo, eric.smith, gosella, mark.dickinson
Date 2010-06-13.17:07:15
SpamBayes Score 0.019939508
Marked as misclassified No
Message-id <1276448837.3.0.312722428561.issue8985@psf.upfronthosting.co.za>
In-reply-to
Content
I now see the rationale behind not accepting ' 10 ' == 10. But what about not accepting '-1' == -1?

I think is odd that negative numbers are not accepted as valid indexes. I'd expect that something like 

"First element is {0[0]} and last element is {0[-1]}".format([0,1,2,3])

would work but it didn't.

Should I create a new Issue requesting this as a new feature? Or could be reconsidered as a bug?

I could provide a simple patch that change get_integer() so it would accept negative integers as a valid number.

(This is the first issue I reported and English is not my native language so I apology for any mistake that I made)
History
Date User Action Args
2010-06-13 17:07:17gosellasetrecipients: + gosella, mark.dickinson, eric.smith, eric.araujo
2010-06-13 17:07:17gosellasetmessageid: <1276448837.3.0.312722428561.issue8985@psf.upfronthosting.co.za>
2010-06-13 17:07:15gosellalinkissue8985 messages
2010-06-13 17:07:15gosellacreate