资 源 简 介
pypreprocessor 0.4.0 (beta)
Features
support c-style directives in python
* using an intentionally limited subset of the c directives, and then some...
can run post-processed code on-the-fly
* pre-process and run code all in one shot
* accurately preserves error tracebacks for the source file
can output to a file
* as easily as setting a flag
* with a user specified filename if defined
can strip all pre-processor data from the output
* as easily as setting a flag
* removes all preprocessor directives
* removes all preprocessor specific code
#defines can be set in code prior to processing
* useful if you need to run a file in different modes
* eliminates the need for decision logic in the preprocessor itself
Benefits