On Wed, Oct 21, 2009 at 3:26 PM, Lizhi Yang <yangli...@gmail.com> 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  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to