Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #13080
| Date | 2011-09-10 12:57 -0700 |
|---|---|
| From | "Dr. Phillip M. Feldman" <Phillip.M.Feldman@gmail.com> |
| Subject | Re: can't generate iterator from list |
| References | <32435519.post@talk.nabble.com> <j4f27q$nkd$1@dough.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.946.1315684643.27778.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: can't generate iterator from list "Dr. Phillip M. Feldman" <Phillip.M.Feldman@gmail.com> - 2011-09-10 12:57 -0700
csiph-web