This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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:46eli.benderskysetrecipients: + 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:46eli.benderskysetmessageid: <>
2011-02-26 10:39:45eli.benderskylinkissue10516 messages
2011-02-26 10:39:45eli.benderskycreate