-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Imported from BitBucket:
Reported by Anonymous, created 6 months ago.
Specifically the syntax that replaces the has_key() method on dictionaries.
In [41]: d.has_key('str') Out[41]: <Dingus dingus_15795344.has_key()>
In [42]: 'str' in d Out[42]: False
In [43]: d.calls Out[43]: [('has_key', ('str',), {}, <Dingus dingus_15795344.has_key()>)]
http://www.python.org/dev/peps/pep-0234/
I may be missing something, but it seems like iterators that use the in keyword are not recorded, I haven't looked into implementing this myself yet, but would be happy to give it a shot.
Gary Bernhardt / garybernhardt
It looks like we just never defined the contains method. Patches are always welcome! :) I'll probably get to this eventually, but it hasn't been an itch I've had just yet. :)
flzz
Added attachment dingus_issue_11.patch.
Not sure if this covers the bases appropriately, but its working for my needs at the moment :)
Anonymous
Is it likely that this patch will be merged in?