skip to navigation
skip to content

pypreprocessor 0.4.0

Run c-style preprocessor directives in python modules

Latest Version: 0.5.0


  • support c-style directives in python
  • can run post-processed code on-the-fly
  • can output to a file
  • can strip all pre-processor data from the output
  • #defines can be set in code prior to processing

Supported Directives

  • #define
  • #undef
  • #ifdef
  • #else
  • #endif
  • #exclude
  • #endexclude

Python Interpreter Compatibility

pypreprocessor itself was originally designed to provide developers
with a simple solution to write python 2x and python 3x code in the same source file so compatibility is a must.
Currently pypreprocessor has been tested and works in:
  • 2.5
  • 2.6
  • 3.0
  • 3.1
2.4 support has been looked into and can easily be made possible if
users request it.
There are no plans to support earlier versions of python unless
there is sufficient demand from users.


For more extensive information on features, access to the source
repository, documentation, or examples of use cases involving pypreprocessor be sure to visit the project’s Home Page.
File Type Py Version Uploaded on Size
pypreprocessor-0.4.0.linux-i686.exe (md5) MS Windows installer any 2010-06-20 65KB
pypreprocessor-0.4.0.tar.gz (md5) Source 2010-06-20 5KB
  • Downloads (All Versions):
  • 22 downloads in the last day
  • 177 downloads in the last week
  • 840 downloads in the last month