The StripField class is accessible via the formencode.validators module.
name is the key. The field value and a new copy of the dictionary with that field removed are returned.
>>> StripField('test').to_python({'a': 1, 'test': 2})
(2, {'a': 1})
>>> StripField('test').to_python({})
Traceback (most recent call last):
...
Invalid: The name 'test' is missing
Messages
See the source for more information.