Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPython 1.1.0 Qtconsole syntax highlighting highlights python 2 only built-ins when using python 3 #4621

Closed
qria opened this issue Dec 2, 2013 · 1 comment · Fixed by #4622
Milestone

Comments

@qria
Copy link

qria commented Dec 2, 2013

I used IPython 1.1.0 with Python 3.3.2 on 64bit windows to test this.

IPython 1.1.0 Qtconsole highlights deprecated python2 built in functions.
This includes :
unicode, reload, execfile, cmp, apply, file, intern, basestring, xrange, buffer, long, unichr, raw_input, coerce, reduce

I don't think they should be highlighted as they are deprecated. (IDLE doesn't highlight them.)

minrk added a commit to minrk/ipython that referenced this issue Dec 2, 2013
and make the default Python 3 on Python 3

This might help non-Python kernels with the QtConsole

closes ipython#4621
@minrk
Copy link
Member

minrk commented Dec 2, 2013

Pygments does the highlighting, and they have a separate Python 3 lexer. Can you test #4622?

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
and make the default Python 3 on Python 3

This might help non-Python kernels with the QtConsole

closes ipython#4621
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants