Re: [Tutor] please help me

2007-04-13 Thread Greg Perry
Let no good deed go unpunished! -Original Message- From: Daniel Yoo Date: Friday, Apr 13, 2007 8:24 pm Subject: Re: [Tutor] please help me > If this is homework, please tell your teacher I helped - I need the > extra credit. > >Please avoid giving homework answers like this. Rather than

Re: [Tutor] Movies from jpg files

2007-04-08 Thread Greg Perry
Indeed ;) >Python is Cool :) ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Movies from jpg files

2007-04-07 Thread Greg Perry
Maybe PyMedia is what you are looking for: http://www.pymedia.org It's a Python library based on FFmpeg, which is a program that can encode and decode many different video streams. FFmpeg can also create an mpeg from a collection of jpeg images, read section 1.2 of the FFmpeg FAQ which demons

Re: [Tutor] hashlib weirdness

2007-04-02 Thread Greg Perry
Thanks Terry, others have pointed out the same thing. The stock Python 2.5 interpreter functions properly; my issue seems to be with the IDE I am using, that is where I've been able to nail down the problem so far. -Original Message- From: Terry Carroll On 30 Mar 2007, Greg

Re: [Tutor] Communication between classes

2007-04-01 Thread Greg Perry
. -Original Message- From: Andrei Hi Greg, > >Greg Perry wrote: > I am still in the process of learning OOP concepts and > > reasons why classes should be used instead of functions etc. > > One thing that is not apparent to me is the best way for > > classes to commun

[Tutor] Communication between classes

2007-04-01 Thread Greg Perry
Hi again, I am still in the process of learning OOP concepts and reasons why classes should be used instead of functions etc. One thing that is not apparent to me is the best way for classes to communicate with each other. For example, I have created an Args class that sets a variety of inter

[Tutor] os.path.isfile and isdir

2007-03-30 Thread Greg Perry
It looks like both os.path.isfile and os.path.isdir evaluate to False for a wildcard, so that makes it a bit easier to deal with a mask. Thanks to everyone for the suggestions. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/lis

Re: [Tutor] getopts question

2007-03-30 Thread Greg Perry
Yeah I figured that. I am trying to find a way to have the program detect if the user input is a file or directory, which is easy enough with os.path. However, os.path makes no distinction between a regular file and a mask, eg filename.txt or *.txt. I guess I'll have to have a second set of t

[Tutor] hashlib weirdness

2007-03-30 Thread Greg Perry
Here's one that has me stumped. I am writing a forensic analysis tool that takes either a file or a directory as input, then calculates a hash digest based on the contents of each file. I have created an instance of the hashlib class: m = hashlib.md5() I then load in a file in binary mode: f

[Tutor] getopts question

2007-03-29 Thread Greg Perry
Hello List Members, I am working on a simple program and would like to know the best way to approach this. Using getops I am parsing the argv array to grab command line options; from the command line the user can specify either a filename or a directory (but not both). Is there an eloquent wa