Recursive Property of Octal Numbers

Tim Roberts timr at probo.com
Tue Oct 4 02:41:52 EDT 2005


James Stroud <jstroud at mbi.ucla.edu> wrote:
>
>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'

8 doesn't have anything to do with it.  What you have there is hexadecimal.
0377 is an example of an octal number.

However, as was pointed out elsewhere, the same thing would be true even if
you used 'z'.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list