[Python-Dev] urllib.browse() issues

Ka-Ping Yee pingster@ilm.com
Fri, 7 Jul 2000 15:26:13 -0700 (PDT)

On Fri, 7 Jul 2000, Jack Jansen wrote:
> I would suggest not putting it into urllib but in a "launch" module.
> in a separate module it's probably easier to extend to to various
> other things you might want to launch (fileviewers, editors, etc).

Hmm, i rather like this idea.  Actually, i like it enough to
suggest that "launch" would be a good interface to external
applications --

    launch.webbrowser("http://www.python.org/", newwindow=1)
    launch.mailcomposer("python-dev@python.org", subject="Spam")
    launch.remoteshell("unseen.python.org", port=23)

On Unix this would take advantage of (and formalize) the PAGER,
EDITOR, BROWSER, etc. environment variables; on Windows they
could look at registry settings, and for Mac, they could use IC.

The webbrowser() function would be based on ESR's webbrowser.py;
the others shouldn't be too hard to toss off...

-- ?!ng