Author arjennienhuis
Recipients arjennienhuis, benjamin.peterson, eric.smith, loewis, terry.reedy, uau, vstinner
Date 2011-03-07.12:34:54
SpamBayes Score 0.00243367
Marked as misclassified No
Message-id <AANLkTimphk72XTkH3tLJxXvZxoj8C_n-SrBoRWq9VcBU@mail.gmail.com>
In-reply-to <1299458829.74.0.954376527327.issue3982@psf.upfronthosting.co.za>
Content
struct.pack does not work with variable length data. Something like:

b'{0:x}\r\n{1}\r\n'.format(len(block), block)

or

b'%x\r\n%s\r\n' % (len(block), block)

is not possible with struct.pack
History
Date User Action Args
2011-03-07 12:34:56arjennienhuissetrecipients: + arjennienhuis, loewis, terry.reedy, vstinner, eric.smith, benjamin.peterson, uau
2011-03-07 12:34:54arjennienhuislinkissue3982 messages
2011-03-07 12:34:54arjennienhuiscreate