This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: n identical objects divide into m different groups
Type: enhancement Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: JAG3R, terry.reedy
Priority: normal Keywords:

Created on 2016-08-25 04:00 by JAG3R, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
heap.py JAG3R, 2016-08-25 04:00
Messages (2)
msg273621 - (view) Author: JAG3R (JAG3R) Date: 2016-08-25 04:00
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
msg273630 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2016-08-25 06:22
Please don't post random code on the issue tracker.  Use python-list to discuss your beginner efforts.  Except in unusually cases, the editor you use in not relevant.
History
Date User Action Args
2022-04-11 14:58:35adminsetgithub: 72044
2016-08-25 06:22:00terry.reedysetstatus: open -> closed
messages: + msg273630

assignee: terry.reedy ->
components: - IDLE
resolution: not a bug
stage: resolved
2016-08-25 04:00:39JAG3Rcreate