Newbie question --> Internet-Connection

Hernan M. Foffani hfoffani at yahoo.com
Fri Nov 30 18:28:35 CET 2001


> how can I check the state of an internet-connection
(connected/disconnected)
> with python?

That's an OS issue, and I doubt it can be done in a portable and realibly
way.

On a more general advise, the way to do things in Python is:
don't ask for permission, you'll have plenty of time to be sorry later.
(or something like that :-))
Seriously. Just program for the "normal" case, and trap errors as you find
them. For newbies, it's the most productive way to do things in Python.

(or... give us more hints on what you want to achive and where :-) )

Regards,
-Hernán.





More information about the Python-list mailing list