Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #13080 > unrolled thread
| Started by | "Dr. Phillip M. Feldman" <Phillip.M.Feldman@gmail.com> |
|---|---|
| First post | 2011-09-10 12:57 -0700 |
| Last post | 2011-09-10 12:57 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: can't generate iterator from list "Dr. Phillip M. Feldman" <Phillip.M.Feldman@gmail.com> - 2011-09-10 12:57 -0700
| From | "Dr. Phillip M. Feldman" <Phillip.M.Feldman@gmail.com> |
|---|---|
| Date | 2011-09-10 12:57 -0700 |
| Subject | Re: can't generate iterator from list |
| Message-ID | <mailman.946.1315684643.27778.python-list@python.org> |
Very nice explanation! I've circumvented the problem by returning a `deepcopy` of the list. I've also added an acknowledgment. The revised code is attached. I'd like to see both balls in numbered boxes (this code) and balls in unnumbered (indistinguishable) boxes in Python's `itertools` module, but don't know whom to contact about this. Also, I haven't yet worked out a good algorithm for balls in unnumbered boxes. Any suggestions will be appreciated. Phillip http://old.nabble.com/file/p32439307/balls_in_numbered_boxes.py balls_in_numbered_boxes.py -- View this message in context: http://old.nabble.com/can%27t-generate-iterator-from-list-tp32435519p32439307.html Sent from the Python - python-list mailing list archive at Nabble.com.
Back to top | Article view | comp.lang.python
csiph-web