Jim Baker's draft PEP gives runtime behavior to tagged strings. I agree
it would all be pointless if it's just hints to an editor. Sorry, I
again don't have a handy link to his PEP. But it's similar in spirit to
PEP 501.
Eric
On 12/22/2022 2:36 PM, Joao S. O. Bueno wrote:
I am not
On 19/12/2022 03:23, David Mertz, Ph.D. wrote:
On Sun, Dec 18, 2022 at 8:29 PM Steven D'Aprano
wrote:
> However, if you want to allow these types to possibly *do*
something with
> the strings inside (validate them, canonicalize them, do a
security check,
> etc), I think
I am not enthusiastic about this idea at all: as I perceive it it is an IDE
problem, external to the language, and
should be resolved there - maybe with a recommendation PEP.
But on the other hand, I had seem tens of e-mails discussing
string-subclassing, so that
annotations could suffice as a
On 17/12/2022 16:07, e...@emilstenstrom.se wrote:
Python's currently supported string types are just single letter, so the
suggestion is to require tagged strings to be at least two letters.
Er, no:
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32
bit (Intel)] on