webbrowser.open always opens up Safari on Lion

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Feb 25 22:36:55 EST 2012


On Sun, 26 Feb 2012 09:33:15 +0800, Leo wrote:

> Hello,
> 
> On Lion and with its stock python version 2.7.1 r271:86832,
> webbrowser.open('file://localhost/nonexistingfile') always opens up
> Safari. Is this a bug?

What part of this do you think is the bug, and why? What part of the 
behaviour actually experienced contradicts the documented behaviour of 
webbrowser.open()?

http://docs.python.org/library/webbrowser.html

-- 
Steven



More information about the Python-list mailing list