[issue42575] Suggest to add an LinkedList data structure to python

2020-12-04 Thread Sam Yan


New submission from Sam Yan :

There has been no LinkedList data structure for Python. Therefore suggest 
adding a LinkedList data structure.

--
components: C API
files: LinkedList.py
messages: 382557
nosy: SamUnimelb
priority: normal
severity: normal
status: open
title: Suggest to add an LinkedList data structure to python
type: enhancement
versions: Python 3.10
Added file: https://bugs.python.org/file49658/LinkedList.py

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



[issue42301] Lack function to track index of an element in heapq

2020-11-09 Thread Sam Yan


New submission from Sam Yan :

Github PR #23204:
For a given element in a heap, we can leverage the fact that we can
search this element quicker thinking of the property of a heap. Therefore
out of h.index(x) that a list linear search uses, I propose to use a special 
written index method to look for an index of a heap element.This issue has been 
proposed on Github (with my changes to heapq also put there). Open a discussion 
under suggestion of Karthikeyan Singaravelan (tirkarthi).

--
components: Extension Modules
hgrepos: 393
messages: 380628
nosy: SamUnimelb
priority: normal
pull_requests: 22110
severity: normal
status: open
title: Lack function to track index of an element in heapq
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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