PP constraint

additional to #1237, targeted at 1.7.x
I think it would make good sense to return 'None' when you decide in advance that no filtering can be done, rather than a filter function which does nothing,
This would be clearer, as well as more efficient, in the obvious no-filtering-possible cases : when there are no constraints, or some constraint is not a stash-constraint (as mentioned above).