Nick Coghlan added the comment:

Eric, right, I left a couple of logical leaps out of my reply as well. My first 
thought was the same as yours but then I went:

- that means we need to split on commas
- which means we need to track whether or not we're inside a quoted string or 
not
- which is probably more complexity than is warranted just to produce a 
slightly better hint to the user

Result: let's just use "<expr>" as a placeholder for "the thing you were trying 
to print"

Although now that I put it that way, "<output>" is probably a better 
user-oriented placeholder, since "expr" (short for expression) is a very 
language-developer-oriented term, while "print(<output>)" is closer to 
pseudocode.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30597>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to