[issue13364] Duplicated Code
Mark Dickinson
report at bugs.python.org
Mon Nov 7 08:04:13 CET 2011
Mark Dickinson <dickinsm at gmail.com> added the comment:
How would you suggest refactoring this?
For that example, I'd prefer not to remove the repetition; as it is, the code is clean and clear. Eliminating the repetition would involve adding an extra layer of indirection, making the code in one of these functions harder to follow.
----------
nosy: +mark.dickinson
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13364>
_______________________________________
More information about the Python-bugs-list
mailing list