This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, nassrat, pitrou
Date 2008-12-01.11:15:22
SpamBayes Score 3.3775732e-10
Marked as misclassified No
Message-id <1228130126.92.0.401248751119.issue4479@psf.upfronthosting.co.za>
In-reply-to
Content
> 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...
History
Date User Action Args
2008-12-01 11:15:27mark.dickinsonsetrecipients: + mark.dickinson, pitrou, nassrat
2008-12-01 11:15:26mark.dickinsonsetmessageid: <1228130126.92.0.401248751119.issue4479@psf.upfronthosting.co.za>
2008-12-01 11:15:23mark.dickinsonlinkissue4479 messages
2008-12-01 11:15:22mark.dickinsoncreate