Whether or not a chunk of data is "binary" or "text" is 100% in the eye of the 
beholder, not a property of how you opened the file.

If you load bonary image data you can str() it without problems in Python (not 
before you try and print() it of course :-)). Ie. this will not error:

  binary = load_png_data()
  s = str(binary)
  event.payload = s
  send_over_dbus(event)

And this is highly convenient for the Python programmer because both valid 
string and binary data can go in payload. If we use ints we have to jump 
through hoops to use strings correctly (mind unicode, not ascii)
-- 
https://code.launchpad.net/~manishsinha/zeitgeist/fix-691167/+merge/43948
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~manishsinha/zeitgeist/fix-691167 into lp:zeitgeist.

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to