Sublimetext2 works with python console

I am trying to write two or more lines of code in the python console in the SublimeText2 editor, and I get the following error when I press enter after ::

>>> for i in dir(): File "<string>", line 1 for i in dir(): ^ SyntaxError: unexpected EOF while parsing 

Is this a mistake or have I done something wrong? And one more question - how to use multiline methods in the console?

+4
source share
1 answer

The Sublime Text console is not intended for coding. This mainly deals with troubleshooting and plugin output. Although you enter a few lines using, I highly recommend against this. Will Bond will do this to install Package Control , which, if you have already downloaded it, I recommend you do it. If you are looking for python REPL, check out the excellent Wuub SublimeREPL plugin that will give you a terminal / console, for example, for quick python login.

+4
source

All Articles