Bug in MultiDict.__delitem__

3 views
Skip to first unread message

simon

unread,
Jun 1, 2011, 2:17:41 PM6/1/11
to Pesto
Hi,

MultiDict.__delitem__ in pesto-23 seems to be broken. When I call

del myMultiDict[key]

I get

File "/usr/local/x/lib/python2.6/site-packages/pesto/utils.py", line
114, in __delitem__
self._items = [(k, v) for k, v in self.items if k != key]
TypeError: 'instancemethod' object is not iterable

Patching that line to read

self._items = [(k, v) for k, v in self._items if k != key]

seems to fix it.

Cheers, Simon

Oliver Cope

unread,
Jun 2, 2011, 10:38:21 AM6/2/11
to python...@googlegroups.com
Thanks! I'll push out a new release soon with your fix in it.

Olly.

Reply all
Reply to author
Forward
0 new messages