def _encode_bool(name, value, dummy0, dummy1):
 return (('\x08' + name) + ((value and '\x01') or '\x00'))

def _encode_bool ( name , value , dummy0 , dummy1 ) : return ( ( '\x08' + name ) + ( ( value and '\x01' ) or '\x00' ) )
encode a python boolean .