Re: Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-27 Thread joamag
On 24 Abr, 14:50, DarkBlue pict...@gmail.com wrote: On Apr 22, 4:55 pm, joamag joa...@gmail.com wrote: Does anybody know a cross platform way to retrieve the default DNS server IP address in python ? Thanks ! João import os,urllib2,re def getIpAddr():         Function for parsing

Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-22 Thread joamag
Does anybody know a cross platform way to retrieve the default DNS server IP address in python ? Thanks ! João -- http://mail.python.org/mailman/listinfo/python-list

Re: Way to unblock sys.stdin.readline() call

2008-06-22 Thread joamag
On Jun 21, 11:34 pm, Terry Reedy [EMAIL PROTECTED] wrote: joamag wrote: Is there any possible way to unblock the sys.stdin.readline() call from a different thread. If you want the thread to do something 'else' when no input is available, would this work?  Put readline in a thread that puts

Way to unblock sys.stdin.readline() call

2008-06-21 Thread joamag
HI, Is there any possible way to unblock the sys.stdin.readline() call from a different thread. Something like sys.stdin.write() but that would actually work ... something to put characters in the stdin... Thanks in advance, João -- http://mail.python.org/mailman/listinfo/python-list

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread joamag
On Jun 21, 4:46 pm, Cédric Lucantis [EMAIL PROTECTED] wrote: Le Saturday 21 June 2008 15:26:53 joamag, vous avez écrit : HI, Is there any possible way to unblock the sys.stdin.readline() call from a different thread. Something like sys.stdin.write() but that would actually work