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

Python: Add x in <var> test for StringConstCompare #7217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

@RasmusWL
Copy link
Member

@RasmusWL RasmusWL commented Nov 23, 2021

Fixing this problem is not 100% trivial. We want to track iterables that only contain string constants throughout the program (easy with type-tracking), but we probably don't want to include those that could have been modified... I don't want to go down the rabbit whole of doing that implementation right now, so this PR only adds tests cases.

Along with the root cause, which is the `StringConstCompare`
BarrierGuard, that does only allows `in <iterable literal>` and not
`in <variable referencing iterable literal>`
@RasmusWL RasmusWL requested a review from as a code owner Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant