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 facundobatista, gvanrossum, jyasskin, mark.dickinson, rhettinger
Date 2008-02-02.13:17:59
SpamBayes Score 0.036313616
Marked as misclassified No
Message-id <1201958340.92.0.198876818953.issue1682@psf.upfronthosting.co.za>
In-reply-to
Content
About Rational('3.') and Rational('.2'):

It's not so much to do with consistency with float and Decimal;  more to do 
with the fact that some people like to write floats these ways (which 
presumably is why float and Decimal allow such input).

It occurs to me that if you also allow things like Rational('1e+100') then 
conversions from Decimal to Rational could simply be spelled

Rational(str(decimal_instance))

eliminating the need for the special Decimal -> Rational conversion method.

Anyway, I'll change the regex to allow '3.' and '.3'.
History
Date User Action Args
2008-02-02 13:19:01mark.dickinsonsetspambayes_score: 0.0363136 -> 0.036313616
recipients: + mark.dickinson, gvanrossum, rhettinger, facundobatista, jyasskin
2008-02-02 13:19:00mark.dickinsonsetspambayes_score: 0.0363136 -> 0.0363136
messageid: <1201958340.92.0.198876818953.issue1682@psf.upfronthosting.co.za>
2008-02-02 13:18:00mark.dickinsonlinkissue1682 messages
2008-02-02 13:17:59mark.dickinsoncreate