|  |  | Python Library Reference |  |  |

Previous: 11.20.6 ProtocolError Objects Up: 11.20 xmlrpclib Next: 11.20.8 Example of Client

## 11.20.7 Convenience Functions

`boolean`(value)
  Convert any Python value to one of the XML-RPC Boolean constants, `True` or `False`.

`binary`(data)
  Trivially convert any Python string to a `Binary` object.

|  |  | Python Library Reference |  |  |

Previous: 11.20.6 ProtocolError Objects Up: 11.20 xmlrpclib Next: 11.20.8 Example of Client

Release 2.2.1, documentation updated on April 10, 2002.