On 29/04/2020 20:23, Schachner, Joseph wrote:
norm=lambda m: m+(m and(m[-1]!= '\n'and'\n'or' ')or'\n')Parentheses 1 2 1 0 quotes 1 0 1 0 1 0 1 0OK I don't see any violation of quoting or parentheses matching. Still trying to figure out what this lambda does.
Presumably it's something to do with recognising string prefixes? -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list