[Python-ideas] Visually confusable unicode characters in identifiers

Andre Roberge andre.roberge at gmail.com
Mon Oct 1 22:55:30 CEST 2012


On Mon, Oct 1, 2012 at 5:51 PM, Guido van Rossum <guido at python.org> wrote:

> On Mon, Oct 1, 2012 at 1:26 PM, Oscar Benjamin
>
SNIP


> > Non-ascii identifiers have other possible uses. I'll repost the case
> > that started this discussion on python-tutor (attached in case it
> > doesn't display):
> >
> > '''
> > #!/usr/bin/env python3
> > # -*- encoding: utf-8 -*-
> >
> > # Parameters
> > α = 1
> > β = 0.1
> > γ = 1.5
> > δ = 0.075
> >
> > # Initial conditions
> > xₒ = 10
> > yₒ = 5
> > Zₒ = xₒ, yₒ
> >
>
SNIP

>
> Those examples would be a lot more compelling if there was an
> acceptable way to input those characters. Maybe we could support some
> kind of input method that enabled LaTeX style math notation as used by
> scientists for writing equations in papers?
>
>
+1000

André Roberge


> --
> --Guido van Rossum (python.org/~guido)
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121001/ba97c7b7/attachment.html>


More information about the Python-ideas mailing list