[issue35731] Modify to support multiple urls in webbrowser.open

2019-01-13 Thread Arlen


New submission from Arlen :

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 
<https://bugs.python.org/issue35731>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11505] string.py increased test coverage

2011-03-14 Thread Alicia Arlen

New submission from Alicia Arlen :

Started from coverage.py results.  Only 6 groups of lines did not have 
coverage.  Since the Template class originated in PEP292, those tests were 
added in test_pep292.py.  All Formatter class tests were added in 
test_string.py.

_invalid test (Lines 89-90):
  This error does not naturally occur, so the regex for pattern was overloaded 
to create the scenario where the format fails on the first character.

_vformat test (line 174):
  Forced recursion_depth negative to raise the error.

convert_field (lines 226, 299):
  Sent in appropriate convversion requests.

get_field (lines 256-257, 259):
  Added fieldname variations to test getattr and getitem lookups.

--
components: Tests
files: string_test_coverage.diff
keywords: patch
messages: 130880
nosy: Alicia.Arlen, brian.curtin, georg.brandl
priority: normal
severity: normal
status: open
title: string.py increased test coverage
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21130/string_test_coverage.diff

___
Python tracker 
<http://bugs.python.org/issue11505>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com