Jonas Byström added the comment:
I would like something like a regexp-replace of
def[ \t]*__idiv__\((.*?)\)
into
def __floordiv__(\1): self.__truediv__()
def __truediv__(\1)
--
___
Python tracker
<http://bugs.python.org/issue6
New submission from Jonas Byström :
Code from 2.x containing __idiv__ does not translate into
def __floordiv__(self, x): self.__truediv__(x)
def __truediv__(self, x): ...
--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 92194
nosy: highfestiva
severity: normal
status: open