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?

-- 
\S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to