Message106594
| Author | rhettinger |
|---|---|
| Recipients | belopolsky, benjamin.peterson, ipatrol, rhettinger, wrichert |
| Date | 2010-05-27.02:24:28 |
| SpamBayes Score | 0.0045557986 |
| Marked as misclassified | No |
| Message-id | <1274927070.89.0.125345754888.issue7212@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |