def serialize_stream(stream, obj):
 check_qdatastream(stream)
 (stream << obj)
 check_qdatastream(stream)

def serialize_stream ( stream , obj ) : check_qdatastream ( stream ) ( stream << obj ) check_qdatastream ( stream )
serialize an object into a qdatastream .