I'd like my wxPython application to support cut/copy/paste operations between different running instances of the application. Is it OK to simply pickle a data structure, copy it to clipboard as text, and then unpickle it for paste operations?
I know I'd have to check the data for some sign that it's from my app. Or could I just TRY to unpickle whatever is there? How robust is pickle at nicely failing if it tries to unpickle arbitrary text left on the clipboard?
Also, is there a practical limit to how much data could be copied this way?
I'm running on Windows and Linux today - have not tried Mac.
EDIT
I'm aware of that comment in the documentation. I don't really care about a malicious user trying to compromise his own instance of the software, if that's what people are worried about they should deprecate pickle. My questions are of practicality, not security.
If applicable I suggest you to convert your data to and from json using one of the many python implementations.
Being plain text is easy to transfer using clipboard moreover there are no risks converting back a json object back to python.
One last thing: no risks of deprecation.
Is it OK to pass complex data structures through the clipboard with wxPython?