Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

python and windows and pydoc and favorite editor == True

1 view
Skip to first unread message

Syver Enstad

unread,
May 31, 2002, 11:38:26 AM5/31/02
to

Hi, if anyone else than me thinks that reading the source of a python
module in your favorite editor, by clicking a link in the pydoc html
page covering that module would be nice, read on.

I have:
1. a very short python script (which parses the pydoceditor url
and executes os.environ['EDITOR'] with the parsed out file as the
parameter). I have the EDITOR variable set to gnuclient myself, but I
guess not everybody would want to use emacs so you can set EDITOR to
notepad or whatever suits you).

2. a small registry addition (registering a pydoceditor url
type, and a handler python script for that type), This is the only
part of the equation that is strictly win32 specific, I don't know how
to register handler's for url types on *nix or other platforms so...

3. a tiny hack to the pydoc.py source that makes this happen (which
changes the file: url to a pydoceditor url).

Post if there is any interest.
--

Vennlig hilsen

Syver Enstad

Jürgen Hermann

unread,
Jun 3, 2002, 3:40:13 PM6/3/02
to

"Syver Enstad" <syver-e...@online.no> schrieb im Newsbeitrag
news:un0ugn...@online.no...

> Post if there is any interest.

OK, post. :)


Syver Enstad

unread,
Jun 3, 2002, 7:19:03 PM6/3/02
to

Peter Hansen

unread,
Jun 3, 2002, 9:43:44 PM6/3/02
to
Syver Enstad wrote:
>
> "Jürgen Hermann" <j...@web.de> writes:
>
> > "Syver Enstad" <syver-e...@online.no> schrieb im Newsbeitrag
> > news:un0ugn...@online.no...
> > > Post if there is any interest.
> >
> > OK, post. :)
> >
> >
>
> http://home.online.no/~syver-en/software.html/files/PyDocEditorStarter.py

Looks like this should be:

http://home.online.no/~syver-en/files/PyDocEditorStarter.py

The other 404's me.

-Peter

Syver Enstad

unread,
Jun 4, 2002, 1:14:37 PM6/4/02
to
Peter Hansen <pe...@engcorp.com> writes:

> Syver Enstad wrote:
> >
> > "Jürgen Hermann" <j...@web.de> writes:
> >
> > > "Syver Enstad" <syver-e...@online.no> schrieb im Newsbeitrag
> > > news:un0ugn...@online.no...
> > > > Post if there is any interest.
> > >
> > > OK, post. :)
> > >
> > >
> >
> >
>
>

> Looks like this should be:
>
> http://home.online.no/~syver-en/files/PyDocEditorStarter.py
>
> The other 404's me.

That's correct,
http://home.online.no/~syver-en/files/PyDocEditorStarter.py
is the address, shows what harm copy paste does :-)

0 new messages