python 2 is dead now. Can we change the default language for the .py extension to python3?
Obviously this is not backwards compatible, but when needed it can easily be solved by putting #!/usr/bin/env python2 at the top of a python2 .py file.
For BAPCtools, I'm using the following in languages.yaml:
(side question: I don't think problemtools supports overriding languages.yaml by a repository/contest-level languages.yaml, right? Otherwise one could just add this snippet to the contest specific configuration.)
Something else I've just noticed: apparently, Kattis uses PyPy (https://open.kattis.com/help/python3), but Problemtools does not. I guess that should also be changed?
python 2 is dead now. Can we change the default language for the
.py
extension to python3?Obviously this is not backwards compatible, but when needed it can easily be solved by putting
#!/usr/bin/env python2
at the top of a python2.py
file.For BAPCtools, I'm using the following in
languages.yaml
:(side question: I don't think
problemtools
supports overridinglanguages.yaml
by a repository/contest-levellanguages.yaml
, right? Otherwise one could just add this snippet to the contest specific configuration.)