[Python-Dev] Python 2.1 PEPs

Thomas Wouters thomas@xs4all.net
Tue, 17 Apr 2001 19:50:41 +0200


On Tue, Apr 17, 2001 at 10:28:15AM -0700, Paul Prescod wrote:

> All it would take now is
> 
> class help:
>    def __repr__(self):
>       import pydoc
>       __builtins__.help = pydoc.help
>       repr(__builtins__.help)

> But hindsight is 20/20.

You realize this isn't going to work, right ? The 'help' class will shadow
the 'help' builtin.

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!