Projet

Général

Profil

0002-lazy-add-support-for-__radd__-foo-form_var_bla-29951.patch

Frédéric Péters, 16 avril 2019 10:51

Télécharger (761 octets)

Voir les différences:

Subject: [PATCH 2/3] lazy: add support for __radd__ ("foo" + form_var_bla)
 (#29951)

 wcs/variables.py | 3 +++
 1 file changed, 3 insertions(+)
wcs/variables.py
491 491
    def __add__(self, other):
492 492
        return self.get_value().__add__(other)
493 493

  
494
    def __radd__(self, other):
495
        return other + self.get_value()
496

  
494 497
    def __mul__(self, other):
495 498
        return self.get_value().__mul__(other)
496 499

  
497
-