Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « sqlalchemy »

Classe « custom_op »

Informations générales

Héritage

        builtins.object
            Generic
builtins.object
    Generic
        Protocol
            OperatorType
                custom_op

Définition

class custom_op(OperatorType, Generic):

help(custom_op)

Represent a 'custom' operator.

:class:`.custom_op` is normally instantiated when the
:meth:`.Operators.op` or :meth:`.Operators.bool_op` methods
are used to create a custom operator callable.  The class can also be
used directly when programmatically constructing expressions.   E.g.
to represent the "factorial" operation::

    from sqlalchemy.sql import UnaryExpression
    from sqlalchemy.sql import operators
    from sqlalchemy import Numeric

    unary = UnaryExpression(
        table.c.somecolumn, modifier=operators.custom_op("!"), type_=Numeric
    )

.. seealso::

    :meth:`.Operators.op`

    :meth:`.Operators.bool_op`

Constructeur(s)

Signature du constructeur Description
__init__(self, opstring: 'str', precedence: 'int' = 0, is_comparison: 'bool' = False, return_type: 'Optional[Union[Type[TypeEngine[_T]], TypeEngine[_T]]]' = None, natural_self_precedent: 'bool' = False, eager_grouping: 'bool' = False, python_impl: 'Optional[Callable[..., Any]]' = None)

Liste des attributs statiques

Nom de l'attribut Valeur
eager_grouping<member 'eager_grouping' of 'custom_op' objects>
is_comparison<member 'is_comparison' of 'custom_op' objects>
natural_self_precedent<member 'natural_self_precedent' of 'custom_op' objects>
opstring<member 'opstring' of 'custom_op' objects>
precedence<member 'precedence' of 'custom_op' objects>
python_impl<member 'python_impl' of 'custom_op' objects>
return_type<member 'return_type' of 'custom_op' objects>

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, other: 'Any') -> 'bool'

Opérateurs hérités de la classe object

__ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__call__(self, left: 'Any', right: 'Optional[Any]' = None, *other: 'Any', **kwargs: 'Any') -> 'Operators'
__class_getitem__ Parameterizes a generic class. [extrait de __class_getitem__.__doc__]
__hash__(self) -> 'int'

Méthodes héritées de la classe Protocol

__init_subclass__, __subclasshook__

Méthodes héritées de la classe Generic

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé