[Tutor] Installing module and running

2011-07-19 Thread David Merrick
I want to install the first module http://code.google.com/p/python-nose/downloads/list -- Dave Merrick merrick...@gmail.com Ph 03 3423 121 Cell 027 3089 169 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] Installing module and running

2011-07-19 Thread Walter Prins
Hi David, On 19 July 2011 09:45, David Merrick wrote: > I want to install the first module > > http://code.google.com/p/python-nose/downloads/list > > What operating system? What version of Python? Even so, ignoring the OS and Python version issues for now (and noting that that may affect the

[Tutor] Using pexpect to SCP files

2011-07-19 Thread Johan Geldenhuys
Hi there all, I am using pexpect in a script to SCP files to a inux server. Here is a snippet from the code: def doScp(self, user, password, host, path, files): fNames = " ".join(files) self.logger.log('Running command for %s' % fNames) try:

[Tutor] Resend: Using pexpect to SCP files

2011-07-19 Thread Johan Geldenhuys
Resend in text format Hi there all, I am using pexpect in a script to SCP files to a inux server. Here is a snippet from the code: def doScp(self, user, password, host, path, files):         fNames = " ".join(files)     self.logger.log('Running command for %s' % fNames)     try:       

Re: [Tutor] Resend: Using pexpect to SCP files

2011-07-19 Thread Sander Sweers
On 19 July 2011 13:20, Johan Geldenhuys wrote: It works fine for me in an interactive idle session.. Have you tried this to see if works like this? Does the command work when run directly from the command line? > I am using pexpect in a script to SCP files to a inux server. > Here is a snippet f

[Tutor] NameError: is defined

2011-07-19 Thread brandon w
Hi I am running Linux with Python 2.6.6. I have done lists, tuples, dictionaries, etc. Now I want to move on to creating a "class". I keep getting an error for everything I try. Here is the error: * NameError: name 'MyClass' is not defined* I had originally tried to create my own class by wat

[Tutor] Basic question on spaces

2011-07-19 Thread Alexander Quest
Hello; I'm a new student of Python using "Python Programming for Absolute Beginners" 3rd edition by Michael Dawson as my guide. This is a basic question regarding spaces. I'm not sure how to make it so spaces do not show up between variables and basic strings, particularly before commas and after d

Re: [Tutor] Basic question on spaces

2011-07-19 Thread Steve Willoughby
On 19-Jul-11 20:39, Alexander Quest wrote: Hello; I'm a new student of Python using "Python Programming for Absolute Beginners" 3rd edition by Michael Dawson as my guide. This is a basic question regarding spaces. I'm not sure how to make it so spaces do not show up between variables and basic st

Re: [Tutor] NameError: is defined

2011-07-19 Thread Andre Engels
On Wed, Jul 20, 2011 at 4:37 AM, brandon w wrote: > ** > Hi > I am running Linux with Python 2.6.6. I have done lists, tuples, > dictionaries, etc. Now I want to move on to creating a "class". I keep > getting an error for everything I try. Here is the error: * > > NameError: name 'MyClass' is no