Implementing #define macros similar to C on python

Terry Reedy tjreedy at udel.edu
Fri Nov 15 19:22:06 EST 2013


On 11/15/2013 6:36 PM, JL wrote:
> Thanks! This is the answer which I am seeking. However, I am not able to get the following line to work. I am using python 2.7.5
>
> debug_print = print

Start your file with
from __future__ import print_function
and the above should work.

Oh, and please snip stuff not relevant to your post.

-- 
Terry Jan Reedy




More information about the Python-list mailing list