On Mar 21, 2014, at 06:11 PM, Andreas Röhler wrote: >Function "print" currently gets font-lock-keyword-face, which doesn't seem >correct. IMO it should get py-builtins-face, right?
I guess this is dependent on whether you're editing Python 2 or Python 3 code. I always bring up python-mode in Python 3 by default (most visibly by defaulting pyflakes to Python 3) so I do see some discrepancies when editing Python 2 code. Not sure how to handle this. I'd prefer "Python 3 mode" to be the default, and thus it probably makes more sense for print to be py-builtins-face. OTOH, it's a little jarring to me to see print in that face, but I guess no more jarring than training myself to wrap its arguments in parens. I really hate to add another config variable for this. Maybe print should be in its own face, defaulting to whatever makes sense for the Python 2 or 3 version being edited? -Barry
signature.asc
Description: PGP signature
_______________________________________________ Python-mode mailing list Python-mode@python.org https://mail.python.org/mailman/listinfo/python-mode