A better self
Andreas Kostyrka
andreas at kostyrka.priv.at
Wed Jul 31 08:37:25 EDT 2002
Am Mit, 2002-07-24 um 00.24 schrieb Irmen de Jong:
> Michele Simionato wrote:
>
> > It has not been mentioned in this thread, but there a simple way to cope
> > with this problem without changing the language: a Python preprocessor.
>
> This will work if you know that the code you're dealing with has to be
> processed first before it is real Python code.
>
> It will not work if you are somehow unable to run the preprocessor first.
> Think about importing modules. They have to be processed first,
> otherwise the import will not work because the module is not correct
> Python code.
Well, the preprocessor would need to bring a custom import procedure.
For an example see the page templates in Quixote.
Andreas
More information about the Python-list
mailing list