-
Notifications
You must be signed in to change notification settings - Fork 196
Python complains about lru_cache (Python versions compatibility issues) #114
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
Comments
Thanks for the report! I don't think we tried with anything earlier than 3.8, but this doesn't seem to break anything. Would you like to wait until October and submit a PR (just in case you're into #hacktoberfest)? |
Yeah, I wish I could always use latest Python too. I'm not into #hacktoberfest (at least yet) but I can try to contribute OSS in October 😄 I will submit a PR in October then. |
Thanks!
I'll leave the issue open as a reminder.
…On Mon, Sep 28, 2020 at 11:12 AM Alexander Pinegin ***@***.***> wrote:
Yeah, I wish I could always use latest Python too.
I'm not into #hacktoberfest (at least yet) but I can try to contribute OSS
in October 😄 I will submit a PR in October then.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#114 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC2BANSDQSARQTKM5OBO5DSICRWJANCNFSM4R4R234A>
.
|
@BloodyFoxy sorry, that was overlooked. We don't specify which particular Python 3 versions we support so I assume all of them. We can try adding an action for some older version (oldest still supported, 3.5?) to catch issues like this. |
How does the problem look like and what steps reproduce it?
Trying to launch a sample tm.py from root of repository:
Can you reproduce it using the latest master?
Yes
What is your running environment?
OS: SUSE SLES 15 SP1
Python version: Python 3.6.10
Also reproduced in Docker container
python:3.7.9-alpine
What have you already tried to solve the problem?
Change
@lru_cache
on line 487 to@lru_cache()
.https://github.com/izar/pytm/blob/5db9b2e69db7c2aca43ae7d5bb6de9a3ebd2b9a6/pytm/pytm.py#L781
See this Python bug
After changing to
@lru_cache
still works in Docker containerpython:3.8.6-alpine
which is current stable version of Python 3.8The text was updated successfully, but these errors were encountered: