[issue6831] 2to3 assignment division conversion

2009-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: That would not always be correct because __div__ implements a "default" division that doesn't exist in Py3k. It's easiest to implement __floordiv__ and __truediv__ in for 2.x for correct behavior there, too. -- resolution: -> wont fix status: open -

[issue6831] 2to3 assignment division conversion

2009-09-12 Thread Jonas Byström
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 ___

[issue6831] 2to3 assignment division conversion

2009-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Could you expand a little on what you expect to happen, please? -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue6831] 2to3 assignment division conversion

2009-09-03 Thread Jonas Byström
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 tit