Message129522
| Author | eli.bendersky |
|---|---|
| Recipients | Retro, brian.curtin, eli.bendersky, eric.araujo, eric.smith, georg.brandl, giampaolo.rodola, ncoghlan, rhettinger, terry.reedy, xuanji, ysj.ray |
| Date | 2011-02-26.10:39:44 |
| SpamBayes Score | 3.0746236e-05 |
| Marked as misclassified | No |
| Message-id | <1298716786.12.0.00289552847104.issue10516@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Attaching a patch adding copy() and clear() to bytearrays, with tests and doc. I didn't add the methods to MutableSequence because I have a doubt about it - in particular which exception get raised by .pop if it's empty. Curiously, lists and bytearrays raise different exceptions in this case - IndexError and OverflowError, respectively. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-02-26 10:39:46 | eli.bendersky | set | recipients: + eli.bendersky, georg.brandl, rhettinger, terry.reedy, ncoghlan, eric.smith, giampaolo.rodola, eric.araujo, Retro, brian.curtin, ysj.ray, xuanji |
| 2011-02-26 10:39:46 | eli.bendersky | set | messageid: <1298716786.12.0.00289552847104.issue10516@psf.upfronthosting.co.za> |
| 2011-02-26 10:39:45 | eli.bendersky | link | issue10516 messages |
| 2011-02-26 10:39:45 | eli.bendersky | create | |