Germán L. Osella Massa <[email protected]> added the comment:
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)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8985>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com