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

Gerrit Holl gerrit at
Tue Nov 18 19:22:10 CET 2003

Andrew Dalke wrote:
>   str(obj, [base=10]) -> converts integer objects (only!) to the given base,
>     defaults to base 10.

Well, str could be defined as follows:

def str(obj, **kwargs):
    return obj.__str__(**kwargs)

That doesn't feel too wrong to me.


39. He may, however, assign a field, garden, or house which he has
bought, and holds as property, to his wife or daughter or give it for
          -- 1780 BC, Hammurabi, Code of Law
Asperger Syndroom - een persoonlijke benadering:
Kom in verzet tegen dit kabinet:

More information about the Python-list mailing list