python version?

George Hester hesterloli at hotmail.com
Mon Jun 17 04:21:31 EDT 2002


Probably not.  Where do I import that from and how do it?  I am trying to put a
script in ASP using Python as the script language to give me the version of
Python that I am running when I call the ASP.  The more the script works out of
the box the better I'll be able to catch on to this language.  Thanks.

--
George Hester
_________________________________
"Gerhard Häring" <gerhard at bigfoot.de> wrote in message
news:mailman.1024182500.12788.python-list at python.org...
> * George Hester <hesterloli at hotmail.com> [2002-06-15 22:58 +0000]:
> > Python ActiveX Scripting Engine error '80020009'
> >
> > Traceback (innermost last): File "<Script Block >", line 5, in ?
> > Response.Write(sys.version) NameError: name 'sys' is not defined
> >
> > /python.asp, line 14
> >
> > Response.Write(sys.version)
> >
> > I think I need a script to do this.
>
> You did not import the sys module.
>
> Gerhard
> --
> mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
> web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
> public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
> reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
>
>





More information about the Python-list mailing list