unpickling a stream

2009-05-26 Thread msolem
Hello, I want to send a stream of pickled objects over a socket. Is there a standard way of ensuring that only complete objects are unpickled on the receiving side. client pseudo code: loop forever: receive some bytes on the socket if we have received a complete pickled object: <== Ho

Export variables

2009-04-21 Thread msolem
Hello, I want to make a certain subset of public attributes available through an interface. The client should not need to know the names of the attributes. Here is some code with the important parts missing. Anyone care to fill in the missing parts? class C: def __init__(self): se