Hi everyone!
I'm the maintainer of a small django library called django-components. I've run
into a problem that I have a language-level solution (tagged strings) to, that
I think would benefit the wider python community.
*Problem*
A component in my library is a combination of python code, html
> On 17 Dec 2022, at 16:07, e...@emilstenstrom.se wrote:
>
> Hi everyone!
>
> I'm the maintainer of a small django library called django-components. I've
> run into a problem that I have a language-level solution (tagged strings) to,
> that I think would benefit the wider python community.
>
My impression whenever this idea is proposed is like Barry's. The "win"
isn't big enough not simply to use named functions.
Balancing out the slight "win" is the much larger loss of adding additional
complexity to the Python language. New grammar, new parser, possibly new
semantics if tagged stri
Hi Barry,
Your reply could easily be read as "this is a bad idea, and you shouldn't have
bothered writing it down". I hope that was not your intention, and instead it
comes from handling self-indulgent people expecting things from you all day. I
know, I get those requests too. I'll assume that
On Sat, Dec 17, 2022 at 9:43 AM wrote:
>
> Your reply could easily be read as "this is a bad idea, and you shouldn't
> have bothered writing it down". I hope that was not your intention, and
> instead it comes from handling self-indulgent people expecting things from
> you all day. I know, I get
David Mertz, Ph.D. wrote:
> My impression whenever this idea is proposed is like Barry's. The "win"
> isn't big enough not simply to use named functions.
Named functions solve another problem, so I don't see how this is an
alternative? More on this below.
> Balancing out the slight "win" is the
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
For reference: This thread has a much deeper discussion of this idea:
https://discuss.python.org/t/allow-for-arbitrary-string-prefix-of-strings/19740/11
I'll continue the discussion there instead.
___
Python-ideas mailing list -- python-ideas@python.org
On Sat, Dec 17, 2022 at 10:10 AM wrote:
>
> 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 e
> On Dec 17, 2022, at 10:08 AM, e...@emilstenstrom.se wrote:
>
> 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
On Sat, Dec 17, 2022, at 19:20, Bruce Leban wrote:
>
> On Sat, Dec 17, 2022 at 10:10 AM wrote:
>> 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 b
On Sat, Dec 17, 2022, 1:03 PM wrote:
> > Moreover, there is no reason an editor could not have a capability to
> > "colorize any string passed to a function named foo()." Perhaps with
> some
> > sort of configuration file that indicates which function names correspond
> > to which languages, but
Jim Baker has been working on tagged strings, and Guido has a working
implementation. See https://github.com/jimbaker/tagstr/issues/1
I thought Jim had a draft PEP on this somewhere, but I can’t find it.
--
Eric
> On Dec 17, 2022, at 11:14 AM, e...@emilstenstrom.se wrote:
>
> Hi everyone!
>
Just to be clear on my opinion. I think Emil's idea was 100% appropriate to
share on python-ideas, and he does a good job of showing where it works be
useful. Sure, a background search is nice, but not required.
That doesn't mean I *support* the idea. I take a very conservative attitude
towards la
On 18/12/2022 05.07, e...@emilstenstrom.se wrote:
I'm the maintainer of a small django library called django-components. I've run
into a problem that I have a language-level solution (tagged strings) to, that
I think would benefit the wider python community.
*Problem*
...
Seems simple enoug
15 matches
Mail list logo