Need Preprocessor Module!

Akinori Tsuchida akituc at pk.highway.ne.jp
Tue Jan 25 16:14:53 EST 2000


I would like to use preprocessor-like functionality in Python
like we use in C/C++.

Many corresponding functionalities are available in Python, but
 I think preprocessor is still useful.

For example, you can comment multiple lines just by "if 0" and "endif"
with no need to consider indenting.
You don't have to take care of not embracing another comment section, I
mean...

#if 0
#if 0
   not required part.
#endif
#endif

Above is treated as expected but

  """
  """
  not required part.
  """
  """
not the case with above. (unwanted part still remains.)



Well, Any module available ?
like,... input strings containing preprocessor lines
and then output processed strings.

#ifdef YOU_KNOW
#include INFO
Please_Answer(INFO)
#endif

Thanks for reading this article.

Akinori Tsuchida.




More information about the Python-list mailing list