mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.13] gh-123494: Improve documentation for `webbrowser
` return types (GH-123495) (#123548)
gh-123494: Improve documentation for ``webbrowser`` return types (GH-123495)
Document the return value for ``webbrowser.open*()``.
(cherry picked from commit 0b6acfee04
)
Co-authored-by: Aarni Koskela <akx@iki.fi>
This commit is contained in:
parent
59a6d48a89
commit
dc06b3d01e
2 changed files with 10 additions and 0 deletions
|
@ -81,6 +81,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