First time here? Check out the FAQ!

s0lstice's profile - activity

2020-01-27 01:53:08 -0500 received badge Popular Question (source)
2020-01-24 06:49:32 -0500 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 02:06:22 -0500 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-23 02:05:29 -0500 answered a question 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 14:57:30 -0500 received badge Student (source)
2020-01-22 14:56:57 -0500 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 p