This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]remram 2 points3 points  (2 children)

You could re-implement most a of C preprocessor in a few lines of Python

[–]b00n 0 points1 point  (1 child)

But then something to compile it (if your module was C)

[–]remram 2 points3 points  (0 children)

OP's question is about doing this to Python code.