[issue5139] Add combinatoric counting functions to the math module.

Raymond Hettinger report at bugs.python.org
Tue Feb 3 21:42:20 CET 2009


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

-1 on perms_with_repetitions.  That's headed in the direction of bloat
-- taking every formula in a textbook and putting it in the module. 
Also, it is somewhat use case challenged.  I've *never* needed this in
my 30 years of programming.

I like Mark's idea for names that indicate that they return a number or
count instead an iterator.  Perhaps something like:

  ncombinations()
  npermutations()
  ncombinations_with_replacement()

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


More information about the Python-bugs-list mailing list