www.pixinsight.com
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This forum is closed since 5 March 2020
PixInsight Forum is now available at:
https://pixinsight.com/forum/
News:
Home
Help
Search
Login
Register
PixInsight Forum (historical)
»
PixInsight
»
Bug Reports
»
[1.8RC2] CodeEditor should highlight Python print keyword
« previous
next »
Print
Pages: [
1
]
Author
Topic: [1.8RC2] CodeEditor should highlight Python print keyword (Read 2877 times)
georg.viehoever
PTeam Member
PixInsight Jedi Master
Posts: 2132
[1.8RC2] CodeEditor should highlight Python print keyword
«
on:
2013 January 24 05:51:17 »
"print" is a keyword in Python2 (see
http://docs.python.org/2/reference/lexical_analysis.html#identifiers
), but it is not highlighted (see
http://pixinsight.com/forum/index.php?topic=5109.msg35229#msg35229
). You may have used the syntax rules from Python3
http://docs.python.org/3.3/reference/lexical_analysis.html#identifiers
where "print" is not a keyword. I would suggest to highlight the union of Python2/3 keywords, or provide a switch in CodeEditor.
Georg
Logged
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)
Juan Conejero
PTeam Member
PixInsight Jedi Grand Master
Posts: 7111
Re: [1.8RC2] CodeEditor should highlight Python print keyword
«
Reply #1 on:
2013 January 27 05:04:08 »
Hi Georg,
You're right, of course. I used the Python 3 documentation. I have already included 'print' as a keyword, so this fix will be included in the next RC version (we are considering releasing an RC4 version), and of course in the final 1.8.0.
Logged
Juan Conejero
PixInsight Development Team
http://pixinsight.com/
Print
Pages: [
1
]
« previous
next »
PixInsight Forum (historical)
»
PixInsight
»
Bug Reports
»
[1.8RC2] CodeEditor should highlight Python print keyword