[Python-ideas] Re: Resource imports (as strings/bytes)

2020-01-20 Thread Steven D'Aprano
On Sun, Jan 19, 2020 at 08:09:32PM -0300, Soni L. wrote: > We have importlib. We have importlib.resources. We can import modules. > We cannot (yet) import resources using the same-ish module import machinery. Actually we can, using importlib.resources, which you already mentioned. The machinery

[Python-ideas] Re: List - append

2020-01-20 Thread Steven D'Aprano
On Sun, Jan 19, 2020 at 04:27:30PM -0500, David Mertz wrote: > I'm not sure what you intend here: > > A fluent interface is normally implemented by using method chaining Indeed. *Implemented by*, not "the same as". > to implement method > cascadi

[Python-ideas] Re: Resource imports (as strings/bytes)

2020-01-20 Thread Soni L.
On 2020-01-20 5:54 a.m., Steven D'Aprano wrote: On Sun, Jan 19, 2020 at 08:09:32PM -0300, Soni L. wrote: > We have importlib. We have importlib.resources. We can import modules. > We cannot (yet) import resources using the same-ish module import machinery. Actually we can, using importlib.

[Python-ideas] Re: Resource imports (as strings/bytes)

2020-01-20 Thread Steven D'Aprano
Soni, you seem to be using Thunderbird as a mail client. As far as I remember from my time with Thunderbird, it allows, and makes it quite simple, to trim your quoting. There's no need to quote an entire 100 line message to add a single one sentence comment at the end: it is not nice to your re

[Python-ideas] Re: Resource imports (as strings/bytes)

2020-01-20 Thread Soni L.
On 2020-01-20 5:13 p.m., Steven D'Aprano wrote: Soni, you seem to be using Thunderbird as a mail client. As far as I remember from my time with Thunderbird, it allows, and makes it quite simple, to trim your quoting. There's no need to quote an entire 100 line message to add a single one senten