Author vstinner
Recipients pitrou, serhiy.storchaka, vstinner
Date 2013-09-29.23:03:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380495797.62.0.257709188461.issue19087@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, by the way:

> $ ./python -m timeit  "b = bytearray(); a = b'x'"  "for i in range(10000): b += a"  "bytes(b)"

I'm not sure that it is what you expected: bytearray() is only initialized once ("setup" of timeit). You probably want to reinitialize at each loop.
History
Date User Action Args
2013-09-29 23:03:17vstinnersetrecipients: + vstinner, pitrou, serhiy.storchaka
2013-09-29 23:03:17vstinnersetmessageid: <1380495797.62.0.257709188461.issue19087@psf.upfronthosting.co.za>
2013-09-29 23:03:17vstinnerlinkissue19087 messages
2013-09-29 23:03:17vstinnercreate