Developpez.com

Python

Choisissez la catégorie, puis la rubrique :

18.24.2 Boolean Objects


18.24.2 Boolean Objects

This class may be initialized from any Python value; the instance returned depends only on its truth value. It supports various Python operators through __cmp__(), __repr__(), __int__(), and __nonzero__() methods, all implemented in the obvious ways.

It also has the following method, supported mainly for internal use by the unmarshalling code:

encode( out)
Write the XML-RPC encoding of this Boolean item to the out stream object.

See About this document... for information on suggesting changes.
Contacter le responsable de la rubrique Python

Partenaire : Hébergement Web