Re: __future__ and __rdiv__

2012-01-23 Thread Duncan Booth
Terry Reedy wrote: > But if you mean for Number to be like a float > rather than int, do as you are (with / and __truediv__). > Or even __rtruediv__ -- Duncan Booth http://kupuguy.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: __future__ and __rdiv__

2012-01-23 Thread Terry Reedy
On 1/23/2012 12:22 AM, Massimo Di Pierro wrote: Hello everybody, I hope somebody could help me with this problem. If this is not the right place to ask, please direct me to the right place and apologies. I am using Python 2.7 and I am writing some code I want to work on 3.x as well. The proble

Re: __future__ and __rdiv__

2012-01-22 Thread Massimo Di Pierro
Thank you. I tried __rtruediv__ and it works. On Jan 23, 2012, at 12:14 AM, Ian Kelly wrote: > On Sun, Jan 22, 2012 at 10:22 PM, Massimo Di Pierro > wrote: > Hello everybody, > > I hope somebody could help me with this problem. If this is not the right > place to ask, please direct me to the

Re: __future__ and __rdiv__

2012-01-22 Thread Ian Kelly
On Sun, Jan 22, 2012 at 10:22 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Hello everybody, > > I hope somebody could help me with this problem. If this is not the right > place to ask, please direct me to the right place and apologies. > I am using Python 2.7 and I am writing some

__future__ and __rdiv__

2012-01-22 Thread Massimo Di Pierro
Hello everybody, I hope somebody could help me with this problem. If this is not the right place to ask, please direct me to the right place and apologies. I am using Python 2.7 and I am writing some code I want to work on 3.x as well. The problem can be reproduced with this code: # from __futu