[PonyORM-list] How to do a query?

Matthew Bell matthewrobertbell at gmail.com
Tue Dec 8 13:37:24 UTC 2015


Hello,

I am trying to do this:

Assuming X.a and X.b are both unicode:

    y = [('1', '2'), ('3', '4')]

    select(x for X in x if (x.a, x.b) not in y)

This query doesn't work. How can I exclude the tuples in y from results?

Thanks

-- 
Regards,

Matthew Bell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20151208/47915502/attachment.html>


More information about the ponyorm-list mailing list