Re: [Tutor] namespaces and global

2009-10-15 Thread Dave Angel
Jose Amoreira wrote: Alan, Kent, hello! Thanks for your help. As for your "curiosity", I'm teaching elementary physics to undergraduates in computer engineering. Trying to speak my students' language, I wanted to show them simple applications that compute numerical values for the kinematics fo

Re: [Tutor] namespaces and global

2009-10-14 Thread Jose Amoreira
Alan, Kent, hello! Thanks for your help. As for your "curiosity", I'm teaching elementary physics to undergraduates in computer engineering. Trying to speak my students' language, I wanted to show them simple applications that compute numerical values for the kinematics formulas of uniformly acc

Re: [Tutor] namespaces and global

2009-10-14 Thread Alan Gauld
"Jose Amoreira" wrote Of course I could redefine my module function, including the parameter a in the list of arguments, but I'd rather not. Why not? That would be good computer science practice and the most reliable way to do it. Why do you not want to go down that route? Is there a specif

Re: [Tutor] namespaces and global

2009-10-14 Thread Kent Johnson
On Wed, Oct 14, 2009 at 7:26 AM, Jose Amoreira wrote: > I want to use a variable defined in an interactive session with the python > interpreter inside a function imported from a module. > > For instance, imagine that my module (call it defs.py, for instance) consists > of: > #coding=utf-8 > def