Message106594
Use set.pop().
Or if you don't want mutation, then use next(iter(s)) or next(iter(s),default). This technique also works for any collection including dicts and deques and whatnot. |
|
Date |
User |
Action |
Args |
2010-05-27 02:24:30 | rhettinger | set | recipients:
+ rhettinger, belopolsky, benjamin.peterson, wrichert, ipatrol |
2010-05-27 02:24:30 | rhettinger | set | messageid: <1274927070.89.0.125345754888.issue7212@psf.upfronthosting.co.za> |
2010-05-27 02:24:29 | rhettinger | link | issue7212 messages |
2010-05-27 02:24:28 | rhettinger | create | |
|