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 readers to force them to scroll past paragraph after paragraph of text they have already read that isn't directly relevant to your reply.
I wrote: > >* but using a special, implicit, version of import which calls > > importlib.resources.read_text rather than the standard import; > > > >* leading to confusion when people try things like > > > > f'{from math import pi}' > > > > and get a surprising TypeError that math is not a package. And Soni replied: > that pi is not a resource* I certainly hope not! The error message should be the *direct* cause of the error. In this case, pi is not a resource because math is not a package, and so we should report that error. Think about how you would fix the problem: before you can add a "pi" resource, you first have to make math a package. Likewise, if we wrote something like this: f'{from blibble_dibble import pi}' we ought to get something like: ModuleNotFoundError: No module named 'blibble_dibble' rather than waste the caller's time trying to diagnose why the import system can't see the resource "pi" when the actual problem is that the import system can't even see the package itself. (Perhaps it is not on the path, perhaps it is misspelled.) -- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ECJDSLDUNQ6TGLBQQWCKJXGB4MVJV6VX/ Code of Conduct: http://python.org/psf/codeofconduct/