[issue10799] Improve webbrowser.open doc (and, someday, behavior?)

Senthil Kumaran report at bugs.python.org
Mon Jan 24 12:14:06 CET 2011


Senthil Kumaran <orsenthil at gmail.com> added the comment:

On Wed, Jan 12, 2011 at 12:23:31AM +0000, Éric Araujo wrote:
> > I thought of adding 'http://' if not present but that would
> > disable opening files in a file browser.
> 
> I think that’s a Windows-specific behavior, not a promise of the
> *web*browser module.

If being lenient with URLs which do not start with http:// is the
idea, then webbrowser module can do explicitly add that. Having a
default protocol option in the open method and we can set it to
'http'.  Many WWW browsers do that.

But, I agree that it should not be related to Windows file-browser
behavior (for whatever it's behavior is).

----------
nosy: +orsenthil

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10799>
_______________________________________


More information about the Python-bugs-list mailing list