[New-bugs-announce] [issue27857] n identical objects divide into m different groups

JAG3R report at bugs.python.org
Thu Aug 25 00:00:39 EDT 2016


New submission from JAG3R:

hello, everyone. I'm a newbie learner.^^
Recently, I learn the itertools and write this function...
heap(m,n)----->
X=[]
X.append([n  ,0,...,0] (len=m))
X.append([n-1,1,...,0])
...
X.append([n-1,0,...,1])
X.append([n-2,2,...,0])
X.append([n-2,1,1..,0])
...
X.append([0  ,0,...,n])
return X

----------
assignee: terry.reedy
components: IDLE
files: heap.py
messages: 273621
nosy: JAG3R, terry.reedy
priority: normal
severity: normal
status: open
title: n identical objects divide into m different groups
type: enhancement
versions: Python 2.7
Added file: https://bugs.python.org/file44216/heap.py

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


More information about the New-bugs-announce mailing list