Message162413
test = "Hi there :)"
print len(test), test // Prints "11 Hi there :)"
test = test.replace(" ", "\x00")
print len(test), test // Prints "11
On Windows '\x00' is same as ' ', but on linux string is terminated at first occurance of '\x00'. Results on problems with pySerial and binary data, so I can't replace '\x00' with ' '. |
|
Date |
User |
Action |
Args |
2012-06-06 14:47:45 | jjanis | set | recipients:
+ jjanis |
2012-06-06 14:47:45 | jjanis | set | messageid: <1338994065.34.0.987983176333.issue15019@psf.upfronthosting.co.za> |
2012-06-06 14:47:44 | jjanis | link | issue15019 messages |
2012-06-06 14:47:44 | jjanis | create | |
|