<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Feb 1, 2018 12:17 AM, "Stephan Houben" <<a href="mailto:stephanh42@gmail.com">stephanh42@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What about something like:<br><div><br>f"{x:₹d}"<br><br>₹ = Indian Rupees symbol<br><br></div><div>I realize it is not ASCII but ₹ would be, for the target audience,<br> both easy to type and be mnemonic</div><div>("format number like you would format an amount in rupees").</div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I like how iconic it is very much. However...</div><div dir="auto"><br></div><div dir="auto">There are two obstacles to this. The main one is the BDFLs often declared opposition to using non-ASCII in Python itself. The format mini-language is borderline between being part of the Python language and merely being strings you can quote (which strongly need to allow non-ASCII literals).  It's a lot like regex or glob this way (but for historic reasons at least, both those are also pure ASCII in their syntax elements, but can obviously match non-ASCII literals or classes).</div><div dir="auto"><br></div><div dir="auto">The other element is that not all of South Asia is India.</div><div dir="auto"><br></div><div dir="auto"><table style="max-width:100%;border-collapse:collapse;border-spacing:0px;width:auto;margin-bottom:20px;border:1px solid rgb(221,221,221);color:rgb(51,51,51);font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-size:14px"><tbody><tr><td align="center" style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221);background-color:rgb(249,249,249)"><a href="http://www.fileformat.info/info/unicode/char/09f3/index.htm" style="color:rgb(0,85,128);outline:0px">U+09F3</a></td><td style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">BENGALI RUPEE SIGN</td><td align="center" style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">৳</td></tr></tbody></table><table style="max-width:100%;border-collapse:collapse;border-spacing:0px;width:auto;margin-bottom:20px;border:1px solid rgb(221,221,221);color:rgb(51,51,51);font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-size:14px"><tbody><tr><td align="center" style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221);background-color:rgb(249,249,249)"><a href="http://www.fileformat.info/info/unicode/char/0af1/index.htm" style="color:rgb(0,85,128);outline:0px">U+0AF1</a></td><td style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">GUJARATI RUPEE SIGN</td><td align="center" style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">૱</td></tr></tbody></table><table style="max-width:100%;border-collapse:collapse;border-spacing:0px;width:auto;margin-bottom:20px;border:1px solid rgb(221,221,221);color:rgb(51,51,51);font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-size:14px"><tbody><tr><td align="center" style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221)"><a href="http://www.fileformat.info/info/unicode/char/0bf9/index.htm" style="color:rgb(0,85,128);outline:0px">U+0BF9</a></td><td style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221)">TAMIL RUPEE SIGN</td><td align="center" style="padding:8px;line-height:20px;vertical-align:top;border-top:1px solid rgb(221,221,221)">௹</td></tr></tbody></table>I believe U+02A8 ₨ is deprecated in India but still used in Pakistan.<table style="max-width:100%;border-collapse:collapse;border-spacing:0px;width:auto;margin-bottom:20px;border:1px solid rgb(221,221,221)"><tbody></tbody></table><br>However, the discussion also let me to find your on Wikipedia, which also urged towards Nick's more general pattern specifier:</div><div dir="auto"></div><div dir="auto"><br></div><div dir="auto"><span style="color:rgb(34,34,34);font-family:"helvetica neue",helvetica,"nimbus sans l",arial,"liberation sans",sans-serif;font-size:16px;background-color:rgb(255,255,255)">Outside of Taiwan, digits are sometimes grouped by myriads instead of thousands. Hence it is more convenient to think of numbers here as in groups of four, thus 1,234,567,890 is regrouped here as 12,3456,7890. Larger than a myriad, each number is therefore four zeroes longer than the one before it, </span><br></div><div dir="auto"></div><div dir="auto"><div class="gmail_extra"><br></div></div></div>