[New-bugs-announce] [issue37178] One argument form of math.perm()

Raymond Hettinger report at bugs.python.org
Thu Jun 6 12:30:28 EDT 2019


New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:

The perm() function should have a one argument form and change its signature to ``perm(n, k=None)``.  This matches what itertools:

itertools.permutations(iterable, r=None)
   Return successive r length permutations of elements
   in the iterable.

   If r is not specified or is None, then r defaults to
   the length of the iterable and all possible full-length
   permutations are generated.

----------
components: Library (Lib)
messages: 344833
nosy: mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
priority: normal
severity: normal
status: open
title: One argument form of math.perm()
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37178>
_______________________________________


More information about the New-bugs-announce mailing list