Python #ifdef

Mark Lawrence breamoreboy at yahoo.co.uk
Tue May 28 18:18:34 EDT 2013


On 28/05/2013 20:46, Carlos Nepomuceno wrote:
> Are there Python 'preprocessor directives'?
>
> I'd like to have something like '#ifdef' to mix code from Python 2 and 3 in a single file.
>
> Is that possible? How? 		 	   		
>

https://pypi.python.org/pypi/six/1.3.0

-- 
If you're using GoogleCrap™ please read this 
http://wiki.python.org/moin/GoogleGroupsPython.

Mark Lawrence




More information about the Python-list mailing list