Message213361
It would be more convenient to extend heapq to support user defined comparators.
Default can be cmp_lt in which case they behave as they do now.
Caveat:
What happens if uses switches comparator between calls to push or pop. The expected behavior can be unpredictable and should be obvious to the user of the API. It might also be good to state this obvious, if people here agree.
P.S. I am really new to python world, forgive me for any kind of stupidity. Criticism and comments is what I am looking for here ! |
|
Date |
User |
Action |
Args |
2014-03-13 08:18:17 | Prashant.Sharma | set | recipients:
+ Prashant.Sharma |
2014-03-13 08:18:17 | Prashant.Sharma | set | messageid: <1394698697.56.0.738511180994.issue20905@psf.upfronthosting.co.za> |
2014-03-13 08:18:17 | Prashant.Sharma | link | issue20905 messages |
2014-03-13 08:18:17 | Prashant.Sharma | create | |
|