New submission from Raymond Hettinger:

The existing search finger is stored in a hackish way (using the hash field of 
entry zero in the hash table).  Replace this with normal coding techniques 
(saving the field in the set object).

Cost one extra field in the set object.  Benefit, remove an arcane hack and 
simplify the set.pop() code just a little bit.

----------
assignee: rhettinger
components: Interpreter Core
files: finger.diff
keywords: patch
messages: 234216
nosy: rhettinger
priority: low
severity: normal
status: open
title: Clean-up set.pop() search finger logic
versions: Python 3.5
Added file: http://bugs.python.org/file37753/finger.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23261>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to