[Tutor] function error

ALAN GAULD alan.gauld at btinternet.com
Thu Sep 30 13:45:40 CEST 2010


Copy the code into a text file with a name ending in .py - lets call it 
myfile.py for now
(if you have not already done so)

From a bash prompt type

$ python myfile.py

Then cut n paste any error messages into an email to the list

 
Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/




----- Original Message ----
> From: roberto <roberto03 at gmail.com>
> To: Alan Gauld <alan.gauld at btinternet.com>
> Cc: tutor at python.org
> Sent: Thursday, 30 September, 2010 10:02:51
> Subject: Re: [Tutor] function error
> 
> On Wed, Sep 29, 2010 at 11:13 PM, Alan Gauld <alan.gauld at btinternet.com>  
>wrote:
> >
> > OK, Thats a non standard error trace so presumably you  are running it 
inside
> > an IDE of some kind? It may be the IDE is masking  the true error.
> > What happens if you just execute the code from a shell  prompt in a console
> > window?  Can you send the error trace from  that?
> >
> 
> yes, the IDE is ipython2.5 for debian;
> the call to the  function is:
> >> randomMove2(10,30,15,90)
> 
> but i don't know how to  call it from the bash prompt correctly, can
> you point me to that ?
> 
> -- 
> roberto
> 


More information about the Tutor mailing list