Jul-03-2018, 12:49 PM
@Larz60+
if it has to be class, why not just
if it has to be class, why not just
import socket class Internet: @property def available(self): return socket.gethostbyname(socket.gethostname()) != '127.0.0.1'
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs