[Python-ideas] Re: Stdlib module - Draft

2019-08-13 Thread Abdur-Rahmaan Janhangeer
Done! Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Tue, Aug 13, 2019 at 9:57 AM Christopher Barker wrote: > > > On Thu, Aug 8, 2019 at 1:18 AM Abdur-Rahmaan Janhangeer < > arj.pyt...@gmail.com> wr

[Python-ideas] Re: Stdlib module - Draft

2019-08-12 Thread Christopher Barker
On Thu, Aug 8, 2019 at 1:18 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Greetings, > > Here is a draft after the stdlib module discussion > > . > why don't you make a PR add t

[Python-ideas] Re: Stdlib Module

2019-07-17 Thread Chris Angelico
On Thu, Jul 18, 2019 at 8:53 AM Christopher Barker wrote: > But I've always (which goes back to Python 1.5) thought that putting > platform-specific behaviour in standard modules was a wart. My prime example > is the os module -- it is a wrapper around platform specific modules, and > most of i

[Python-ideas] Re: Stdlib Module

2019-07-17 Thread Christopher Barker
On Tue, Jul 16, 2019 at 3:22 PM Steven D'Aprano wrote: > > > CPython is the reference implementation. It is expected that anything > > > shipped by CPython ought to be shipped by all other implementations, > > > unless there's a very good reason not to. > > > > I agree there, *almost*: I would de

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Andrew Barnert via Python-ideas
On Jul 16, 2019, at 10:20, Abdur-Rahmaan Janhangeer wrote: > > I must make a C or pure Python demo? You can definitely implement this in pure Python. It doesn’t need C for performance reasons, it’s not going to be bootstrapped into the start sequence, it doesn’t need access to C-only APIs, et

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Abdur-Rahmaan Janhangeer
Read the 6th mail sent chronologically. Will do. Abdur-Rahmaan Janhangeer Mauritius On Wed, 17 Jul 2019, 02:26 Steven D'Aprano, 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

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Steven D'Aprano
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 onl

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Steven D'Aprano
On Tue, Jul 16, 2019 at 09:50:19AM -0700, Christopher Barker wrote: > On Tue, Jul 16, 2019 at 4:44 AM Steven D'Aprano wrote: > > > > This would be an opportunity to clearly define the “standard library” as > > > something other than “all the stuff that ships with cPython” > > > > CPython is the r

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Abdur-Rahmaan Janhangeer
I must make a C or pure Python demo? Abdur-Rahmaan Janhangeer Mauritius ___ 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/

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Christopher Barker
On Tue, Jul 16, 2019 at 4:44 AM Steven D'Aprano wrote: > > This would be an opportunity to clearly define the “standard library” as > > something other than “all the stuff that ships with cPython” > > CPython is the reference implementation. It is expected that anything > shipped by CPython ought

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Steven D'Aprano
On Mon, Jul 15, 2019 at 07:29:59PM -0700, Christopher Barker wrote: > I think this may be a worthwhile idea — after all, “namespaces are one > honking great idea” > > This would be an opportunity to clearly define the “standard library” as > something other than “all the stuff that ships with cPyt

[Python-ideas] Re: Stdlib Module

2019-07-16 Thread Steven D'Aprano
On Mon, Jul 15, 2019 at 01:36:06PM -0700, Andrew Barnert via Python-ideas wrote: > What exactly goes in stdlib? The standard library modules documented at python.org. Note that being part of the std lib doesn't necessarily mean that it will be available, even on CPython. The contents of stdlib

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Andrew Barnert via Python-ideas
On Jul 15, 2019, at 22:45, Steve Barnes wrote: > > Just out of interest there must be something like this in venv - how else can > it decide what to include in the virtual environment as copies or links? That > would give the platform specific list. Doesn’t it just do whatever’s in the libpyth

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Steve Barnes
-ideas Subject: [Python-ideas] Re: Stdlib Module On Tue, Jul 16, 2019 at 2:54 PM Andrew Barnert via Python-ideas wrote: > > And if that is the rule, there’s a lot of room for bikeshedding on the edges. > Does the stdlib then include curses because in theory it builds on any > pla

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Chris Angelico
On Tue, Jul 16, 2019 at 2:54 PM Andrew Barnert via Python-ideas wrote: > > And if that is the rule, there’s a lot of room for bikeshedding on the edges. > Does the stdlib then include curses because in theory it builds on any > platform if the lib is found, even though in practice nobody builds

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Abdur-Rahmaan Janhangeer
I think a better definition might be: "A lib to access libraries you can use without installing 3rd party packages". That way, Unix's packages included in the stdlib will be accessible on Unix only. As referenced by @Christopher Barker , a way to namespace. Like right now if you want to know the s

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Andrew Barnert via Python-ideas
> On Jul 15, 2019, at 19:29, Christopher Barker wrote: > > I think this may be a worthwhile idea — after all, “namespaces are one > honking great idea” > > This would be an opportunity to clearly define the “standard library” as > something other than “all the stuff that ships with cPython” I

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Chris Angelico
On Tue, Jul 16, 2019 at 12:30 PM Christopher Barker wrote: > > What about __future__? > > Nope: that isn’t really an import. Actually it is, and the __future__ module is the best way to find out what future directives there are and which versions they're needed in. >>> import __future__ >>> __fu

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Christopher Barker
I think this may be a worthwhile idea — after all, “namespaces are one honking great idea” This would be an opportunity to clearly define the “standard library” as something other than “all the stuff that ships with cPython” With that in mind: > Would MicroPython include framebuf in stdlib, PyPI

[Python-ideas] Re: Stdlib Module

2019-07-15 Thread Andrew Barnert via Python-ideas
On Jul 15, 2019, at 11:47, 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)? Is it just the names that are in stdlib, or s