Larry Hastings added the comment: What do you think of this approach? Now a "Destination" object behaves like an array of text accumulators. If you ask for one that doesn't exist it's created for you. When the Destination is dumped, the output from each accumulator is joined together, like buffer[0] + buffer[1] + buffer[2]. (You can even specify negative indices, if you want text that goes *before* the default text accumulator.)
With this approach, all the #ifndef stanzas are at the end of the emitted text. ---------- Added file: http://bugs.python.org/file38538/larry.ac_multiple_macro_definitions.diff.3.txt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23500> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com