Re: [Tutor] skip some directories

2005-05-30 Thread Jonas Melian
Danny Yoo wrote: >>I'm trying to working with some directories only >> >>import os >>dirName = "/usr/share/fonts/" >>dirBase = ['misc','TTF','Type1','CID','100dpi','75dpi'] # directories to >>skip >> >>for root, dirs, files in os.walk(dirName): >>for end in dirBase: >>if root.endswith(e

[Tutor] ActiveState Komodo

2005-05-30 Thread Adam McNutt
I've just started out on Python (again) and found an IDE that I really like. Maybe others will like it as well. I know it's commercial, but I found a coupon code to get the personal edition free. Thought this may interest others. Here is the page that has the info (and it seems to be updated wi

Re: [Tutor] Planning a program with algorithm?

2005-05-30 Thread Danny Yoo
On Mon, 30 May 2005, Andrei wrote: > . , hotmail.com> writes: > > > But, I don't know how to plan a prog. with algorithm. > > For small programs there's little value in planning - in fact, you'll > probably end up wasting time. As far as individual algorithms go, it's > usually best to go with

Re: [Tutor] Frozen Binaries

2005-05-30 Thread Danny Yoo
On Mon, 30 May 2005, Chuck Allison wrote: > Could someone please give me the quick lowdown on creating frozen > binaries? Thanks. Hi Chuck, On Windows, the 'py2exe' program's probably the most straightforward of the freezers: http://py2exe.sf.net That page has a complete toy example

Re: [Tutor] skip some directories

2005-05-30 Thread Danny Yoo
On Mon, 30 May 2005, Jonas Melian wrote: > I'm trying to working with some directories only > > import os > dirName = "/usr/share/fonts/" > dirBase = ['misc','TTF','Type1','CID','100dpi','75dpi'] # directories to > skip > > for root, dirs, files in os.walk(dirName): > for end in dirBase: >

Re: [Tutor] Planning a program with algorithm?

2005-05-30 Thread Andrei
. , hotmail.com> writes: > And I'm doing chapter4. In the book it says it's recommended to plan a prog. > > with pseudocode. > > Can i just ignore it? Let me expand a bit on my previous post. You can use pseudocode iteratively, starting at a very high level and dropping lower

Re: [Tutor] Planning a program with algorithm?

2005-05-30 Thread Andrei
> I'm learning python by reading 'Python Programming for the Absolute > Beginner' by Michael Dawson. > In the book it says it's recommended to plan a prog. > with pseudocode. > > Can i just ignore it? I don't think it's a bad technique, but there's different ways of writing pseudocode.

[Tutor] Frozen Binaries

2005-05-30 Thread Chuck Allison
Hello tutor, Could someone please give me the quick lowdown on creating frozen binaries? Thanks. -- Best regards, -- Chuck Allison ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] skip some directories

2005-05-30 Thread Jonas Melian
Hi, I'm trying to working with some directories only import os dirName = "/usr/share/fonts/" dirBase = ['misc','TTF','Type1','CID','100dpi','75dpi'] # directories to skip for root, dirs, files in os.walk(dirName): for end in dirBase: if root.endswith(end): print 'skiped'

[Tutor] For loop exercise

2005-05-30 Thread . ,
I finished the chapter which includes for loop, tuples, indexing and slicing. Can anyone suggest me 3 exercises to remind of the chapter? Thanks. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://me

Re: [Tutor] Planning a program with algorithm?

2005-05-30 Thread Marilyn Davis
On Mon, 30 May 2005, . , wrote: > I'm learning python by reading 'Python Programming for the Absolute > Beginner' by Michael Dawson. > > And I'm doing chapter4. In the book it says it's recommended to plan a prog. > with pseudocode. > > Can i just ignore it? Yes! Python is a formalized pseud

Re: [Tutor] Planning a program with algorithm?

2005-05-30 Thread . ,
I'm learning python by reading 'Python Programming for the Absolute Beginner' by Michael Dawson. And I'm doing chapter4. In the book it says it's recommended to plan a prog. with pseudocode. Can i just ignore it? Thanks. _ FREE p

Re: [Tutor] Planning a program with algorithm?

2005-05-30 Thread Andrei
. , hotmail.com> writes: > But, I don't know how to plan a prog. with algorithm. For small programs there's little value in planning - in fact, you'll probably end up wasting time. As far as individual algorithms go, it's usually best to go with whatever seems the easiest to understand and only