Author terry.reedy
Recipients arjennienhuis, benjamin.peterson, christian.heimes, eric.smith, exarkun, ezio.melotti, loewis, martin.panter, serhiy.storchaka, terry.reedy, uau, vstinner
Date 2012-10-02.16:47:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349196474.25.0.358384445084.issue3982@psf.upfronthosting.co.za>
In-reply-to
Content
In 3.3+, somestring.encode('ascii') is a small constant-time operation. So for pure ascii *text* bytes, that seems the appropriate 3.x approach.

I agree that something else should be used for binary formatting. Perhaps struct.pack could be extended to work with variable-length data the way I thought it already did. Otherwise, it already *is* the binary formatting method.
History
Date User Action Args
2012-10-02 16:47:54terry.reedysetrecipients: + terry.reedy, loewis, exarkun, vstinner, eric.smith, christian.heimes, benjamin.peterson, ezio.melotti, arjennienhuis, uau, martin.panter, serhiy.storchaka
2012-10-02 16:47:54terry.reedysetmessageid: <1349196474.25.0.358384445084.issue3982@psf.upfronthosting.co.za>
2012-10-02 16:47:54terry.reedylinkissue3982 messages
2012-10-02 16:47:53terry.reedycreate