[issue4479] True division is not smart -> proposing smart True division

Hatem report at bugs.python.org
Mon Dec 1 12:45:42 CET 2008


Hatem <hnassrat at gmail.com> added the comment:

On Mon, Dec 1, 2008 at 7:43 AM, Hatem Nassrat <hnassrat at gmail.com> wrote:
> On Mon, Dec 1, 2008 at 7:15 AM, Mark Dickinson <report at bugs.python.org> wrote:
>> Well, there are precedents:
>>
>>>>> type(2**3)
>> <type 'int'>
>>>>> type(2**-3)
>> <type 'float'>
>>
>> My initial reaction to this was negative, but I'm struggling to think of
>> situations where it would be bad.  I'm also struggling to think of
>> situations where it would be useful.   Maybe Monday morning is just a
>> bad time for thinking. :-)

It seems to not be my day either. I think the above behaviour is what
I would expect.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4479>
_______________________________________


More information about the Python-bugs-list mailing list