I have code with structure: ``` if cond1: [some code] if cond2: #where cond2 depends on the above [some code] [ more code]
else: [ do xxyy ] else: [ do the same xxyy as above ] ``` So what's the best style to handle this? As coded, it violates DRY. Try/except could be used with a custom exception, but that seems a bit heavy handed. Suggestions? -- https://mail.python.org/mailman/listinfo/python-list