Message76687
> Having different result types based on the input
> values would not be "smart" in my book, rather "incredibly fragile".
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. :-)
Might be worth a discussion on python-ideas, at least?
To the OP: you should be aware that getting this accepted into Python
would likely be very hard. You'd need at least a PEP explaining clearly
the benefits of such a change, a working patch, and strong community
support. And even then it might have to wait for Python 4.0. Which
Guido has said probably won't happen... |
|
Date |
User |
Action |
Args |
2008-12-01 11:15:27 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, nassrat |
2008-12-01 11:15:26 | mark.dickinson | set | messageid: <1228130126.92.0.401248751119.issue4479@psf.upfronthosting.co.za> |
2008-12-01 11:15:23 | mark.dickinson | link | issue4479 messages |
2008-12-01 11:15:22 | mark.dickinson | create | |
|