On Wed, Oct 21, 2009 at 3:26 PM, Lizhi Yang <[email protected]> wrote:
> Is there anything similar to ifdef statement in C or C++ in python?

No, Python doesn't have a preprocessor. Can you say why you want it?
You may be able to do what you want using an ordinary if statement,
for example you can conditionally import or define objects.

Kent
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to