[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread David Mertz
It's easy, just use vim! (with conceal plugin). I haven't changed anything other than keywords and built-ins, but the plugin is happy to replace any other sequence or pattern. On Mon, Jul 15, 2019 at 9:26 AM Joao S. O. Bueno wrote: > Adrien - please take note that since you already wrote abo

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Joao S. O. Bueno
Adrien - please take note that since you already wrote about "everybody could update their environment and editors" to support unicode, things like what you want (emojis in identifiers) can be supported at programming editor (and plug-ins and extensions for those) level - without impairing anyone

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Paul Moore
On Mon, 15 Jul 2019 at 14:33, Dan Sommers <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 7/15/19 8:54 AM, Steven D'Aprano wrote: > >  = .(, ) > > I call foul. At least tentatively. For the moment. That was a demo (he used private area characters to ensure getti

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Eric V. Smith
On 7/15/2019 7:43 AM, Adrien Ricocotam wrote: Oh ok ! I tried with some unicodes (🔥) but it didn't work. So it's only a subset as described in PEPs ? Correct. What about extending it ? The PEP has a rationale about why it works like it does. If you want to extend it, you should be prepare

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Dan Sommers
On 7/15/19 8:54 AM, Steven D'Aprano wrote:  = .(, ) I call foul. At least tentatively. For the moment. http://www.unicode.org/reports/tr31/ and http://www.unicode.org/reports/tr39/ specifically exclude private use characters, like U+E24C, from identifiers. And

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Adrien Ricocotam
> In the future, before making suggestions for new features, you should do some research into what is already possible, and whether it has already been suggested before I did some but couldn't find anything apart using unicode in strings. I didn't mention in this mail but I used to in my first try

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Steven D'Aprano
On Mon, Jul 15, 2019 at 01:34:02PM +0200, Adrien Ricocotam wrote: > Hi all, > What would you think if we could write our code using unicode ? > It would be especially useful for scientific programming (we could use the > greek letters), We've been able to do that since about 2007. https://www.py

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Rhodri James
On 15/07/2019 12:34, Adrien Ricocotam wrote: it could also be nice to use emojis for some variables For values of "nice" I personally find horrifying :-) Seriously though, the PEP defines valid characters for names by their unicode categories (plus a few special cases for backward compatibil

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Andrew Barnert via Python-ideas
On Jul 15, 2019, at 04:43, Adrien Ricocotam wrote: > > Oh ok ! > I tried with some unicodes (🔥) but it didn't work. So it's only a subset as > described in PEPs ? > What about extending it ? I’m pretty sure that the docs explain that the subset of characters that Python allows in identifiers i

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Adrien Ricocotam
Oh ok ! I tried with some unicodes (🔥) but it didn't work. So it's only a subset as described in PEPs ? What about extending it ? Le lun. 15 juil. 2019 à 13:41, Chris Angelico a écrit : > On Mon, Jul 15, 2019 at 9:37 PM Adrien Ricocotam > wrote: > > > > Hi all, > > What would you think if we co

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Chris Angelico
On Mon, Jul 15, 2019 at 9:37 PM Adrien Ricocotam wrote: > > Hi all, > What would you think if we could write our code using unicode ? > It would be especially useful for scientific programming (we could use the > greek letters), it could also be nice to use emojis for some variables. I > don't s

[Python-ideas] Re: Coding using Unicode

2019-07-15 Thread Eric V. Smith
On 7/15/2019 7:34 AM, Adrien Ricocotam wrote: Hi all, What would you think if we could write our code using unicode ? It would be especially useful for scientific programming (we could use the greek letters), it could also be nice to use emojis for some variables. I don't see any bad consequenc