Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46344

Re: Python #ifdef

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Python #ifdef
Date 2013-05-28 23:18 +0100
References <BLU176-W12FAFEA3C7AFD687855E04D7970@phx.gbl>
Newsgroups comp.lang.python
Message-ID <mailman.2329.1369779513.3114.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python #ifdef Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-28 23:18 +0100

csiph-web