On Thu, 23 Dec 2004 13:33:16 -0300, Batista, Facundo <[EMAIL PROTECTED]> wrote: > > > [Ishwor] > > #- > What should 035[0] cough up? Be carefull it should > #- > #- >>>035[0] > #- 3 # my own opinion. why 3? The reason we get 3 and not 0 here is the *fact* that Python knows that its an octal rep. and not decimal ;-) 035[2] could return error here. Same for hex. No idea for binary. ~;-(
> #- > #- > cough up the same as 29[0]. > #- > #- >>>29[0] > #- 2 #again my own opinion since it's decimal its fine to get 2 which is at offset 0. [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list