<div dir="ltr"><div><div>Hi!<br><br></div>For testing, SQLite. In production, postgres. On the order of hundreds of pairs.<br><br></div>Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 December 2015 at 17:47, Alexander Kozlovsky <span dir="ltr"><<a href="mailto:alexander.kozlovsky@gmail.com" target="_blank">alexander.kozlovsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Matthew! Two questions:<br><br>1) What database do you use?<br>2) How many pairs are in y potentially?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Dec 8, 2015 at 4:37 PM, Matthew Bell <span dir="ltr"><<a href="mailto:matthewrobertbell@gmail.com" target="_blank">matthewrobertbell@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div>Hello,<br><br></div>I am trying to do this:<br><br>Assuming X.a and X.b are both unicode:<br><br> y = [('1', '2'), ('3', '4')]<br><br> select(x for X in x if (x.a, x.b) not in y)<br><br></div>This query doesn't work. How can I exclude the tuples in y from results? <br><br></div>Thanks<span><font color="#888888"><br clear="all"><div><div><div><div><br>-- <br><div>Regards,<br><br>Matthew Bell<br></div>
</div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
ponyorm-list mailing list<br>
<a href="mailto:ponyorm-list@ponyorm.org" target="_blank">ponyorm-list@ponyorm.org</a><br>
<a href="/ponyorm-list" rel="noreferrer" target="_blank">/ponyorm-list</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
ponyorm-list mailing list<br>
<a href="mailto:ponyorm-list@ponyorm.org">ponyorm-list@ponyorm.org</a><br>
<a href="/ponyorm-list" rel="noreferrer" target="_blank">/ponyorm-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Regards,<br><br>Matthew Bell<br></div>
</div>