[issue5135] Expose simplegeneric function in functools module
report at bugs.python.org
Thu Feb 5 13:16:26 CET 2009
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Hmm, there is such a thing as being *too* simple... a generic function
implementation that doesn't even respect ABCs seems pretty pointless to
me (e.g. I'd like to be able to register a default Sequence
implementation for pprint and have all declared Sequences use it
automatically if there isn't a more specific override).
I'll wait until I have a chance to actually play with the code a bit
before I comment further though.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list