>
>
>>    1. It is too verbose. Typing "conditional_escape(...)" again and
>>       again is cumbersome.
>>
>> from django import conditional_espace as esc
> f'<h1>Hi {esc(name)}</h1>'
>

It's too bad that ␛ U+251B isn't a valid Python identifier. Then we could
do it in one character :-)

But as I keep saying, confusing new syntax to save a couple characters in
calling an existing function is not a good thing.

-- 
The dead increasingly dominate and strangle both the living and the
not-yet born.  Vampiric capital and undead corporate persons abuse
the lives and control the thoughts of homo faber. Ideas, once born,
become abortifacients against new conceptions.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/MHIKHVO6365C6HLLT53Q7FVQ5ULYXPBR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to