How to exec a string which has an embedded '\n'? (Posting On Python-List Prohibited)

Niles Rogoff eternal-september at niles.xyz
Mon Jan 1 13:52:47 EST 2018


> 
> I don't even dare to read through this code:-(
> 

This kind of code is always fun to write and not at all fun to work with 
later. I just glanced through my own projects and found lots of code that 
works similarly (generates html + javascript, and the javascript 
generates more html). It's pretty ugly

https://github.com/nilesr/index/blob/master/generate.py

https://github.com/nilesr/formgen/blob/master/form_generator.py



More information about the Python-list mailing list