[issue28964] AST literal_eval exceptions provide no information about line number

Batuhan Taskaya report at bugs.python.org
Mon Dec 7 08:14:54 EST 2020


Batuhan Taskaya <isidentical at gmail.com> added the comment:

> Usually literal_eval() is used with short one-line input. For what large documents do you use it?

I kind of agree with Serhiy on this, nearly every use case I've encountered was simple, single-line expression. Though, by seeing Irit's patch I think the implementation is reasonable enough to do.

----------
nosy: +BTaskaya

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


More information about the Python-bugs-list mailing list