Skip to content

Conversation

@FLming
Copy link

@FLming FLming commented Dec 3, 2025

in python3.8, like a[0], a[1:4:2, 1:4:2], is ast.Name + ast.Index / ast.ExtSlice.

case in tests/test_varname.py occurre error in py3.8.

E       varname.utils.ImproperUseError: Node 'x[Index]' detected, but only following nodes are supported: 
varname/utils.py:292: ImproperUseError
======================================================================================================= short test summary info =======================================================================================================
FAILED tests/test_varname.py::test_multi_vars_lhs - AssertionError: Regex pattern did not match.
FAILED tests/test_varname.py::test_subscript - varname.utils.ImproperUseError: Node 'x[Index]' detected, but only following nodes are supported: 

@codesandbox
Copy link

codesandbox bot commented Dec 3, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@pwwang
Copy link
Owner

pwwang commented Dec 3, 2025

Thank you for your contribution. However, we have gently phased out support for Python 3.8. Only versions earlier than v0.11 are compatible with Python 3.8, and new features or fixes will not be applied to Python 3.8.

@pwwang pwwang closed this Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants