bpo-29104: Fixed parsing backslashes in f-strings. by serhiy-storchaka · Pull Request #490 · python/cpython (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. But the important part (to me) that I missed is that it's not equal to ord('&')
. I had assumed it was, and that somehow that value was being used to produce the '&' in the output. But the point is that the value of the local AMPERSAND
is not being used, correct?
If so, how about using 0, since most people by inspection know it's not an &
?