This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients jjanis, r.david.murray
Date 2012-06-06.15:11:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338995505.46.0.433781715334.issue15019@psf.upfronthosting.co.za>
In-reply-to
Content
Windows makes \x00 a space?  How odd.

This is the result for me on linux:

Python 2.7.3+ (2.7:1f5d2642929a, May 25 2012, 12:47:34) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> test = "Hi there :)"
>>> print len(test), test
11 Hi there :)
>>> test = test.replace(" ", "\x00")
>>> print len(test), test
11 Hithere:)

Your comment on the last line of your example seems to have been truncated, so I'm not sure what you really saw.
History
Date User Action Args
2012-06-06 15:11:45r.david.murraysetrecipients: + r.david.murray, jjanis
2012-06-06 15:11:45r.david.murraysetmessageid: <1338995505.46.0.433781715334.issue15019@psf.upfronthosting.co.za>
2012-06-06 15:11:44r.david.murraylinkissue15019 messages
2012-06-06 15:11:42r.david.murraycreate