Requiring a certain version of interpreter?

Chris Armstrong punck at PenguinMints.cx
Wed Jun 28 07:08:36 EDT 2000


In article <Lqj65.4362$h8.209230 at news-west.usenetserver.com>, Matthew
Cline <matt at nightrealms.com> wrote:
> Is there any builtin feature, or common module, that handles requiring
> at least a certain version of the Python interpreter to be used for a
> script?  Perl has 'require' for this purpose.
> 
> Thanks in advance.

>>> import sys 
>>> print sys.version
1.5.2 (#0, Apr  3 2000, 14:46:48)  [GCC 2.95.2 20000313 (Debian GNU/Linux)]

There may a way to just get the version number only, but if nothing else this 
will work.
-- 
There is a 90% chance that this message was written when the author's been
up longer than he should have. Please disregard any senseless drivel.
--
Chris Armstrong http://penguinmints.cx




More information about the Python-list mailing list