Sion Arrowsmith wrote: > Steven Bethard <[EMAIL PROTECTED]> wrote: > >>[EMAIL PROTECTED] wrote: >> >>>s = long("0xffffffffL") >>>ValueError: invalid literal for long(): 0xffffffffL >>> >>>>>int("0xffffffff", 0) >> >>4294967295L > > So why does the base argument to int() (or long()) default to > 10 and not 0?
Because it's designed for numbers normal people provide, not for numbers programmers provide. Normal people see 0123 as being equal to 123, not 83. -- http://mail.python.org/mailman/listinfo/python-list