[IPython-dev] New display methods, should we fine-tune our naming decision?
Robert Kern
robert.kern at gmail.com
Wed Feb 2 01:18:30 EST 2011
On 2/1/11 6:16 PM, MinRK wrote:
> An alternative to developers writing methods in their classes would be for the
> Display system to use its own lookup table for representation methods, and
> provide an extension API for modules, IPython, third-parties, or users to
> register additional methods for classes. This would be more elaborate, but
> would make the display system a better Python citizen, and would eliminate the
> possiblity of collision with other projects' private conventions.
The code already provides this mechanism in addition to the special method, and
I think this is the one that should be promoted as the recommended way to do it.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the IPython-dev
mailing list