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 serhiy.storchaka
Recipients da, rhettinger, serhiy.storchaka
Date 2018-05-22.18:06:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527012388.18.0.682650639539.issue33593@psf.upfronthosting.co.za>
In-reply-to
Content
Workaround:

alist = list(a)
heapq.heapify(alist)
a[:] = alist

And it should be not much slower than using heapq.heapify() directly if it could support general sequences. Using it with array.array would add significant overhead due to boxing.
History
Date User Action Args
2018-05-22 18:06:28serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, da
2018-05-22 18:06:28serhiy.storchakasetmessageid: <1527012388.18.0.682650639539.issue33593@psf.upfronthosting.co.za>
2018-05-22 18:06:28serhiy.storchakalinkissue33593 messages
2018-05-22 18:06:28serhiy.storchakacreate