{x for x in range(10)}
works fine on IDLE, but when I try to do this in eclipse (with the Pydev plugin), I get a syntax error:
Undefined variable: x
Is it because Pydev doesn’t support many concepts or something else? What can I do to make this work? (This was just one example that doesn't work. All settings for me don't work).
(I am 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 it a lot, PyDev is not perfect, but it is good enough!
, Pydev Python 3.
, Python
import sys sys.stdout.write( sys.version )
Source: https://habr.com/ru/post/1761762/More articles:очень большое приложение для просмотра веб-приложений - sortingHow to overwrite powershell code in bash - bashiPhone Core Location: Differential pin for custom contact image - iphoneA large number of unit tests freezes with a transaction with an incompatible binder - javaFirebird and Table, lowercase field name - firebirdWhen is DispatcherUnhandledException and AppDomain.UnhandledException insufficient (WPF application)? - .netHow to read from a file and do grep in Perl? - perlmaking cassandra data store on local node - cassandrahow to enter variable in python script when opening cmd from command line? - pythonThe fastest way to read / write to a SQL server with a large data set? - performanceAll Articles