[docs] [issue16418] argparse with many choices can generate absurdly long usage message

Terry J. Reedy report at bugs.python.org
Sun Nov 11 20:55:05 CET 2012

Terry J. Reedy added the comment:

I am arguing that (x)range *should* be usable for large numbers of options *because* the containment test is O(1). What happens is you *do* use xrange instead of range in 2.7 or 3.x instead of 2.7?

In 2.x, range(n) *is* a list so that is a bad choice for large n, regardless of the display issue, which could be fixed separately as is being done on other issues.


Python tracker <report at bugs.python.org>

More information about the docs mailing list