Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

SyntaxError display broken in Python 3 #1225

Closed
culler opened this Issue Jan 4, 2012 · 3 comments

Comments

Projects
None yet
3 participants

culler commented Jan 4, 2012

With python 2.7 ipython responds to a syntax error with a traceback like this:

In [1]: ''.
File "", line 1
''.
^
SyntaxError: invalid syntax

But with Python 3.2 you only get this:

In [1]: ''.
SyntaxError: invalid syntax (, line 1)

There is no pointer showing where the error is.

@ghost ghost assigned takluyver Jan 4, 2012

Owner

takluyver commented Jan 4, 2012

Assigned it to myself to investigate. Thanks for reporting it.

@takluyver takluyver added a commit to takluyver/ipython that referenced this issue Jan 4, 2012

@takluyver takluyver Fix display of SyntaxError in Python 3.
Closes gh-1225
de0ead4
Owner

takluyver commented Jan 4, 2012

See PR #1229

culler commented Jan 5, 2012

Thanks for the lightning response! This looks like a big improvement.

  • Marc

On Wed, Jan 4, 2012 at 3:26 PM, Thomas <
reply@reply.github.com

wrote:

See PR 1229


Reply to this email directly or view it on GitHub:
#1225 (comment)

@fperez fperez closed this in 3782b5c Jan 13, 2012

@fperez fperez added a commit to minrk/ipython that referenced this issue Jan 18, 2012

@fperez @minrk fperez + minrk Merge pull request #1229 from takluyver/i1225
Fix display of SyntaxError in Python 3, plus various cleanups to exception-handling machinery.

Closes #1225.
83dea09

@minrk minrk added a commit to minrk/ipython that referenced this issue Jan 28, 2012

@takluyver @minrk takluyver + minrk Fix display of SyntaxError in Python 3.
Closes gh-1225
93de25f

@yarikoptic yarikoptic pushed a commit to yarikoptic/ipython that referenced this issue May 2, 2014

@takluyver @minrk takluyver + minrk Fix display of SyntaxError in Python 3.
Closes gh-1225
a283c4f

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014

@takluyver takluyver Fix display of SyntaxError in Python 3.
Closes gh-1225
b5ccbb9

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014

@fperez @minrk fperez + minrk Merge pull request #1229 from takluyver/i1225
Fix display of SyntaxError in Python 3, plus various cleanups to exception-handling machinery.

Closes #1225.
de31490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment