Bruce Leban wrote:
> > Try googling "python-ideas string prefixes". Doing mimimal diligence is a
> > reasonable expectation before writing up an idea.
Thanks for the query "string prefixes". I tried other queries but not that one.
I ended my first message with "I hope I didn't break any unspoken rules" and it
seems I have.
> > If the tags are called as functions then you can do it today with this:
> > def html(s):
> > return s
> > HEAD = html('<head>')
> > If I'm not missing anything, this doesn't help with syntax highlighting?
> > Highlighting is the problem I'm talking about in my post above.
> >
> > > Not true. A syntax highlighter can certainly recognize html('...') just as
> > > it can recognize html'...'.
I replied to this in a separate post, but html() is likely a function name that
is used in millions of existing code bases. Applying this rule to all of them
will lead to too many errors to be acceptable to editors I think. And if this
has to be explicitly configured in an editor very few will use it.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/SRGLKEP7P4LSP4R3KOQW34IV35NGDSYS/
Code of Conduct: http://python.org/psf/codeofconduct/