Issue #11 open

Support for recording PEP 234 style iterators

Anonymous created an issue

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()>)]

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.

Comments (3)

  1. Gary Bernhardt repo owner
    • changed status to open

    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. :)

  2. Log in to comment