INADA Naoki <songofaca...@gmail.com> added the comment: > in practice `ast.parse()` is often used with smaller fragments of source code > that don't directly correspond to a complete module, and this behaviour makes > no sense in such cases. > > The resulting bug in kdev-python took a while to track down (because I had no > immediate reason to suspect this change), and will be somewhat awkward to > workaround.
Would you elaborate it more, please? Without concrete example, we cannot to decide how it's important problem. > I would prefer that this be reverted; it's likely to break a variety of users > in strange ways. I don't want to revert, see discussions in this issue and PR-5927. And would you give us real world example of "variety of users"? How many applications use ast.parse for such way? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32911> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com