Re: os.path.getmtime() and compare with a date type

2007-09-20 Thread Anthony Greene
[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() -

Re: os.path.getmtime() and compare with a date type

2007-09-20 Thread Anthony Greene
[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() -

Pychecker

2006-06-09 Thread Anthony Greene
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...

Re: Pychecker

2006-06-09 Thread Anthony Greene
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 status = 3 if 1 == 1: statuss = 15 add(status

Re: python application ideas.

2006-04-25 Thread Anthony Greene
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 programmers. I've been learning python for the past year

python application ideas.

2006-04-24 Thread Anthony Greene
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

Re: Scatter/gather on sockets?

2006-04-01 Thread Anthony Greene
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 the MTU is

Re: OO conventions

2006-02-01 Thread Anthony Greene
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 natural

Re: OO conventions

2006-02-01 Thread Anthony Greene
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 natural