On 2009-06-19, Lie Ryan <lie.1...@gmail.com> wrote: > Grant Edwards wrote: >> On 2009-06-19, Mitko Haralanov <mi...@qlogic.com> wrote: >> >>> I have a question about finding out whether a string contains >>> binary data? >> >> All strings contain binary data. > > Not quite, (python 2.x's) strings are binary data. > > It just happens that it behaves like text when you appropriately > encode/decode it. > > In python 3.x, the default string have evolved to unicode > string, which is a true text and the old string which contains > arbitrary binary data evolved into bytestring.
You've got a computer that stores unicode strings as something other than binary data? ;) -- Grant -- http://mail.python.org/mailman/listinfo/python-list