[Tutor] byte[] array

Hugo González Monteverde hugonz-lists at h-lab.net
Sun Oct 8 20:01:12 CEST 2006


gert wohlgemuth wrote:

> As anybody an idea how I can do this in python?

I can think of three ways:

Strings in Python can contain arbitrary binary values, so they can be used.

If they're going to be modified often, you may use a list,

or you may use the array module for performance.

Are you sure you cannot use any already written module? Are you getting 
data from the http protocol? are you using XML-RPC or something like this?

Hugo



More information about the Tutor mailing list