Re: Internal Variables

2005-11-11 Thread Paul Rubin
James Colannino <[EMAIL PROTECTED]> writes: > Basically, I just want to know how from within a script I can get > information about the python interpreter that I'm running. Thanks in > advance. import sys print sys.version -- http://mail.python.org/mailman/listinfo/python-list

Re: Internal Variables

2005-11-11 Thread Steven D'Aprano
On Fri, 11 Nov 2005 10:38:14 -0800, James Colannino wrote: > Hey everyone. I hope I have my terminology right, because I'm not quite > sure what to call them. I was just wondering how I can find information > in internal variables (for example - and I'm just making this up

Re: Internal Variables

2005-11-11 Thread Daniel Evers
Hi! The sys module provides some useful information, e.g.: builtin_module_names -- tuple of module names built into this interpreter version -- the version of this interpreter as a string version_info -- version information as a tuple hexversion -- version information encoded as a single integer

Re: Internal Variables

2005-11-11 Thread Larry Bates
What you want are attributes of sys object. import sys print sys.version -Larry Bates James Colannino wrote: > Hey everyone. I hope I have my terminology right, because I'm not quite > sure what to call them. I was just wondering how I can find information > in internal variable

Internal Variables

2005-11-11 Thread James Colannino
Hey everyone. I hope I have my terminology right, because I'm not quite sure what to call them. I was just wondering how I can find information in internal variables (for example - and I'm just making this up - __version__ to give me the version of Python.) The only reason I ask is