[EMAIL PROTECTED] wrote:
> Hi,
> I am new to python and are tryint to write a simple program delete log
> files that are older than 30 days.
>
> So I used os.path.getmtime(filepath) and compare it with a date but it
> does not compile.
>
> threshold_time = datetime.date.today() - datetime.timedelta
[EMAIL PROTECTED] wrote:
> Hi,
> I am new to python and are tryint to write a simple program delete log
> files that are older than 30 days.
>
> So I used os.path.getmtime(filepath) and compare it with a date but it
> does not compile.
>
> threshold_time = datetime.date.today() - datetime.timedelta
On Fri, 09 Jun 2006 11:46:59 -0700, Matt Good wrote:
> Anthony Greene wrote:
>> Howdy, I had the impression that pychecker caught and reported such
>> dynamic syntactical errors.
>>
>> #!/usr/bin/env python
>>
>>
>> def add(i):
>> i += 10
&g
Howdy, I had the impression that pychecker caught and reported such
dynamic syntactical errors.
#!/usr/bin/env python
def add(i):
i += 10
status = 3
if 1 == 1:
statuss = 15
add(status)
===
exalted sysfault$ pychecker foo.py
Processing foo...
Warnings...
No
On Tue, 25 Apr 2006 09:51:42 -0500, Thomas Bartkus wrote:
> "Anthony Greene" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hello, I know this isn't really a python centric question, but I'm seeking
>> help from my fellow python pr
Hello, I know this isn't really a python centric question, but I'm seeking
help from my fellow python programmers. I've been learning python for the
past year and a half, and I still haven't written anything substantial nor
have I found an existing project which blows my hair back. Python is my
fir
On Sat, 01 Apr 2006 14:56:02 -0500, Roy Smith wrote:
> I've got a bunch of strings in a list:
>
> vector = []
> vector.append ("foo")
> vector.append ("bar")
> vector.append ("baz")
>
> I want to send all of them out a socket in a single send() call, so
> they end up in a single packet (assuming
On Wed, 01 Feb 2006 23:40:37 +0100, Daniel Nogradi wrote:
> I'm relatively new to object oriented programming, so get confused
> about its usage once in a while. Suppose there is a class Image that
> has a number of methods, rotate, open, verify, read, close, etc. Then
> to use this class my natur
On Wed, 01 Feb 2006 23:40:37 +0100, Daniel Nogradi wrote:
> I'm relatively new to object oriented programming, so get confused
> about its usage once in a while. Suppose there is a class Image that
> has a number of methods, rotate, open, verify, read, close, etc. Then
> to use this class my natur