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 pitrou
Recipients kristjan.jonsson, mark.dickinson, michael.foord, pitrou, serhiy.storchaka
Date 2012-03-22.15:12:56
SpamBayes Score 1.6145196e-10
Marked as misclassified No
Message-id <1332428893.3430.34.camel@localhost.localdomain>
In-reply-to <1332428865.34.0.316494979692.issue14381@psf.upfronthosting.co.za>
Content
> Right, I'll do some test with the hardcoded values you mentioned.
> Btw, I don't think -0.0 is worth it, that value is a typical
> arithmetic result and not something you typically get from input data.

I was suggesting -0.0 in the hope that it might make the patch a bit
simpler, but I was probably wrong: you still have to test the float's
sign to distinguish between the two values.

> Also, while interning in python is certainly possible, perhaps it
> would make sense to implement such in c.

I think it makes sense in the float implementation if it doesn't
significantly decrease performance. I suggest you post the benchmark
numbers (see http://hg.python.org/benchmarks/ ).

Adding a separate builtin/stdlib function would be overkill IMO.
History
Date User Action Args
2012-03-22 15:12:56pitrousetrecipients: + pitrou, mark.dickinson, kristjan.jonsson, michael.foord, serhiy.storchaka
2012-03-22 15:12:56pitroulinkissue14381 messages
2012-03-22 15:12:56pitroucreate