New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Py30a5: webbrowser.open() inf recursion #47084
Comments
There appears to be an infinite recursion in Py30a5 (doing the same Python 3.0a5 (r30a5:62856, May 9 2008, 11:23:06)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "copyright", "credits" or "license()" for more information.
IDLE 3.0a5
>>> import webbrowser
>>> url = "http://www.python.org"
>>> webbrowser.open(url)
Traceback (most recent call last):
File "<pyshell#9>", line 1, in <module>
webbrowser.open(url)
File "/home/mark/opt/python30a5/lib/python3.0/webbrowser.py", line 61,
in open
if browser.open(url, new, autoraise):
File "/home/mark/opt/python30a5/lib/python3.0/webbrowser.py", line
350, in open
devnull = open(os.devnull, "r+")
File "/home/mark/opt/python30a5/lib/python3.0/webbrowser.py", line 61,
in open
if browser.open(url, new, autoraise):
File "/home/mark/opt/python30a5/lib/python3.0/webbrowser.py", line
350, in open
...
devnull = open(os.devnull, "r+")
File "/home/mark/opt/python30a5/lib/python3.0/webbrowser.py", line 61,
in open
if browser.open(url, new, autoraise): |
It doesn't happen here, I'm using Linux too (Ubuntu 8.04) and py3k rev 63074 |
I get the same bug on Fedora 8 (Python build 63161) and Kubuntu 8 Python 3.0a5+ (py3k:60668:63161, May 12 2008, 14:46:40)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import webbrowser
>>> webbrowser.open("http://www.python.org")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mark/pycore/30/Lib/webbrowser.py", line 61, in open
if browser.open(url, new, autoraise):
Python 3.0a5 (r30a5:62856, May 9 2008, 11:27:40)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "copyright", "credits" or "license()" for more information.
IDLE 3.0a5
>>> import webbrowser
>>> webbrowser.open("http://www.python.org")
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
webbrowser.open("http://www.python.org")
... |
The traceback suggest a problem when using KDE: a call to file() was Index: Lib/webbrowser.py - devnull = open(os.devnull, "r+")
+ import io
+ devnull = io.open(os.devnull, "r+")
# if possible, put browser in separate process group, so
# keyboard interrupts don't affect browser as well as Python
setsid = getattr(os, 'setsid', None) |
On 2008-05-12, Amaury Forgeot d'Arc wrote:
That fixed it! |
Corrected as r63163. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: