[Python-ideas] Revisiting dedicated overloadable boolean operators

David Mertz mertz at gnosis.cx
Sat Aug 4 14:23:08 EDT 2018


That's very nice Stephan. I think I'll add those to my machines.

But not everyone uses vim. And although I use vim a lot, I also use other
text editors, by choice or compulsion (e.g. editing code in web interface).
And even when I have vim, I don't necessarily have the ability to install
and test a .vimrc on the machines I use.

There are probably analogous ways to add sequence bindings in other text
editors. But until or unless such configurations are universal across
operating systems and editors, this offers little help for hypothetical
Unicode operators in Python.

On Sat, Aug 4, 2018, 2:15 PM Stephan Houben <stephanh42 at gmail.com> wrote:

> I use these Vim abbreviations,
> which are derived from LaTeX
>
> https://gist.github.com/stephanh42/fc466e62bfb022a890ff2c4643eaf3a5
>
> Stephan
>
> Op za 4 aug. 2018 20:03 schreef David Mertz <mertz at gnosis.cx>:
>
>> On Sat, Aug 4, 2018, 1:24 PM Steven D'Aprano <steve at pearwood.info> wrote:
>>
>>> If you think the uproar over PEP 572 was vicious, imagine what would
>>> happen if we introduced new operators like ∉ ∥ ∢ ∽ ⊎ etc instead.
>>>
>>> - keyboard support for entering the bulk of Unicode characters is
>>>   non-existent or poor;
>>>
>>> - without keyboard support, editor support for entering Unicode
>>>   characters is as best clunky, requiring the memorization of
>>>   obscure names, hex codes, or a GUI palette;
>>>
>>
>> This is the essential problem. I write this as someone who has the vim
>> conceal plugin configured to change my Python code into something with many
>> of those funny characters Steven users as examples.
>>
>> But while I like looking at those, although recognizing it's quirky,
>> entering any of them is enormously cumbersome. I did it once to configure
>> my substitution macros (which are purely visual... What I type in is just
>> ASCII and that's what is saved in soak, but it appears on screen with some
>> replacements).
>>
>>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180804/2d8d90d2/attachment.html>


More information about the Python-ideas mailing list