[issue47157] bijective invertible map

2022-03-29 Thread Jonathan Balloch
Jonathan Balloch added the comment: thank you!! On Tue, Mar 29, 2022 at 8:44 PM Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > This is indeed a duplicate. If needed just use one of implementations on > PyPI https://pypi.org/project/bidict/ > > -- > nosy:

[issue47157] bijective invertible map

2022-03-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is indeed a duplicate. If needed just use one of implementations on PyPI https://pypi.org/project/bidict/ -- nosy: +rhettinger resolution: -> duplicate stage: -> resolved status: open -> closed ___

[issue47157] bijective invertible map

2022-03-29 Thread Dennis Sweeney
Dennis Sweeney added the comment: see also https://bugs.python.org/issue44931 -- nosy: +Dennis Sweeney ___ Python tracker ___ ___

[issue47157] bijective invertible map

2022-03-29 Thread Jonathan Balloch
New submission from Jonathan Balloch : It would be powerful to have a native implementation of a bijective map (e.g. a dictionary that hashed only one-to-one, but as a result either the "key" or the "value" could do lookup in O(1) time with the only overhead being the additional memory