[Tutor] Focus on the functions [Was Re: if-else statements]

2005-10-15 Thread Danny Yoo
On Sat, 15 Oct 2005, Kent Johnson wrote: > > I really wish that someone would take a similar approach in writing a > > beginner Python tutorial that focuses on functions almost immediately, > > even before control flow. > > You might like John Zelle's book - he teaches functions before control >

Re: [Tutor] Python 2.4.1 on Mndrk Linux 10.1 - path

2005-10-15 Thread w chun
On 10/15/05, Andy Dani <[EMAIL PROTECTED]> wrote: >When I python from /usr/loca/Python-2.4.1/bin, it does launch the interpreter but with an traceback error saying there is some conflict with "import readline" line on pythonrc.py file located somewhere in /etc/ directory. Is there any harm If I com

Re: [Tutor] IDLE will not appear under Win95 (Python 2.4.2)

2005-10-15 Thread Alan Gauld
> Python installed without a complaint. However, when I fire up IDLE, there > is > an hour glass shown for a couple of seconds, then nothing else happens. Personally, since you are on Windows, I'd try using Pythonwin instead. In most respects its a better tool that IDLE but only works on Windows.

Re: [Tutor] Python 2.4.1 on Mndrk Linux 10.1 - path

2005-10-15 Thread Nick Lunt
Hi Andy, Andy Dani wrote: >Thanks Nick, > >Any idea about the second question? When I python from >/usr/loca/Python-2.4.1/bin, it does launch the interpreter but with an >traceback error saying there is some conflict with "import readline" line on >pythonrc.py file located somewhere in /etc/

Re: [Tutor] Any good Glade and python tutorials?

2005-10-15 Thread ZIYAD A. M. AL-BATLY
On Sat, 2005-10-15 at 20:13 +0100, Adam wrote: > I'm making a Twisted app that needs a client side GUI and GTK seems > like the best way to go about this. Can anybody point me in the > direction of any decent tutorials on how to use Glade with python and > pyGTK. > Thanks. > Adam. http://primates.

[Tutor] Any good Glade and python tutorials?

2005-10-15 Thread Adam
I'm making a Twisted app that needs a client side GUI and GTK seems like the best way to go about this. Can anybody point me in the direction of any decent tutorials on how to use Glade with python and pyGTK. Thanks. Adam. ___ Tutor maillist - Tutor@pyt

Re: [Tutor] IDLE will not appear under Win95 (Python 2.4.2)

2005-10-15 Thread Damien Gouteux
Try to right-click on a python file and click 'Edit with IDLE'. IDLE doesn't work without a file in argument. I hope it will help you. Damien G. Dave Shea wrote: >Hi, > >I'm very new to Python. Today I downloaded the python-2.4.2.msi file from >www.python.org > >I had previously installed the u

Re: [Tutor] slide show won't display the images in right, order

2005-10-15 Thread Kent Johnson
Joseph Quigley wrote: > This suggestion: > > date = files[x] >Data.year = date[2:4] >Data.month = date[4:6] >Data.day = date[6:8] > > > Doesn't work because DspImage needs a concatenated string. (you'll see > a 07/28/['5'] instead of the current 07/28/05. D

Re: [Tutor] Python 2.4.1 on Mndrk Linux 10.1 - path

2005-10-15 Thread Andy Dani
Thanks Nick, Any idea about the second question? When I python from /usr/loca/Python-2.4.1/bin, it does launch the interpreter but with an traceback error saying there is some conflict with "import readline" line on pythonrc.py file located somewhere in /etc/ directory. Is there any harm If I

Re: [Tutor] os.listdir blocks threads?

2005-10-15 Thread Pierre Barbier de Reuille
Hello, first, I believe listdir is implemented so as to block other threads because underlying C functions are *not* thread safe ! So if you try reading two directories in two different threads you may end up with really strange things happening ! For your process problem, if you want to have ful

Re: [Tutor] if-else statements

2005-10-15 Thread Kent Johnson
Danny Yoo wrote: > [Warning: I get totally off-topic, opinionated, and cranky in the > following rant. My apologies in advance!] > > Hi Andrew, > > But I get worried, though, that much teaching uses fragile techniques that > don't really scale well. I've disliked the order in which some Python

[Tutor] os.listdir blocks threads?

2005-10-15 Thread Wolfgang Braun
Hello List, I try to read large directories off network shares (samba3,NT) with os.listdir(). The listdir() takes up to 5 minutes and blocks the rest of the program (gui refreshes, ...) The idea now is to put the listdir call into a separate thread so the program can go on doing stuff (see below

Re: [Tutor] if-else statements

2005-10-15 Thread Alan Gauld
> and it's Java/C++ all the way. I am becoming convinced that lines of > code are not only related to the number of bugs and development speed, > but learning speed as well. Too much time tripping over syntax and > you miss the important bits. It depends. I learned to program in Pascal and a mor

Re: [Tutor] Programming tutors WAS: if-else statements

2005-10-15 Thread Alan Gauld
> [Warning: I get totally off-topic, opinionated, and cranky in the > following rant. My apologies in advance!] Well since you've gone off topic so will I ;-) > But I get worried, though, that much teaching uses fragile techniques that > don't really scale well. I've disliked the order in which

[Tutor] IDLE will not appear under Win95 (Python 2.4.2)

2005-10-15 Thread Dave Shea
Hi, I'm very new to Python. Today I downloaded the python-2.4.2.msi file from www.python.org I had previously installed the up-to-date Windows installer as instructed. Python installed without a complaint. However, when I fire up IDLE, there is an hour glass shown for a couple of seconds, then n

Re: [Tutor] if-else statements

2005-10-15 Thread Danny Yoo
On Sat, 15 Oct 2005, Andrew P wrote: > Well, on the bright side, at least Python is being taught in schools. [Warning: I get totally off-topic, opinionated, and cranky in the following rant. My apologies in advance!] Hi Andrew, But I get worried, though, that much teaching uses fragile techn