Re: [Tutor] Tutor Digest, Vol 95, Issue 55

2012-01-21 Thread Shreesh bhat
correct this error? > > * OverflowError: Python int too large to convert to C long* > -- next part -- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/tutor/attachments/20120121/f7b86624/attachment-0001.html > > > >

Re: [Tutor] checking return status of 'ping' in windows

2012-01-21 Thread Alan Gauld
On 21/01/12 18:47, Nikunj Badjatya wrote: Normal ping operation on windows cmd prompt can give 3 outputs. 1) "destination host unreachable 2) "request timed out" 3) "Reply from 192.168.1.1 : bytes=32 time=3ms TTL=64" Now, I was expecting the "status" in above snippet to hold

Re: [Tutor] checking return status of 'ping' in windows

2012-01-21 Thread Hugo Arts
On Sat, Jan 21, 2012 at 7:47 PM, Nikunj Badjatya wrote: > Hi All, > > I am using the following snippet to check the availability of an IP address. > If that IP addr is found free than it can be used later on for further > operations. > Python ver 3.2 > Windows OS > > {{{ > pingret = subprocess.Pop

[Tutor] checking return status of 'ping' in windows

2012-01-21 Thread Nikunj Badjatya
Hi All, I am using the following snippet to check the availability of an IP address. If that IP addr is found free than it can be used later on for further operations. Python ver 3.2 Windows OS {{{ pingret = subprocess.Popen('ping {0}'.format(IPaddr), shell=True,universal_newlines=True, \

Re: [Tutor] delete an object from method (was Tutor Digest)

2012-01-21 Thread Dave Angel
On 01/21/2012 09:58 AM, George Nyoro wrote: Hey guys, I've been making an application and have made a delete method where the user can delete the instance of that application. e.g. if I have a table object, I need to be able to delete that instance from within the class and then it becomes access

Re: [Tutor] Tutor Digest, Vol 95, Issue 53

2012-01-21 Thread Steven D'Aprano
George Nyoro wrote: Hey guys, I've been making an application and have made a delete method where the user can delete the instance of that application. e.g. if I have a table object, I need to be able to delete that instance from within the class and then it becomes accessible. Did you want to

Re: [Tutor] Tutor Digest, Vol 95, Issue 53

2012-01-21 Thread George Nyoro
Hey guys, I've been making an application and have made a delete method where the user can delete the instance of that application. e.g. if I have a table object, I need to be able to delete that instance from within the class and then it becomes accessible.

Re: [Tutor] OverFlow Error

2012-01-21 Thread Alan Gauld
On 21/01/12 13:10, Shreesh bhat wrote: How to correct this error? * OverflowError: Python int too large to convert to C long* Could we have some context? What version of Python? What OS? What does your code look like? Can we see the full error trace please? Otherwise, based only on what you

[Tutor] OverFlow Error

2012-01-21 Thread Shreesh bhat
How to correct this error? * OverflowError: Python int too large to convert to C long* ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor