Recursive Property of Octal Numbers

Paul Rubin http
Sat Oct 1 11:25:26 CEST 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?):

Python doesn't have a character type.  A character is just a string of
length 1.  So 'a'[0] is the same as 'a'.  Thus 'a'[0][0][0]...[0] is
also the same as 'a'.



More information about the Python-list mailing list