-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3? #64
Comments
Hi there - thanks for the issue! What changes would be involved in porting to py3? AFAIK it currently runs correctly, so would this just involve modernizing the code style in a non-backwards-compatible way (i.e., does this issue really mean dropping support for py2)? |
Oh; if it already runs correctly under 3, that's great news. Then maybe the only change needed would be to change the script's shebang to Perhaps the best option would be allowing specifying the python command to invoke for the script instead of relying on the shebang? (or is this already in there somewhere?) |
Actually, on reading over Pep-394 again, it sounds like allowing Though perhaps configurability or some other smarts could still be useful since plain 'python' is becoming more rare. (and latest macOS currently pops up a scary 'This software needs to be updated' dialog anytime something invokes 'python') |
Hi, I experienced similar issue that is written in the previous comment. I use macOS 12.6 and there is no called Changing shebang to Would it be possible to make this change official? |
@szikes-adam thank you for your comment! If I am understanding your request correctly, you are asking to make this change, correct? diff --git a/bin/pycheckers.py b/bin/pycheckers.py
index d59bf20..69209c9 100755
--- a/bin/pycheckers.py
+++ b/bin/pycheckers.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A hacked up version of the multiple-Python checkers script from EmacsWiki.
Original work taken from http://www.emacswiki.org/emacs/PythonMode, author This would have the effect of dropping python 2 compatibility. Do you know if it's common to only have |
Yes, I think. I have checked the vanilla Ubuntu 22.04 and it does not contain I have been thinking about this problem. Actually the true question is: whether your script will work properly, if the system runs |
Hi there. I'm having trouble running The issues I have are:
All issues come down to having this script properly migrated to Python3. I understand that developers might have to continue supporting Python2 scripts and therefore it could be useful that this script is to be able to lint Python2 scripts. But that doesn't mean running our development environment on a system that still uses Python2. I think it is time for us to migrate this script to Python3 eventought we can try to keep support linting Python2 scripts. |
I made some changes regarding the above in a branch. How can I submit the changes for review? Should I fork the repo for this? |
I think a fork and PR would be great! |
I was recently reading that the next minor update to macOS (12.3) will finally remove python 2.x (not to mention that 2.x has been EOL for a while now) which got me wondering if porting pycheckers to 3.x would be a big pain.
If someone wants to run a 2to3 pass and set up a test branch or something, I'd be happy to help test it out (at least the mypy3 and pylint checkers). Also happy to set up said branch myself otherwise. Anyone else interested or has anyone tried this already?
The text was updated successfully, but these errors were encountered: