If Safari is your default browser, Python will open the address in Safari.<br><br>From the Python docs:<br><blockquote style="margin:0 0 0 40px;border:none;padding:0px">webbrowser.open(url[, new=0[, autoraise=True]])<br></blockquote>

<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px">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 opened if possible. If new is 2, a new browser page (“tab”) is opened if possible. If autoraise is True, the window is raised if possible (note that under many window managers this will occur regardless of the setting of this variable).</blockquote>

<blockquote style="margin:0 0 0 40px;border:none;padding:0px">Note that on some platforms, trying to open a filename using this function, may work and start the operating system’s associated program. However, this is neither supported nor portable.</blockquote>

</blockquote><br><br><br>On Sat, Feb 25, 2012 at 8:33 PM, Leo <<a href="mailto:sdl.web@gmail.com">sdl.web@gmail.com</a>> wrote:<br>><br>> Hello,<br>><br>> On Lion and with its stock python version 2.7.1 r271:86832,<br>

> webbrowser.open('file://localhost/nonexistingfile') always opens up<br>> Safari. Is this a bug?<br>><br>> Leo<br>> --<br>> <a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a>