[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 function to track index of an element in heapq -> Add function to 
exploit heapq structure to locate an index of element
versions:  -Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com