[Doc-SIG] Re: [Python-Dev] Pre-PEP Idea
Moshe Zadka
Moshe Zadka <moshez@math.huji.ac.il>
Sat, 15 Jul 2000 22:19:11 +0300 (IDT)
- Previous message: [Doc-SIG] The Western Web has just finished our new classified ad section. Please check it out and make sure that your classified ad has been moved. We are in the process of moving ads at this time, but would appreciate your help to insure that if your ad has been moved. If it hasn't been moved or you would like to place a new ad feel free to do so. We have added new sections in the classifieds, hay/feed/shavings, livestock, camelids, cattle, deer and elk, poultry, rabbits, sheep, livestock equipment, swine, donkeys, dogs and mules. We are currently receiving 100 new ads a day, and over 20,000 unique hits a day.
- Next message: [Doc-SIG] Help tool
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
On Sat, 15 Jul 2000, Paul Prescod wrote:
> Moshe Zadka wrote:
> >
> > ...
> >
> > -- have all that wonderful stuff in help.py
> > -- have the startup code of the *interactive interpreter only* do
> > "from help import help" at the beginning.
>
> Sorry, that's a part I should have explanied more.
>
> help is not a magical function/statement but an instance with a repr
> that does the right thing. And yes, it will probably only be loaded at
> the repl. Or it could be a 10-line instance that loads its content when
> it is actually used. That might allow
>
> python -c "import help"
>
> Here's a sample definition.
>
> class helploader:
> def __repr__( self ):
> global help
> from helptext import help
> return repr( help )
> def __call__( self ):
> global help
> from helptext import help
> return repr( help )
> help=helploader()
BTW, that should probably be CCed to the doc-sig, because that information
has to come from somewhere.
doc-sig traffic kind of died after the initial IPC8-induced burst. Fred,
any plans on seriously reviving doc-sig?
--
Moshe Zadka <moshez@math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.
http://advogato.org/person/moshez
- Previous message: [Doc-SIG] The Western Web has just finished our new classified ad section. Please check it out and make sure that your classified ad has been moved. We are in the process of moving ads at this time, but would appreciate your help to insure that if your ad has been moved. If it hasn't been moved or you would like to place a new ad feel free to do so. We have added new sections in the classifieds, hay/feed/shavings, livestock, camelids, cattle, deer and elk, poultry, rabbits, sheep, livestock equipment, swine, donkeys, dogs and mules. We are currently receiving 100 new ads a day, and over 20,000 unique hits a day.
- Next message: [Doc-SIG] Help tool
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]