-
Notifications
You must be signed in to change notification settings - Fork 387
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
Supporting Set operations and comprehensions #56
Comments
Tahnks! I think this is reasonable proposal. To clarify, this includes 3 distinct features as follows:
We need to take care about the second case because set operations shares the same syntax with bit operations and it is not essentially distinguishable by the syntax tree. We may need something like:
|
I will work on this issue this week. As for comprehension, we can support it similarly to that of |
All are now supported. Since it is hard to disambiguate set/bit operations, it is now controlled by a flag. |
It would be nice to support some more set operations and comprehensions, since they're pretty easy to use in python. (I assume this is going to be fairly difficult though, since it requires a fair amount of information from the python ast)
For example, this code:
Returns this currently:
It would be nice to show something like this:
And operations on sets:
Returns this currently:
It could be something like this:
in
andnot in
could also be supported, likex in A
orx not in A
like this:The text was updated successfully, but these errors were encountered: