Skip to content
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

Is there a way we can set the Subscription for varname? #104

Closed
vishalvora opened this issue Feb 4, 2024 · 2 comments
Closed

Is there a way we can set the Subscription for varname? #104

vishalvora opened this issue Feb 4, 2024 · 2 comments

Comments

@vishalvora
Copy link

a = {"b": 1, "c":2}

def button():
      print( varname())

a[b] = button()
Can only get name of a variable or attribute, not Subscript(value=Subscript(value=Subscript(value=Attribute(value=Name(id='ds', ctx=Load()), attr='state', ctx=Load()), slice=Constant(value='notebook'), ctx=Load()), slice=Name(id='i', ctx=Load()), ctx=Load()), slice=Constant(value='code'), ctx=Store())
@pwwang pwwang mentioned this issue Feb 5, 2024
@pwwang
Copy link
Owner

pwwang commented Feb 5, 2024

Supported by 0.13.0

@pwwang pwwang closed this as completed Feb 5, 2024
@vishalvora
Copy link
Author

cool!

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

No branches or pull requests

2 participants