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 steven.daprano
Recipients eric.smith, gappleto97, r.david.murray, steven.daprano
Date 2018-05-02.01:44:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525225459.88.0.682650639539.issue33402@psf.upfronthosting.co.za>
In-reply-to
Content
Strings in Python 3 are already unicode.

Looking at the patch, I see a lot of fractions which display as the missing glyph white square. For example, instead of seeing 1/9, which displays perfectly everywhere, I see a mysterious box similar to □.

Even when I see one, there's the visual inconsistency between fractions which display like ½ and those that display like ¹²/₄₅ which frankly just looks ugly to me. One problem is that in many fonts, the glyphs for superscript and subscript digits are a hodge-podge of sizes and styles with no consistent design.

If you're going to do this, you ought to use U+2044 FRACTION SLASH rather than U+002F SOLIDUS: compare ¹²⁄₄₅ with the above. If your font is decent, and many are not, the fraction slash is tighter and allows the numerator and denominator to overlap the slash, closer to the visual look of ½.

I would strongly oppose this becoming the default __str__ of fractions.
History
Date User Action Args
2018-05-02 01:44:20steven.dapranosetrecipients: + steven.daprano, eric.smith, r.david.murray, gappleto97
2018-05-02 01:44:19steven.dapranosetmessageid: <1525225459.88.0.682650639539.issue33402@psf.upfronthosting.co.za>
2018-05-02 01:44:19steven.dapranolinkissue33402 messages
2018-05-02 01:44:18steven.dapranocreate