[issue20302] Argument Clinic: meaningful names for group flags

Larry Hastings report at bugs.python.org
Wed Jan 22 04:05:59 CET 2014


Larry Hastings added the comment:

Well, they're going to have to change somehow, because the concepts of "left" and "right" are going away (see #20303).  However, your suggested new name for these functions would be awful for large groups.  Consider curses.window.overlay:

window.overlay(destwin[, sminrow, smincol, dminrow, dmincol, dmaxrow, dmaxcol])

Your algorithm would generate the name "use_destwin_sminrow_smincol_dminrow_dmincol_dmaxrow_dmaxcol".


I suggest instead: remap the names to less-confusing names in your
impl function.  Compiler optimization will make the redundant name disappear, so it will have no run-time cost.

----------
resolution:  -> wont fix
stage: needs patch -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20302>
_______________________________________


More information about the Python-bugs-list mailing list