On 01/06/17 20:11, Nikolaus Rath wrote: > On Jun 01 2017, Victor Stinner > <victor.stinner-re5jqeeqqe8avxtiumw...@public.gmane.org> wrote: >> 2017-06-01 8:47 GMT+02:00 Serhiy Storchaka <storch...@gmail.com>: >>> What you are think about adding Unicode aliases for some mathematic names in >>> the math module? ;-) >>> >>> math.π = math.pi >> How do you write π (pi) with a keyboard on Windows, Linux or macOS? > Under Linux, you'd use the Compose facility. Take a look at eg. > /usr/share/X11/locale/en_US.UTF-8/Compose for all the nice things it > let's you enter: > > $ egrep '[πτΓ]' /usr/share/X11/locale/en_US.UTF-8/Compose > <dead_greek> <G> : "Γ" U0393 # GREEK CAPITAL LETTER GAMMA > <dead_greek> <p> : "π" U03C0 # GREEK SMALL LETTER PI > <dead_greek> <t> : "τ" U03C4 # GREEK SMALL LETTER TAU >
Have you ever seen a keyboard with a <dead_greek> key in real life, though? -- Thomas Jollans m ☎ +31 6 42630259 e ✉ t...@tjol.eu _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/