Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Leo
On 2012-02-26 15:04 +0800, Cameron Simpson wrote: > On the suppostion that "the default browser" is actually multiple > settings, one for each of several URL (URI?) schemes, what do these two > shell commands do for you? From a shell prompt in a Terminal: > > open file://localhost/nonexistingfile

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Steven D'Aprano
On Sun, 26 Feb 2012 14:23:43 +0800, Leo wrote: > On 2012-02-26 11:36 +0800, Steven D'Aprano wrote: >> 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/li

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Cameron Simpson
On 26Feb2012 14:23, Leo wrote: | On 2012-02-26 11:36 +0800, Steven D'Aprano wrote: | > 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/web

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Leo
On 2012-02-26 11:36 +0800, Steven D'Aprano wrote: > 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 If you have the default browse

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Steven D'Aprano
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 a

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Anthony Nguyen
If Safari is your default browser, Python will open the address in Safari. >From the Python docs: webbrowser.open(url[, new=0[, autoraise=True]]) Display url using the default browser. If new is 0, the url is opened in the same browser window if possible. If new is 1, a new browser window is ope

webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Leo
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? Leo -- http://mail.python.org/mailman/listinfo/python-list