kamahen / pykythe

Generate code Python source cross-reference facts in Kythe format
Other
21 stars 3 forks source link

python_version should be a triple #8

Open kamahen opened 5 years ago

kamahen commented 5 years ago

Currently, --python_version is just the major version number; it should be changed to a triple, so that source code containing tests for sys.version work properly (currently, they just use the sys.version from the Python runtime that's being used to parse the source code).

See ast_raw.FAKE_SYS (grep for this string, in __main__.py, ast_raw.py, test_pykythe.py, pykythe.pl).