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
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
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
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
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