[Python-3000] guessing a rule of thumb for methods on object
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Jul 29 05:28:15 CEST 2006
Steven Bethard wrote:
> I thought about this for a while, and I think maybe a good rule of
> thumb (and something like what Python seems to follow) is: "If it's
> there's an obvious default implementation of a protocol that would be
> generally useful, it should go on all objects."
Please, no!
One of the things I like about Python is that 'object'
is very nearly a blank slate. I'd hate to see it cluttered
up with a pile of methods that someone thought might be
useful to someone sometime.
--
Greg
More information about the Python-3000
mailing list