[Ironpython-users] Warn user when using old print syntax

Markus Schaber m.schaber at 3s-software.com
Tue Oct 11 18:13:24 CEST 2011


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!

Best regards

Markus Schaber
-- 
___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50

Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com 
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 




More information about the Ironpython-users mailing list