Read the 6th mail sent chronologically.

Will do.

Abdur-Rahmaan Janhangeer
Mauritius

On Wed, 17 Jul 2019, 02:26 Steven D'Aprano, <st...@pearwood.info> wrote:

> On Mon, Jul 15, 2019 at 10:47:06PM +0400, Abdur-Rahmaan Janhangeer wrote:
> > Greetings,
> >
> > Just like builtins module, would it be a good idea to have a stdlib
> module
> > so that we can know all modules in the std lib (just like builtins let us
> > know builtins)?
>
> The builtins module doesn't exist only so we can "know builtins". If the
> only purpose of this proposal is to "know all modules in the std lib",
> it is better to just read the docs:
>
> https://docs.python.org/3/library/index.html
>
> One possible advantage here might be to distinguish between:
>
> import math
>
> from stdlib import math
>
> where the first one will use whatever "math" module appears first on the
> Python path, while the second will use the actual standard math module.
> But is this useful?
>
> Distinguishing between (for example) an open function defined in your
> module, and the builtins open, *is* useful and common:
>
> open  # Modules may shadows the builtin function.
>
> builtins.open
>
> but it isn't clear to me that shadowing parts of the std lib is useful
> or common (except by accident, which is a problem to fix not a feature
> to encourage).
>
> I think if you are interested in this, you ought to start by defining
> the benefits of the proposal: what do you expect to gain?
>
>
>
> --
> 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/BBBLQ3M44TYNPDEU35325WBVDOCF2BPN/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
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/4HBAAMNI2PDVH5AGCZHHJR4UEJWXW3FV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to