-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 version for seastar-addr2line #2433
Comments
hi Travis,
probably you meant python 3.6? as python 3.9 was released 4 years ago, see https://www.python.org/downloads/release/python-390/ . it's a good question when it comes to a stand-alone script. as we don't have a but as you pointed out Python 3.9 was released @denesb what do you think? is it safe to start using Python 3.9 ? |
A separate (but related) question is what will be the benefit to assume Python 3.9. addr2line is a nothing more than a small script, 390 lines of code. Will it really benefit from using new Python 3.9 features? Will "type annotations" help anything? There is the possibility that the answer is "no". As the American saying goes, "if it ain't broke, don't fix it" ;-) However, if the answer is "yes" - type annotations will help me grow addr2line from a 300-line half-working script into a fabulous 3000-line script, then, I guess, go ahead. |
I have no idea 😆. |
@tchaikov wrote:
Ooops sorry you are right. I was confusing two things: type hints were added around 3.6 (ish) which was that long ago, but my proposal was actually for 3.9 which has even more goodies. |
@nyh wrote:
My biased opinion is that type hints are very useful and low overhead and a net positive for anything which is non-trivial (and in my view addr2line is already well beyond that point). Especially for scripts which have limited test coverage (here, because we don't have any test "binaries" to run on, the testing omits a big part of the interesting work and so coverage is limited), type hints catch a lot of bugs before they go in. In any case, I did notice that this ship has already sailed as the existing script had at least a couple of type hints already (yes, the change that introduced them was also mine). |
What is the Python version requirement for seastar-add2line?
Evidently it requires at least Python 3.6 since it uses f-strings, but I'm not sure beyond that.
I'd like to make some enhancements, e.g., type annotations but would need to know if say targeting Python 3.9 (released 8 years ago) is alright.
The text was updated successfully, but these errors were encountered: