I am trying to make pickling safer so no one can try to through say a class or a thread at me when i expected a array of numbers. I have thought about using res to check if it was something, but it would be hard since maybe it was say a 3 demetional array. In the third demention somewhere they could have sliped in a thread that would kill my app.
I would like to use pickle for sockets so it is easyer to send numbers and such. Any ideas?
use xml instead, you'll have much more control with xml
Better yet use SOAP, this way you could probably get rid of the sockets from your app . It also handles all the type checking and such for you so you shouldn't have to worry about things like this.