Message160828
| Author |
Jiba |
| Recipients |
Jiba, petri.lehtinen |
| Date |
2012年05月16日.11:08:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337166495.99.0.869810650324.issue14828@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ok, I understand.
However, in my initial problem, the sequence passed to groupby was a set, e.g. (modifying my previous example) :
groupby(set([p1, p2, p3]), lambda p: p.key)
If I understand well how groupby() works, the result of a groupby performed on a set is unpredictable, since it depends of the order of the items when iterating over the set. Perhaps the behavior of groupby() should be modified for unsorted sequences, possibly not taking the order into account, or raising an error ? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月16日 11:08:16 | Jiba | set | recipients:
+ Jiba, petri.lehtinen |
| 2012年05月16日 11:08:15 | Jiba | set | messageid: <1337166495.99.0.869810650324.issue14828@psf.upfronthosting.co.za> |
| 2012年05月16日 11:08:15 | Jiba | link | issue14828 messages |
| 2012年05月16日 11:08:15 | Jiba | create |
|