sunlightlabs/validictory — pull request #11 by aconrad (2011-12-02 03:03:09+00:00)
Title: validate_enum() to accept any type of container

I have made a small modification to the validate_enum() validator so it accepts any container, i.e. anything that implements __contains__.

My use case is to use the "enum" property with a set() / frozenset() so item lookup is much faster.

All tests still pass.