This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: BROWSER env var described inaccurately in webbrowser docs
Type: Stage: resolved
Components: Documentation Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, dturner-tw, orsenthil, python-dev
Priority: normal Keywords:

Created on 2014-04-15 21:37 by dturner-tw, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg216393 - (view) Author: David Turner (dturner-tw) Date: 2014-04-15 21:37
https://docs.python.org/2/library/webbrowser.html says "If the environment variable BROWSER exists, it is interpreted to override the platform default list of browsers, as a os.pathsep-separated list of browsers to try in order."

This is not actually what happens; instead, it is prepended to the platform-default list of browsers.
msg216395 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2014-04-15 21:40
Which may be sane thing thing do.

So the docs could be made better. Like - the list of browsers specified in env var BROWSER is tried first before looking at the platform defaults.
msg216649 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-04-17 03:44
New changeset 503bf9dee28e by Senthil Kumaran in branch '3.4':
Clarify BROWSER envar behavior in webbrowser.py. Noted by David Turner. Closes #21248
http://hg.python.org/cpython/rev/503bf9dee28e
msg216650 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2014-04-17 03:45
Thanks for the bug report. The documentation has been fixed in the active versions.
History
Date User Action Args
2022-04-11 14:58:01adminsetgithub: 65447
2014-04-17 03:45:08orsenthilsetmessages: + msg216650
versions: + Python 3.4, Python 3.5, - Python 2.7
2014-04-17 03:44:12python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg216649

resolution: fixed
stage: resolved
2014-04-15 21:40:38orsenthilsetnosy: + orsenthil
messages: + msg216395
2014-04-15 21:37:05dturner-twcreate