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 ? Programmation Python
Les compléments
Voir le programme détaillé
Classe « Operators »

Méthode sqlalchemy.Operators.__sa_operate__

Signature de la méthode __sa_operate__

def __sa_operate__(self, op: 'OperatorType', *other: 'Any', **kwargs: 'Any') -> 'Operators' 

Description

help(Operators.__sa_operate__)

Operate on an argument.

This is the lowest level of operation, raises
:class:`NotImplementedError` by default.

Overriding this on a subclass can allow common
behavior to be applied to all operations.
For example, overriding :class:`.ColumnOperators`
to apply ``func.lower()`` to the left and right
side::

    class MyComparator(ColumnOperators):
        def operate(self, op, other, **kwargs):
            return op(func.lower(self), func.lower(other), **kwargs)

:param op:  Operator callable.
:param \*other: the 'other' side of the operation. Will
 be a single scalar for most operations.
:param \**kwargs: modifiers.  These may be passed by special
 operators such as :meth:`ColumnOperators.contains`.




Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé