list Integer indexing dies??
steven.bethard at gmail.com
Thu Dec 23 17:58:51 CET 2004
> On Thu, 23 Dec 2004 13:33:16 -0300, Batista, Facundo
> <FBatista at unifon.com.ar> wrote:
>>#- > What should 035 cough up? Be carefull it should
>>#- 3 # my own opinion.
>>#- > cough up the same as 29.
>>#- 2 #again my own opinion
>>Be aware that:
>>>>>035 == 29
> Yup. Octal variation of 29. But that wasn't my point.
Yes, but worse yet:
py> 035 is 29
So 035 and 29 refer to exactly the same object. They're just syntactic
variants. So how's Python to know which syntactic variant you want the
index taken from? AFAIK that information is not stored in a Python int
or you wouldn't get results like:
More information about the Python-list