[issue37491] IndexError in get_bare_quoted_string

Terry J. Reedy report at bugs.python.org
Tue Jul 9 12:47:17 EDT 2019


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Also, quotes should be attributed to a file and patch snipped should indicate the target.  

As for the bug, the author(s) of the expressions "value[1:]" and "value[0]" presumably *expected* value to initially have length 2 so that it would be be non-empty after clipping.  In the absence of additional information, it is possible that the bug is in the unquoted code that produced value.  This is potentially true whenever a function or expession raises.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37491>
_______________________________________


More information about the Python-bugs-list mailing list