[issue10799] Improve webbrowser (.open) doc and behavior
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10799] Improve webbrowser (.open) doc and behavior
Terry J. Reedy added the comment: I do not know if 'must' is true on all systems, but I certainly think we should say that a full url 'might be required' to succeed. On win7, C:/program files (86)/mozilla firefox (until mozilla decides to distribute a 64-bit version ;-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10799] Improve webbrowser (.open) doc and behavior
Ezio Melotti added the comment: On WinXP, if I try firefox bugs.python.org, I get an error because it can not find firefox in the PATH. This is probably what happens with _isexecutable(firefox). However if I try C:\Program Files\Mozilla Firefox\firefox.exe bugs.python.org, Firefox correctly opens the page. So I think that the problem here is not that the browser fails to open bugs.python.org or google.com, but that the executable of the browser is not found, and whatever is used to open bugs.python.org (os.startfile()?) doesn't know that it should be opened with Firefox. In the longer run, what I would really like is for webbrowser to be better at using the default or finding executables. I haven't looked at the code, but, if reasonable, it should search in some common folders for the executables of the supported browsers. Should I create a separate issue for this? If this solution is not viable, we can always document that the URLs have to start with 'http://' or 'www.'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10799] Improve webbrowser (.open) doc and behavior
Terry J. Reedy added the comment: Before closing #8936, I realized that perhaps my user default browser *is* being called but is returning an error code. It does not really matter, where the error code comes from. I think 'using the default browser' should be expanded to ''using the first default browser that claims to succeed.'. Also, 'default browser list' should be explained in a sentence before the one about over-riding it with an env. var. It depends on the software on the machine at import in addition to the platform. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10799] Improve webbrowser (.open) doc and behavior
Terry J. Reedy added the comment: I no longer think we should touch the url; just pass it to each browser in turn, as needed, and let the user get the result. -- versions: +Python 3.3, Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10799] Improve webbrowser (.open) doc and behavior
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10799] Improve webbrowser (.open) doc and behavior
Terry J. Reedy tjre...@udel.edu added the comment: Upon further experimentation, I realize that I can only open in Firefox because I have it set as my default browser. It would otherwise be inaccessible because it is not in the _browser registry. It also appears that I cannot intentionally use Internet Explorer because it also in not registered (except under the full path names used as a backup). webbrowser._browsers {'windows-default': [class 'webbrowser.WindowsDefault', None], 'c:\\program files\\internet explorer\\iexplore.exe': [None, webbrowser.BackgroundBrowser object at 0x01000ED0]} If I understand the Windows code quoted before, the Class Names in the table would be different (BackgroundBrowser) on Windows if it did work. Related issues #8232 webbrowser.open incomplete on Windows #8936 webbrowser regression on windows #12237 Document how to open non-default webbrowser -- components: +Documentation title: Improve webbrowser.open doc (and, someday, behavior?) - Improve webbrowser (.open) doc and behavior type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com