Too much builtins (was Re: Python's simplicity philosophy
Gerrit Holl
gerrit at nl.linux.org
Tue Nov 18 13:22:10 EST 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.
yours,
Gerrit.
--
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
debt.
-- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
http://www.sp.nl/
More information about the Python-list
mailing list