homepage

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.

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:16Jibasetrecipients: + Jiba, petri.lehtinen
2012年05月16日 11:08:15Jibasetmessageid: <1337166495.99.0.869810650324.issue14828@psf.upfronthosting.co.za>
2012年05月16日 11:08:15Jibalinkissue14828 messages
2012年05月16日 11:08:15Jibacreate

AltStyle によって変換されたページ (->オリジナル) /