I'm not quite sure what i mean here, so please bear with me..
In sqlalchemy, it appears i'm supposed to pass an expression? to filter() in certain cases. When i try to implement something like this myself, i end up with:
>>> def someFunc(value):
... print(value)
>>> someFunc(5 == 5)
True
How do i get the values passed to == from inside the function?
Edit: I'm trying to achieve something like this
>>> def magic(left, op, right):
... print(left+" "+op+" "+right)
>>> magic(5 == 5)
5 == 5
Edit: What about if one of the paramaters was an object?