STINNER Victor <vstin...@redhat.com> added the comment:

> Something else, ast.parse() has been modified to use a (major, minor) version 
> tuple rather an integer to specify the Python version in feature_version, but 
> PyCompilerFlags still only uses the minor major. This API will be broken once 
> the Python major version will be increased to 4, no? Would it make sense to 
> use PY_VERSION_HEX format which includes the major version instead?

I can work on a PR to change cf_feature_version format, but I would prefer to 
agree here on what is the best format ;-)

Note: compile() has a private keyword-only _feature_version which is also the 
Python minor version (int): don't include the major version. If we change 
cf_feature_version, we may also change compile(_feature_version=N) format.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37253>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to