[New-bugs-announce] [issue35731] Modify to support multiple urls in webbrowser.open

Arlen report at bugs.python.org
Sun Jan 13 14:21:01 EST 2019


New submission from Arlen <arlen.yu6 at gmail.com>:

Note: new to python, please provide any feedback

Currently webbrowser.open supports one url, and there is no fn for url batching. I am proposing modifying webbrowser.open to support something along these lines:

```
def open(*urls, new=0, autoraise=True):
        ...
        browser = get(name)
        actions = [browser.open(url, new, autoraise) for url in urls]
        ...

# usage
open('http://example.com', 'http://example2.com')
```

----------
components: Library (Lib)
messages: 333563
nosy: arlenyu
priority: normal
severity: normal
status: open
title: Modify to support multiple urls in webbrowser.open
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35731>
_______________________________________


More information about the New-bugs-announce mailing list