[Python-Dev] webbrowser.py

Ka-Ping Yee ping@lfw.org
Mon, 22 Jan 2001 20:14:50 -0800 (PST)

On Mon, 22 Jan 2001, Ka-Ping Yee wrote:
> In trying to do the latter i've found the webbrowser module pretty
> unreliable, by the way.  For example, it relies on a constant delay
> of 4 seconds to launch a new browser that can't be expected on all
> platforms, and fails to launch Netscape 3 because it supplies an
> illegal command-line option.  When i've found good cross-platform
> ways to make this work i'll suggest some patches.

Oh, and i forgot to mention... i was pretty disappointed that:

    setenv BROWSER my_browser_program
    python -c 'import webbrowser; webbrowser.open("http://python.org/")'

doesn't execute "my_browser_program http://python.org/" as i would
have hoped.  Even for a known browser type:

    setenv BROWSER lynx
    python -c 'import webbrowser; webbrowser.open("http://python.org/")'

does not work as expected, either.  (Red Hat Linux here.)

-- ?!ng