Norton AV 2001 + popen + WinMe = crash

David Bolen db3l at fitlinxx.com
Wed Jul 25 16:32:12 EDT 2001


Kirby Urner <urner at alumni.princeton.edu> writes:

> So how does IDLE invoke the browser if not with popen and if
> it uses popen, then why can't I from the IDLE shell?  The kind 
> of question that keeps me up at night.

At least this can be answered by looking at the source, and let you
get some sleep :-)

It looks like IDLE uses either the standard library webbrowser module
(2.1+) or some internal browser support in the BrowserControl.py
module (2.0) to launch the browser.

Under Windows, this is accomplished using the ShellExecute() win32 api
call (in 2.0 via the win32api module, or via the os.startfile()
library function in 2.1+).

So there's no popen() involved.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list