Closed aconrad closed 13 years ago
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.
thanks for this, sounds good to me
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.