[issue5601] webbrowser doesn't just open browsers
Georg Brandl ge...@python.org added the comment: Updated docs in r71150. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5601] webbrowser doesn't just open browsers
Mitchell Model m...@acm.org added the comment: Never mind about the garbage -- I was looking at weird HTML in the copy of the message I received but it didn't make it into the entry on this page. I should have looked first. -- -- --- Mitchell -- Added file: http://bugs.python.org/file13539/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___!doctype html public -//W3C//DTD W3 HTML//EN htmlheadstyle type=text/css!-- blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 } --/styletitleRe: [issue5601] webbrowser doesn't just open browsers/title/headbody divNever mind about the garbage -- I was looking at weird HTML in the copy of the message I received but it didn't make it into the entry on this page. I should have looked first./div divtt-- /tt/div div-- br br nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; --- Mitchell/div /body /html___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5601] webbrowser doesn't just open browsers
Georg Brandl ge...@python.org added the comment: I'm inclined not to document that. webbrowser is meant for URLs, the behavior if you call it with file names is undefined. -- resolution: - wont fix status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5601] webbrowser doesn't just open browsers
Mitchell Model m...@acm.org added the comment: The problem is not so much that I think people should use it for file URLs, it's that the behavior when they do can be quite confusing. Perhaps a note that webbrowser is not meant for file URLs and that it's behavior is undefined if it is? -- -- --- Mitchell -- Added file: http://bugs.python.org/file13532/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___!doctype html public -//W3C//DTD W3 HTML//EN htmlheadstyle type=text/css!-- blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 } --/styletitleRe: [issue5601] webbrowser doesn't just open browsers/title/headbody divThe problem is not so much that I think people should use it for file URLs, it's that the behavior when they do can be quite confusing. Perhaps a note that webbrowser is not meant for file URLs and that it's behavior is undefined if it is?/div divtt-- /tt/div div-- br br nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; --- Mitchell/div /body /html___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5601] webbrowser doesn't just open browsers
Georg Brandl ge...@python.org added the comment: That would be nice. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5601] webbrowser doesn't just open browsers
Mitchell Model m...@acm.org added the comment: whoops Sorry for the garbage in the previous message. -- -- --- Mitchell -- Added file: http://bugs.python.org/file13533/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___!doctype html public -//W3C//DTD W3 HTML//EN htmlheadstyle type=text/css!-- blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 } --/styletitleRe: [issue5601] webbrowser doesn't just open browsers/title/headbody divwhoops/div divbr/div divSorry for the garbage in the previous message./div divtt-- /tt/div div-- br br nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; --- Mitchell/div /body /html___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5601] webbrowser doesn't just open browsers
New submission from Mitchell Model m...@acm.org: There is a problem with the documentation of the webbrowser module: opening a URL doesn't necessarily open it in a browser. The documentation of the open function and method should say that the URL is opened in whatever application the system chooses based on considerations such as the type of URL, an application assigned to the file, and the application assigned to the file's type (extension). Here's why: The documentation of module webbrowser, as well as the name of the module itself, only mentions browsers as what opens the given URL. However, on some platforms (Mac OS X, e.g.) if things are configured so there is a default application associated with a particular file extension, the webbrowser functions will open a path to a file in the application associated with it's file type rather than a browser. This is true whether or not file:// precedes the file path in the URL. For example, if .py files are set to open in IDLE, webbrowser.open('/fullpath/to/file.py') will open /fullpath/to/file.py in IDLE. It's even possible to assign one browser to open .htm files and another to open .html files. It is also possible on some platforms (Mac, again) to assign a default application to files of a particular extension but assign a different application to specific files with that extension. Applications can also be assigned to URL types. For instance, you could have an application that isn't really a browser open ftp:// URLs. (This also can happen when you download a file from a browser and the task is turned over to a download application such as Speed Download or Interarchy on a Mac.) The real problem here is that some platforms have extended the idea of opening a URL (including a bare file path interpreted as a file:// URL) beyond browsers per se. In a sense the entire terminology of this module is suspect, despite its obvious intent. Although not a serious suggestion, it would more accurately be termed the urlopen module. -- assignee: georg.brandl components: Documentation messages: 84485 nosy: MLModel, georg.brandl severity: normal status: open title: webbrowser doesn't just open browsers versions: Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5601 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com