[Python-ideas] Re: Annotated string literals

2020-02-04 Thread Barry Scott
> On 3 Feb 2020, at 01:28, Soni L. wrote: > > It'd be cool to attach metadata to string literals that doesn't end up in the > resulting string object. This metadata could be used by all sorts of tools, > everything from localization to refactoring. > > In C, some localization libraries use

[Python-ideas] Re: Annotated string literals

2020-02-04 Thread Mike Miller
On 2020-02-03 03:55, Soni L. wrote: On 2020-02-02 11:29 p.m., Eric V. Smith wrote: On 2/2/2020 8:28 PM, Soni L. wrote: It'd be cool to attach metadata to string literals that doesn't end up in the resulting string object. This metadata could be used by all sorts of tools, everything from

[Python-ideas] Re: Annotated string literals

2020-02-03 Thread Antoine Rozo
Why don't you define a LOCALIZE function (x → x) like in your C example? Le lun. 3 févr. 2020 à 13:01, Soni L. a écrit : > > > > On 2020-02-02 11:29 p.m., Eric V. Smith wrote: > > On 2/2/2020 8:28 PM, Soni L. wrote: > >> It'd be cool to attach metadata to string literals that doesn't end > >> up

[Python-ideas] Re: Annotated string literals

2020-02-03 Thread Soni L.
On 2020-02-02 11:29 p.m., Eric V. Smith wrote: On 2/2/2020 8:28 PM, Soni L. wrote: It'd be cool to attach metadata to string literals that doesn't end up in the resulting string object. This metadata could be used by all sorts of tools, everything from localization to refactoring. In C,

[Python-ideas] Re: Annotated string literals

2020-02-02 Thread Eric V. Smith
On 2/2/2020 8:28 PM, Soni L. wrote: It'd be cool to attach metadata to string literals that doesn't end up in the resulting string object. This metadata could be used by all sorts of tools, everything from localization to refactoring. In C, some localization libraries use macros for it, such