{x for x in range(10)}
works perfectly on IDLE, but when I try this in eclipse (with Pydev plugin) I get a syntax error:
Undefined variable: x
Is it because Pydev doesn't support set comprehensions or something? What can I do to make this work? (This was just one example that doesn't work. All set comprehensions don't work for me).
(I'm using Python 3)
This is a bug in PyDev; in this case ignore the editor's warning and execute the code: it will work.
I get this a lot, PyDev isn't perfect but it's good enough!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With