]> granicus.if.org Git - python/commit
add_operators(): the __floordiv__ and __truediv__ descriptors (and
authorGuido van Rossum <guido@python.org>
Tue, 25 Sep 2001 21:16:33 +0000 (21:16 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 25 Sep 2001 21:16:33 +0000 (21:16 +0000)
commit874f15aa289e30e32a74379749cf9b6bea674fde
tree02b2fc5c01b5cd0e36bddda6fb46f9dc5e93d1f3
parent29a67ced727feaeb62656f485929aa2d4d9ed1d3
add_operators(): the __floordiv__ and __truediv__ descriptors (and
their 'i' and 'r' variants) were not being generated if the
corresponding nb_ slots were present in the type object.  I bet this
is because floor and true division were introduced after I last
looked at that part of the code.
Objects/typeobject.c