Recursive Property of Octal Numbers
Dan Christensen
jdc at uwo.ca
Sat Oct 1 23:02:26 EDT 2005
James Stroud <jstroud at mbi.ucla.edu> writes:
> I'm very curious about what is going on here. I'm sure my curiosity has
> something to do with ignorance of some fundamental concept of computer
> science (maybe that 8 is just a vertical infinity?):
>
> py> b = '\xb6'
> py> b[0]
> '\xb6'
> py> b[0][0]
> '\xb6'
Maybe this clarifies things?
>>> b='a'
>>> b[0]
'a'
>>> b[0][0]
'a'
>>> b[0] == b
True
Dan
More information about the Python-list
mailing list