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
You're right, this is a real problem. It has already been reported in #872, but nobody had the time to fix it yet.
I'm closing this one as a duplicate.
I don't know how, but for some reason, after 6 years of Python programming, I have always believed that a semicolon was required to terminate a single line if statement. Thank God for find and replace....
EDIT: In fact, thank God for "Find in files". This is an awesome feature and I use it a lot.
Description of your problem
What steps will reproduce the problem?
if True: print "Yes!";
What is the expected output? What do you see instead?
The semicolon should indicate that the if statement is finished and no colon in required.
Instead, Spyder places a colon after the semicolon giving something like this:
if True: print "Yes!";:
This will cause an invalid syntax error
Please provide any additional information below
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
IPython >=1.0 : 4.1.2 (OK)
jedi >=0.8.1;<0.9.0: 0.9.0 (NOK)
matplotlib >=1.0 : 1.5.1 (OK)
pandas >=0.13.1 : 0.18.0 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.5.0 : 1.1.0 (OK)
pygments >=1.6 : 2.1.1 (OK)
pylint >=0.25 : None (NOK)
qtconsole >=4.0 : 4.2.0 (OK)
rope >=0.9.2 : 0.9.4 (OK)
sphinx >=0.6.6 : 1.3.5 (OK)
sympy >=0.7.3 : 1.0 (OK)
zmq >=2.1.11 : 15.2.0 (OK)
The text was updated successfully, but these errors were encountered: