A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-May/044834.html below:

[Python-Dev] Re: Welcome to the "Python-Dev" mailing list

[Python-Dev] Re: Welcome to the "Python-Dev" mailing listMichel Van den Bergh vdbergh at luc.ac.be
Sat May 15 10:27:15 EDT 2004
Hello,

I apologize for posting so quickly on this list but I am having a problem.
I am the author of a game written in python (PyTraffic, it is on the vault)
and I am preparing a new version which will be much nicer in many ways.

It also includes some help in the form of a html file. Right now I am using
my own methods to display html files.  However I am also checking out 
the webbrowser
module.

Unfortunately this module has some obvious problems (tested on CVS 
version under Linux with mozilla)


(*) If you open an url (with the option "new window") and the browser is 
not already running
then it opens *two* windows: the home page and your url. This is 
different for example
from the default behaviour on Windows and also quite ugly.

(**) There is another related problem: if you open an url
and the browser is not already running then the code starts a new 
browser, does a timed sleep
and then issues a "-remote" command.

Using a timed sleep is very bad programming and *extremely fragile*. 
Indeed I had failures because the delay
(PROCESS_CREATION_DELAY) was not long enough. At the very least the -remote
command should be tried a couple of times.

BUT: there is no reason *at all* to issue a -remote command in this 
case. All browsers I know
accept a url as argument. So one can just start a new browser with the 
url as argument.

These problems are easy to fix but it is not clear from which version of 
webbrowser.py
to start. There are already two patches waiting (not fixing the above 
problems),
with no indication if they will ever be applied.

Any comments?

Best regards,
Michel





More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4