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 <rep...@bugs.python.org> <https://bugs.python.org/issue27857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com