Re: [Tutor] ftplib: retrbinary all files in directory

2005-05-31 Thread Kent Johnson
Rich Krauter wrote: > Israel Carr wrote: > >>I'm using ftplib to connect to a server, and I want to grab every file >>from a specific folder. The filenames change frequently. What is the >>best way to use retrbinary with wildcards(or some better option) to >>transfer all files? >> >>Thanks, >>Is

[Tutor] ANN: Version 0.9 of RUR-PLE

2005-05-31 Thread André Roberge
Version 0.9 of RUR: a Python Learning Environment has been released. Information about RUR-PLE can be obtained at http://rur-ple.sourceforge.net Note that the project website is slightly out of date. Among the changes in this new version: ***Spanish translation added.* Changed image for languag

Re: [Tutor] ftplib: retrbinary all files in directory

2005-05-31 Thread Rich Krauter
Israel Carr wrote: > I'm using ftplib to connect to a server, and I want to grab every file > from a specific folder. The filenames change frequently. What is the > best way to use retrbinary with wildcards(or some better option) to > transfer all files? > > Thanks, > Israel > > ___

Re: [Tutor] Variations on putpixel - More Pixel manipulation - #14

2005-05-31 Thread D. Hartley
Rudy, I have the im.getpixel incrementing at every pixel by i (in a for loop for each pixel in wire.png), and I know incrementing the xy in the new one goes like this: x + 1 y + 1 x - 1 x - 1 y - 1 y - 1 x + 1 x + 1 x + 1 ... etc First the x and then the y is incremented by 1, then that 1 is made

Re: [Tutor] Planning a program with algorithm?

2005-05-31 Thread Alan G
> The textbook "How to Design Programs" focuses on a design approach to > program construction. The book's host language is Scheme, but I feel a > lot of the material is language agnostic and valuable to any programmer: > > http://www.htdp.org > I second the recommendation, but you do have to

Re: [Tutor] Planning a program with algorithm?

2005-05-31 Thread Alan G
> One approach you could consider is to write pseudocode, turn it into comments > and write the real code in between those. That way you get the benefits of > pseudocode (being able to spot algorithm errors at a higher level) as well as > properly commented code. Difficult portions then automatical

Re: [Tutor] Planning a program with algorithm?

2005-05-31 Thread Alan G
> And I'm doing chapter4. In the book it says it's recommended to plan a prog. > with pseudocode. > > Can i just ignore it? No, pseudo code is a very powerful technique. But one of the guidelines is that every line of pseudocode should correspond to 5-10 lines of program code (which means that it

[Tutor] Variations on putpixel - More Pixel manipulation - #14

2005-05-31 Thread D. Hartley
Hello, everyone! I know you didn't expect to hear from me anymore about these pesky challenges, since I started the off-tutor list about it, but I'm afraid I'm stuck and cannot get a hint. If I want to rearrange a long string of pixels in a different order, using "putpixel" with a certain size ne

[Tutor] ftplib: retrbinary all files in directory

2005-05-31 Thread Israel Carr
I'm using ftplib to connect to a server, and I want to grab every file from a specific folder. The filenames change frequently. What is the best way to use retrbinary with wildcards(or some better option) to transfer all files? Thanks, Israel ___ Tuto

Re: [Tutor] check PID

2005-05-31 Thread Hugo González Monteverde
Check os.waitpid() Hugo Alberto Troiano wrote: > Hey all > > I want to check if a PID number is running > I have the pid number from other program and I want to check if it's alive > Using Python 2.2 over Linux Red Hat 9 > > I tried to google but find how to know process of the app but not chec

Re: [Tutor] Planning a program with algorithm?

2005-05-31 Thread Andrei
Danny Yoo hkn.eecs.berkeley.edu> writes: > Some design advocates say that program design should be a part of every > program. At least, at minimum, we may want to think about: > >1. What is the program supposed to do? What's the input, and what's >the output? > >2. What would

Re: [Tutor] wxpython button icons?

2005-05-31 Thread Christian Wyglendowski
Hey Jeff, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Peery > > Hello, does anyone know if there is a list of widows icons > available? I'm creating an application for windows and I'd > like to use standard icons for things like a "prin

[Tutor] wxpython button icons?

2005-05-31 Thread Jeff Peery
Hello, does anyone know if there is a list of widows icons available? I'm creating an application for windows and I'd like to use standard icons for things like a "print" button or "save" button etc. thanks.   Jeff  ___ Tutor maillist - Tutor@python.org

Re: [Tutor] For Loop Exercises

2005-05-31 Thread Greg Lindstrom
>I finished the chapter which includes for loop, tuples, indexing and >slicing. Can anyone suggest me 3 exercises to remind of the chapter? A great place to find all sorts of programs to write -- from very easy to complex -- is the programming contest archive on the useless python page (www.usele

Re: [Tutor] skip some directories

2005-05-31 Thread Danny Yoo
> At the end, i found the way of make it: > > dirBase = ['misc','TTF','Type1','CID','100dpi','75dpi','encodings', 'util'] > > for root, dirs, files in os.walk(dirName): > print dirs # for checking all directories that i have at beginning > for name in dirs: > if name in dirBase: