Re: Noobie python shell question

2009-11-30 Thread John Posner
On Sun, 29 Nov 2009 22:03:09 -0500, tuxsun tuxs...@gmail.com wrote: I've been working in the shell on and off all day, and need to see if a function I defined earlier is defined in the current shell I'm working in. Is there a shell command to get of list of functions I've defined? How about

Noobie python shell question

2009-11-29 Thread tuxsun
I've been working in the shell on and off all day, and need to see if a function I defined earlier is defined in the current shell I'm working in. Is there a shell command to get of list of functions I've defined? TIA! P.S. If it makes a difference, I'm using the shell from within IDLE, but

Re: Noobie python shell question

2009-11-29 Thread Tim Chase
tuxsun wrote: I've been working in the shell on and off all day, and need to see if a function I defined earlier is defined in the current shell I'm working in. Is there a shell command to get of list of functions I've defined? yesish...you can use dir() from the prompt to see the bound names

Re: Noobie python shell question

2009-11-29 Thread Dave Angel
tuxsun wrote: I've been working in the shell on and off all day, and need to see if a function I defined earlier is defined in the current shell I'm working in. Is there a shell command to get of list of functions I've defined? TIA! P.S. If it makes a difference, I'm using the shell from

Re: Noobie python shell question

2009-11-29 Thread Chris Rebert
On Sun, Nov 29, 2009 at 7:53 PM, Tim Chase python.l...@tim.thechases.com wrote: snip (as an aside, is there a way to get a local/global variable from a string like one can fetch a variable from a class/object with getattr()?  Something like getattr(magic_namespace_here, hello) used in the above

Re: Noobie python shell question

2009-11-29 Thread Dave Angel
Tim Chase wrote: snip (as an aside, is there a way to get a local/global variable from a string like one can fetch a variable from a class/object with getattr()? Something like getattr(magic_namespace_here, hello) used in the above context? I know it can be done with eval(), but that's