Re: [Tutor] group txt files by month

2012-09-07 Thread Peter Otten
questions anon wrote: > Hello All, it has been a few months since I have used this and I have only > just realised I am having problems with leap years. each time I get to > February of a leap year my program stops, Does it throw an exception (if so, post the traceback) or does it just terminat

Re: [Tutor] group txt files by month

2012-09-07 Thread questions anon
Hello All, it has been a few months since I have used this and I have only just realised I am having problems with leap years. each time I get to February of a leap year my program stops, therefore I have attributed it to my code not accounting for leap years. Is there a simple way to fix my code (

Re: [Tutor] urllib2.urlopen(....., timeout=)

2012-09-07 Thread eryksun
On Fri, Sep 7, 2012 at 11:32 AM, Dave Angel wrote: > > I'm curious why the docstring says... timeout = > but have no clues for you. socket._GLOBAL_DEFAULT_TIMEOUT is an object(). In other words, it's an "object object". Also, that's not from the docstring but the call signature. The functio

Re: [Tutor] urllib2.urlopen(....., timeout=)

2012-09-07 Thread Ray Jones
On 09/07/2012 08:32 AM, Dave Angel wrote: > On 09/07/2012 11:16 AM, Ray Jones wrote: >> 2.7.3 >> According to the docs, urlopen has a timeout capability. But it says >> that the timeout = '' >> >> I've tried integers as the timeout value, I've tried floatsit >> doesn't complain about my values,

Re: [Tutor] urllib2.urlopen(....., timeout=)

2012-09-07 Thread Ray Jones
On 09/07/2012 08:33 AM, Steven D'Aprano wrote: > On 08/09/12 01:16, Ray Jones wrote: >> 2.7.3 >> According to the docs, urlopen has a timeout capability. But it says >> that the timeout = '' > > Which docs are those? According to these docs: > > http://docs.python.org/library/urllib2.html > > "The

Re: [Tutor] urllib2.urlopen(....., timeout=)

2012-09-07 Thread Steven D'Aprano
On 08/09/12 01:16, Ray Jones wrote: 2.7.3 According to the docs, urlopen has a timeout capability. But it says that the timeout = '' Which docs are those? According to these docs: http://docs.python.org/library/urllib2.html "The optional timeout parameter specifies a timeout in seconds for bl

Re: [Tutor] urllib2.urlopen(....., timeout=)

2012-09-07 Thread Dave Angel
On 09/07/2012 11:16 AM, Ray Jones wrote: > 2.7.3 > According to the docs, urlopen has a timeout capability. But it says > that the timeout = '' > > I've tried integers as the timeout value, I've tried floatsit > doesn't complain about my values, but neither does it timeout. Can > anyone point m

[Tutor] urllib2.urlopen(....., timeout=)

2012-09-07 Thread Ray Jones
2.7.3 According to the docs, urlopen has a timeout capability. But it says that the timeout = '' I've tried integers as the timeout value, I've tried floatsit doesn't complain about my values, but neither does it timeout. Can anyone point me to the solution to getting the urlopen to timeout if

Re: [Tutor] How to get MAC address using Python at windows 7

2012-09-07 Thread Alan Gauld
On 07/09/12 01:37, Steven D'Aprano wrote: On 06/09/12 23:44, bob gailer wrote: On 8/18/2012 10:12 AM, šãñ wrote: I need to find some way how i can get mac address of windows 7 Ethernet adapters have MAC addresses. Your computer will have one or more Ethernet adapter. Just to be pedantic, yo