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 pitrou
Recipients pitrou, rhettinger
Date 2013-06-17.14:44:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371480242.24.0.0078060677529.issue18241@psf.upfronthosting.co.za>
In-reply-to
Content
In one application, I would like to use a heap as an allocation pool. I also want to check that a given value isn't released twice, therefore that the heap contains unique values. My use case would be solved nicely if heappush() took an optional "unique=False" parameter.

Note that I haven't checked if doing so is possible while maintaining the O(log n) complexity :-)
History
Date User Action Args
2013-06-17 14:44:02pitrousetrecipients: + pitrou, rhettinger
2013-06-17 14:44:02pitrousetmessageid: <1371480242.24.0.0078060677529.issue18241@psf.upfronthosting.co.za>
2013-06-17 14:44:02pitroulinkissue18241 messages
2013-06-17 14:44:02pitroucreate