coleifer/pollywog — pull request #1 by svisser (2014-12-31 15:30:10+00:00)
Title: Allow user to write results into their own classes as well

This commit makes the `isinstance` checks less restrictive and allows the results to be written to instances of `collections.MutableMapping` and `collections.MutableSequence`. These types also include `dict` and `list` (and their subclasses) so this commit only broadens the types into which the results can be written:

```python
>>> isinstance({}, collections.MutableMapping)
True
>>> isinstance([], collections.MutableSequence)
True
```

In other words, a user may have defined a subclass of `MutableMapping` or `MutableSequence` with some custom behaviour and this allows the search results to be written into those objects.