[issue28964] AST literal_eval exceptions provide no information about line number
Steve Merritt added the comment: Thank you! On Fri, Dec 25, 2020 at 11:05 AM Batuhan Taskaya wrote: > > Change by Batuhan Taskaya : > > > -- > resolution: -> fixed > stage: patch review -> resolved > status: open -> closed > > ___ > Python tracker > <https://bugs.python.org/issue28964> > ___ > -- ___ Python tracker <https://bugs.python.org/issue28964> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28964] AST literal_eval exceptions provide no information about line number
Steve Merritt added the comment: I'll try to get to it this weekend. A bit swamped on another project right now. Thanks for the interest and the reminder! -- ___ Python tracker <http://bugs.python.org/issue28964> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28964] AST literal_eval exceptions provide no information about line number
Steve Merritt added the comment: We're using Python dictionaries to express sizeable (read: 100-600 lines) chunks of configuration data. We previously used JSON, but we now use Jinja2 to template chunks of this configuration data, and JSON's inability to handle trailing commas creates a problem here. So we've been using ast.literal_eval, but the lack of line numbers makes debugging problems with the configurations a painful process. On Sun, Jan 1, 2017 at 2:41 AM Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Usually literal_eval() is used with short one-line input. For what large > documents do you use it? > > -- > nosy: +serhiy.storchaka > > ___ > Python tracker > <http://bugs.python.org/issue28964> > ___ > -- ___ Python tracker <http://bugs.python.org/issue28964> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28964] AST literal_eval exceptions provide no information about line number
New submission from Steve Merritt: Without line numbers, debugging syntax errors in large documents is a tedious and painful process. -- components: Library (Lib) files: mywork.patch keywords: patch messages: 283142 nosy: stevemerritt priority: normal severity: normal status: open title: AST literal_eval exceptions provide no information about line number type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file45879/mywork.patch ___ Python tracker <http://bugs.python.org/issue28964> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com