Too much builtins (was Re: Python's simplicity philosophy

Andrew Dalke adalke at
Tue Nov 18 08:18:41 CET 2003

Georgy Pruss:
> Maybe, it's worth to have str(x,8) and str(x,16) instead of oct(x) and
> and make str() a true inverse function to int()?

What then are the results of
  str(30+44j, 16)
  str(3.1415926, 8)
  str([9, 8, 7], 8)
  str("A", 16)
  str({"A": 20}, 16)

                    dalke at

More information about the Python-list mailing list