Alexnb wrote:
I am wondering, is there a simple way to test for Internet connection? If not, what is the hard way :p
Trying to fetch the homepage from a few major websites (Yahoo, Google, etc.)? If all of them are failing, it's very likely that the connection is down. You can use urllib2 [1] to accomplish that.
[1] <http://docs.python.org/lib/module-urllib2.html> -- http://mail.python.org/mailman/listinfo/python-list