Skip to content

CIMultiDict.pop is case sensitive. #1

Closed

Description

@Lukasa

Repro Steps

>>> from multidict import CIMultiDict
>>> d = CIMultiDict(key='value')
>>> d['key']
'value'
>>> d.pop('key')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "multidict/_multidict.pyx", line 385, in multidict._multidict.MultiDict.pop (multidict/_multidict.c:7811)
KeyError: 'key'

Expected Behaviour

Calling pop should return 'value' and remove the item from the dict.

Actual Behaviour

KeyError

Environment

Python: Python 3.5.1 (default, Dec 14 2015, 09:21:15) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin

System: Mac OS X El Capitan 10.11.5

multidict version: 1.0.3, installed from PyPI

Activity

  1. asvetlov commented on Jun 4, 2016

    @asvetlov
    Member

    Fixed by 011030a

  2. added a commit that references this issue on Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions