PEP0238: overriding // (__intdiv__) ??

Kirby Urner urner at alumni.princeton.edu
Wed Jul 25 07:23:18 EDT 2001


Maybe I missed it.  Did the PEP specify what we'd use
to override the // operator in a class?  __intdiv__  and 
__rintdiv__ ?  Seems we'd need something like this, to
have our objects play along.  And I'd think this wrinkle 
should become available simultaneously with //.  

Kirby





More information about the Python-list mailing list