msl.examples.loadlib.echo64 module
An example of a 64-bit echo client.
Example of a client that can be executed by a 64-bit Python interpreter that sends
requests to the corresponding echo32
module which is executed by a
32-bit Python interpreter.
Echo32
is the 32-bit server class and Echo64
is
the 64-bit client class. These echo classes do not actually communicate with a shared
library. The point of these echo classes is to show that a Python data type in a
64-bit process appears as the same data type in the 32-bit process and vice versa.
- class msl.examples.loadlib.echo64.Echo64[source]
Bases:
Client64
Example of a client class that illustrates that Python data types are preserved when they are sent to the
Echo32
server and back again.- send_data(*args, **kwargs)[source]
Send a request to execute the
received_data()
method on the 32-bit server.- Parameters:
*args – The arguments that the
received_data()
method requires.**kwargs – The keyword arguments that the
received_data()
method requires.
- Returns:
tuple
– The args and kwargs that were returned fromreceived_data()
.