Antoine Pitrou <pit...@free.fr> added the comment: Le Fri, 05 Mar 2010 02:21:30 +0000, Alexander Belopolsky <rep...@bugs.python.org> a écrit : > > Code duplication is unavoidable because the goal is to give access to > machine arithmetics which means (# types) x (# operations) of very > similar looking functions. I considered reducing (perceived) code > duplication through some pre-processor magic, but doing so would make > code much harder to understand and almost impossible to debug.
Carefully written macros shouldn't be hard to understand. At least there wouldn't be the risk of overlooking one of the methods when making modifications. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue887237> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com