marshalling

Send and receive objects through sockets in Python

Send and receive objects through sockets in Python Question: I have searched a lot on the Internet, but I haven’t been able to find the solution to send an object over the socket and receive it as is. I know it needs pickling which I have already done. And that converts it to bytes and …

Total answers: 3

Convert Python ElementTree to string

Convert Python ElementTree to string Question: Whenever I call ElementTree.tostring(e), I get the following error message: AttributeError: ‘Element’ object has no attribute ‘getroot’ Is there any other way to convert an ElementTree object into an XML string? TraceBack: Traceback (most recent call last): File “Development/Python/REObjectSort/REObjectResolver.py”, line 145, in <module> cm = integrateDataWithCsv(cm, csvm) File “Development/Python/REObjectSort/REObjectResolver.py”, …

Total answers: 6