Hi, Dino,
Von: Dino Viehland [mailto:di...@microsoft.com]
> So you want to warn if the file contains a print statement w/o from
> __future__ import print_function? What if it's a call to print such as
> print('foo') which is valid in both 2.x and 3.x?
Considering our user base, I could ignore
11, 2011 9:26 AM
To: Markus Schaber; Dino Viehland
Cc: ironpython-users@python.org
Subject: Re: [Ironpython-users] Warn user when using old print syntax
I think you'd have to patch the code to add the print check to the -3 warnings.
Dino might be able to point out where you would do that.
- Jeff
I think you'd have to patch the code to add the print check to the -3
warnings. Dino might be able to point out where you would do that.
- Jeff
On Tue, Oct 11, 2011 at 9:13 AM, Markus Schaber
wrote:
> Hi,
>
> What is the easiest way to detect and warn the user when he uses the old
> print synta
Hi,
What is the easiest way to detect and warn the user when he uses the old print
syntax?
It seems that "-3" aka "WarnPy3k" does not warn about it, and a simple check
whether the user does "from __future__ import print_function" gives false
positives if the user does not print at all.
Thanks