-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Use six or drop python2? #1326
Comments
Dropping py2 isn't likely to happen any time soon, I'll be up-front about that. Certainly not in 7.0, that's too soon. There's enough stuff planned for that release that I'd rather not also go through the code removing py2 compatibility shims during the development cycle. I can't speak to why For now, this will be closed, but the discussion can continue. It can be reopened if I change my mind. |
I hope the sopel version out in 2020 will not bother with python2 anymore. For that day I'll note that since the modules basically just do the following: query API -> format a string -> privmsg the string, combining the |
I don't see how A number of other Python projects I've looked at have some kind of internal |
In pre 3.5, you have to do this: def f(bot):
a = blah
# ...
bot.say("a: {a} | b: {b} | c: {c} | ...".format(a=a, b=b, c=c,...) The fact that you do this so much in sopel and its modules, f-strings are a godsend. I.e., if much of the work in modules is generating interpolated strings, wouldn't it be nice to have sugary interpolated strings? :) |
I have done almost none of it at all, having joined the project only a few months ago, but I know what you're saying. 😛 Sure, it would be nice. But that feature alone isn't worth dumping py2 support and bumping the minimum py3 version to 3.6 at the same time—especially since if it's really wanted, there's a module to get f-strings all the way back to py2.7 (the minimum Sopel currently supports). |
Maybe this is an unpopular opinion, but there is a lot of complication in sopel by maintaining python2 and python3 compatibility, without using
six
. @elad661 addedsix
type features by hand, but I don't see the point of not just usingsix
(6.6) or dropping python2 (7.0).The text was updated successfully, but these errors were encountered: