Message171815
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. |
|
Date |
User |
Action |
Args |
2012-10-02 16:47:54 | terry.reedy | set | recipients:
+ terry.reedy, loewis, exarkun, vstinner, eric.smith, christian.heimes, benjamin.peterson, ezio.melotti, arjennienhuis, uau, martin.panter, serhiy.storchaka |
2012-10-02 16:47:54 | terry.reedy | set | messageid: <1349196474.25.0.358384445084.issue3982@psf.upfronthosting.co.za> |
2012-10-02 16:47:54 | terry.reedy | link | issue3982 messages |
2012-10-02 16:47:53 | terry.reedy | create | |
|