mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-123494: Improve documentation for `webbrowser
` return types (#123495)
Document the return value for ``webbrowser.open*()``.
This commit is contained in:
parent
917283ada6
commit
0b6acfee04
2 changed files with 10 additions and 0 deletions
|
@ -80,6 +80,9 @@ def open(url, new=0, autoraise=True):
|
|||
- 1: a new browser window.
|
||||
- 2: a new browser page ("tab").
|
||||
If possible, autoraise raises the window (the default) or not.
|
||||
|
||||
If opening the browser succeeds, return True.
|
||||
If there is a problem, return False.
|
||||
"""
|
||||
if _tryorder is None:
|
||||
with _lock:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue