Re: [Tutor] Help with my program

2009-10-22 Thread Kenny Shen
Hi tanner, I suppose the following is possible: class A: def __init__(self): self.height = 1 self.weight = 7 self.name = "tanner" self.grade = "A" def getinfo(self): info = [] info.append(self.name) info.append(self.weight) info.append(self.heig

Re: [Tutor] Curses - What does it do and why is it called this?

2009-10-22 Thread Jerry Hill
On Tue, Oct 13, 2009 at 3:11 AM, Katt wrote: > Now I understand.  Makes sense.  If "Curses" is for UNIX what would I use on > a Windows XP system using Python 2.6.2? I like the Console package: http://effbot.org/zone/console-index.htm -- Jerry ___ Tut

[Tutor] PyWX

2009-10-22 Thread nitin chandra
Hi I was wondering if there is any one on the list who has experience in installing PyWX with AOLserver on Linux. I am facing some issues. any support will be welcome ... either on list or off list. Thanks Nitin nitinchand...@gmail.com ___ Tutor mail

Re: [Tutor] i can't for the life of me get "#! /usr/bin/env python" or "#!/usr/bin/python" to work

2009-10-22 Thread Eric L. Howard
If you're using bash for your shell - it looks like you need to re-source your .bashrc. You can do this from the command line source ~/.bashrc or log out and log back in. ~elh On Wed, Oct 21, 2009 at 5:56 PM, Jason Willis wrote: > so i changed the .bashrc and added at the end : > PATH="/home/

Re: [Tutor] Detect duplicate object names

2009-10-22 Thread Alan Gauld
"Lizhi Yang" wrote When I define functions in a Module, how to avoid override the name of existing functions? Do you mean other functions within the same module or do you mean functions in other modules? For the first case, keep the number of functions to a reasonable number so you can r

Re: [Tutor] i can't for the life of me get "#! /usr/bin/env python"or "#!/usr/bin/python" to work

2009-10-22 Thread Alan Gauld
"Luke Paireepinart" wrote So what you really want to do is export PATH=$PATH:/home/compy/pythons from the command line. Unless I don't understand what .bashrc is for which is definitely possible, I'm a Windoze programmer. bashrc is the equivalent of the old DOS autoexec.bat. It gets run e