s0lstice's profile - activity
| 2020-01-27 07:53:08 +0000 | received badge | Popular Question (source) |
| 2020-01-24 12:49:32 +0000 | marked best answer |
Making Code Warnings aware of print_function
If I use the following at the top of a Python source file, to replace the print statement with a print function: from __future__ import print_function subsequent lines such as: print("hello world", end = '') execute correctly, but are highlighted with SyntaxError by the IDE. It appears the IDE is expecting a print statement. How do I make it aware of the __future__ import? (Wing Pro 7.2.0.1, Python 2.7.12) Thanks |
| 2020-01-23 08:06:22 +0000 | commented answer |
Making Code Warnings aware of print_function
Yes, the issue only arises when setting sep, end, or file in a print function. Unfortunately, Code Warnings sees this as |
| 2020-01-22 20:57:30 +0000 | received badge | Student (source) |
| 2020-01-22 20:56:57 +0000 | asked a question |
Making Code Warnings aware of print_function
Making Code Warnings aware of print_function If I use the following at the top of a Python source file, to replace the |