Пример #1
0
 def __rdivmod__(self, other):
     return elementwise._divmod(other, self)
Пример #2
0
 def __rdivmod__(self, other):
     return elementwise._divmod(other, self)
Пример #3
0
 def __divmod__(self, other):
     if self._should_use_rop(other):
         return other.__rdivmod__(self)
     else:
         return elementwise._divmod(self, other)
Пример #4
0
 def __divmod__(self, other):
     if self._should_use_rop(other):
         return other.__rdivmod__(self)
     else:
         return elementwise._divmod(self, other)