You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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:
Add argument to tell which set/bit operations are preferred
Rely on typing information (this is stretchy, not applicable for now)
I will work on this issue this week. As for comprehension, we can support it similarly to that of sum/prod operations. Since binary/set operations are not trivial to distinguish, it may be good to provide a flag to switch these operators by users.
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: