Internal Variables
Larry Bates
larry.bates at websafe.com
Fri Nov 11 13:55:50 EST 2005
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 variables (for example - and I'm just making this up -
> __version__ to give me the version of Python.) The only reason I ask is
> that I'm trying very hard to search for information and can't find
> anything. Perhaps the information I'm looking for isn't even contained
> in variables but rather some other sort of object. 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.
>
> James
>
More information about the Python-list
mailing list