[issue42301] Add function to exploit heapq structure to locate an index of element

2020-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking this as declined for the reasons listed in the PR comments. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue42301] Add function to exploit heapq structure to locate an index of element

2020-11-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: See: https://stackoverflow.com/questions/2372994/search-an-element-in-a-heap -- ___ Python tracker ___

[issue42301] Add function to exploit heapq structure to locate an index of element

2020-11-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: What is the use case for this? This doesn't seem to be a typical heap operation. https://en.wikipedia.org/wiki/Heap_(data_structure)#Operations Have you seen the in other heap APIs? -- components: +Library (Lib) -Extension Modules title: Lack