[Python-ideas] Keyword to disambiguate python version

Mike Graham mikegraham at gmail.com
Thu Aug 26 23:59:02 CEST 2010

On Thu, Aug 26, 2010 at 3:25 PM, Jonny <jwringstad at gmail.com> wrote:
> I would propose that an idiomatic way is created, for instance a
> pragma or statement, which allows one to disambiguate the used python
> version in a manner that is both obvious for the human reader, and as
> well allows python to reject the script, should the wrong version of
> the interpreter be present. I think this is a quite common
> problem[1][2], which could be solved in a fairly easy and pragmatic
> way.

-1 from me on this one.

The risk of something not working only because some dummy put the
wrong version in the pragma outweighs the benefit of version
information being enforced problematically rather than merely by

More information about the Python-ideas mailing list