webbrowser module bug?

Brian van den Broek broek at cc.umanitoba.ca
Fri May 25 13:04:07 EDT 2007


Ron Adam said unto the world upon 05/25/2007 12:28 PM:
> kyosohma at gmail.com wrote:
>> On May 24, 5:03 pm, Ron Adam <r... at ronadam.com> wrote:
>>> Is anyone else having problems with the webbrowser module?
>>>
>>> Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
>>> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>  >>> import webbrowser
>>>  >>> webbrowser.open('http://www.python.org')
>>> True
>>>  >>>
>>>
>>> It opens firefox as expected, but the url is ...
>>>
>>>       file:///home/ron/%22http://www.python.org%22
>>>
>>> Which of course doesn't do what is expected.
>>>
>>> Any ideas?

<snip>

> 
> It works for me on python 2.4 also, but not on later versions.
> 
> Looks like I'll need to try to test the url at the point where it calls the 
> browser from webbrowser.py.
> 
> Can someone else test this on python 2.5?
> 
> Ron

Works fine for me on ubuntu 7.04 (fiesty) with Python 2.5.1c1, which 
appear to be your set-up, too.

Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import webbrowser
 >>> webbrowser.open('http://www.python.org')
True
 >>>


Best,

Brian vdB




More information about the Python-list mailing list