New submission from Mayank Singhal <17mayanksing...@gmail.com>: The suggestion given when a for and print with the syntax for python 2.x are used together seems erroneous.
Steps to reproduce: Just type following in the python interpreter (3.x): for p in some_list: print p The error produced is: SyntaxError: Missing parentheses in call to 'print'. Did you mean print(in some_list: print p)? I am also attaching a small file, that produces the error when run with: python3 printBug.py ---------- components: Interpreter Core files: printBug.py messages: 310852 nosy: storymode7 priority: normal severity: normal status: open title: Erroneous suggestion in print statement type: behavior versions: Python 3.6, Python 3.7 Added file: https://bugs.python.org/file47412/printBug.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32685> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com