How can I check the syntax of Python code in Emacs without actually executing it?

后端 未结 5 2060
醉话见心
醉话见心 2021-02-01 23:28

Python\'s IDLE has \'Check Module\' (Alt-X) to check the syntax which can be called without needing to run the code. Is there an equivalent way to do this in Emacs instead of ru

5条回答
  •  广开言路
    2021-02-01 23:40

    You can use Pyflakes together with Flymake in order to get instant notification when your python code is valid (and avoids a few common pitfalls as well).

提交回复
热议问题