On 8/18/2016 8:18 PM, Steven D'Aprano wrote:
On Fri, Aug 19, 2016 at 02:17:29AM +1000, Chris Angelico wrote:

Format codes are just text,

I really think that is wrong. They're more like executable code.

https://www.python.org/dev/peps/pep-0498/#expression-evaluation

I agree with you here. I just note that the strings passed to exec, eval, and compile are also executable code strings (and nothing but!). But I don't remember a suggestion that *they* should by colored as anything other than a string. However, this thread has suggested to me that perhaps there *should* be a way to syntax check such strings in the editor rather than waiting for the runtime call.

--
Terry Jan Reedy

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to