> tag_handler = { > > "span": lambda content: content, > > "div": lambda content: "\n"+content+"\n", > > "p": lambda content: "\n"+content+"\n", > > "br": lambda content: "\n", > > } > > > > If you wanted to expand one of those to have statements in it, you'd > > have to take it out-of-line and break the flow.
what 'bout, well , this? tag_handler = { "span": lambda content: content, "div": lambda content: "\n"+content+"\n", "p": lambda content: "\n"+content+"\n", "br": lambda content: "\n", } yours truly is trying to convey the actual fact that python could already be untidy; what has kept the language tidy so far is partly because moral developers (the syntax being another half) yours truly will hence think the proposition won't be directly untidifying the syntax -- much in the sense that not-caring-for-ws-in-"{" won't. -- https://mail.python.org/mailman/listinfo/python-list