[Python-ideas] π = math.pi
Chris Angelico
rosuav at gmail.com
Fri Jun 2 20:43:56 EDT 2017
On Sat, Jun 3, 2017 at 10:38 AM, Juancarlo Añez <apalala at gmail.com> wrote:
> Speaking of which, it would be convenient to be able to build strings with
> non-ascii characters using their Unicode codepoint name:
>
> greek_pi = "\u:greek_small_letter_pi"
>
> Or something like that.
You mean:
>>> greek_pi = "\N{GREEK SMALL LETTER PI}"
>>> greek_pi
'π'
Time machine strikes again :)
ChrisA
More information about the Python-ideas
mailing list