Deepwalker/trafaret — pull request #1 by marcinkuzminski (2012-04-10 21:23:24+00:00)
Title: fixes an issue with default converters already changing the variable before passing

Before my patch this was't throwing exception.

import trafaret as t

def si(val):
if isinstance(val, int):
return val
raise t.DataError('not an int')

ret = (t.Int() >> si).check(2.2)