Re: Faking stdlib

2020-10-01 Thread Abdur-Rahmaan Janhangeer
The last time this was raised, it seemed that folks in here don't have a clear idea of what the standard library is ^^ https://mail.python.org/archives/list/python-id...@python.org/thread/XSYEVRPJQUX7VBTPNIJMUFZQIZ7WLOQU/ A summary: https://lwn.net/Articles/794458/ Kind Regards, Abdur-Rahmaan

Re: Faking stdlib

2020-10-01 Thread Chris Angelico
On Thu, Oct 1, 2020 at 5:02 PM Antoon Pardon wrote: > > I'm playing with the following idea. > > Have the main program do some kind of preparations so that all further > modules can import the standard modules via stdlib. So instead of > > import sys > from itertools import chain > > I c

Faking stdlib

2020-10-01 Thread Antoon Pardon
I'm playing with the following idea. Have the main program do some kind of preparations so that all further modules can import the standard modules via stdlib. So instead of import sys from itertools import chain I could do import stdlib.sys from stdlib.itertools import chain