New submission from Raymond Hettinger <raymond.hettin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue37178> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com