No subject
Fri Jan 7 07:23:30 MST 2011
te(<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct.pack(self.structFormat, le=
n(string)) + string)<br><br>Would it make sense to do something like this i=
nstead:<br>
<br> =C2=A0def sendString(self, string):<br> =C2=A0 =C2=A0 =C2=A0self.trans=
port.write(<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct.pack(self.structFo=
rmat, len(string)))<br> =C2=A0 =C2=A0 =C2=A0self.transport.write(string)<br=
><br>in order to avoid the creation of the extra string object?<br>
--0016e64347da63db10049c65079c--
More information about the Twisted-Python
mailing list