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


Groups > comp.lang.python > #46328

Python #ifdef

From Carlos Nepomuceno <carlosnepomuceno@outlook.com>
Subject Python #ifdef
Date 2013-05-28 22:46 +0300
Newsgroups comp.lang.python
Message-ID <mailman.2317.1369770400.3114.python-list@python.org> (permalink)

Show all headers | View raw


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? 		 	   		  

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


Thread

Python #ifdef Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-28 22:46 +0300
  Re: Python #ifdef 88888 Dihedral <dihedral88888@gmail.com> - 2013-05-28 16:04 -0700

csiph-web