Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIMultiDict.pop is case sensitive. #1

Closed
Lukasa opened this issue May 20, 2016 · 1 comment
Closed

CIMultiDict.pop is case sensitive. #1

Lukasa opened this issue May 20, 2016 · 1 comment

Comments

@Lukasa
Copy link

Lukasa commented May 20, 2016

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

@asvetlov
Copy link
Member

asvetlov commented Jun 4, 2016

Fixed by 011030a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants