Message317317
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. |
|
Date |
User |
Action |
Args |
2018-05-22 18:06:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, da |
2018-05-22 18:06:28 | serhiy.storchaka | set | messageid: <1527012388.18.0.682650639539.issue33593@psf.upfronthosting.co.za> |
2018-05-22 18:06:28 | serhiy.storchaka | link | issue33593 messages |
2018-05-22 18:06:28 | serhiy.storchaka | create | |
|