Message129522
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. |
|
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 | |
|