Name

__rdivmod__

Synopsis

__rdivmod__(self,other)

Built-in function divmod( y,x ) calls x .__rdivmod__( y ) when y doesn’t have __divmod__. __rdivmod__ should return a pair ( remainder,quotient ).

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.