Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-28 Thread Alan Gauld via Tutor
On 28/04/2019 15:56, David wrote: > I'm sorry to hear it's such a headache. It sounds like the list > manager interface for that task is dreadful. It should be able to take > you straight to the configuration for the user who wrote the message. Its not that bad but it does involve copying the

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-28 Thread David
On Sun, 28 Apr 2019 at 02:57, Alan Gauld via Tutor wrote: > On 27/04/2019 01:22, David wrote: > > > It's no big deal, but I wonder why you wouldn't approve an address > > the first time you see that it is being used for legitimate discussion. > > Time... > > It takes about 10 seconds to scan a

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-27 Thread Alan Gauld via Tutor
On 27/04/2019 01:22, David wrote: > It's no big deal, but I wonder why you wouldn't approve an address > the first time you see that it is being used for legitimate discussion. Time... It takes about 10 seconds to scan a message and click the button to pass it through (or reject it). It takes

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-27 Thread David
On Sat, 27 Apr 2019 at 02:14, Alan Gauld via Tutor wrote: > On 26/04/2019 13:48, Arup Rakshit wrote: > > > BTW, one thing I would like to know about this list is that, everytime I > > send an email I see it the in list after 2 hours approx. Is this for me > > or everybody? I am just curious. > >

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-26 Thread Arup Rakshit
On 26/04/19 8:58 PM, Alan Gauld via Tutor wrote: On 26/04/2019 13:48, Arup Rakshit wrote: BTW, one thing I would like to know about this list is that, everytime I send an email I see it the in list after 2 hours approx. Is this for me or everybody? I am just curious. Just for you! ...And

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-26 Thread Steven D'Aprano
On Fri, Apr 26, 2019 at 06:18:32PM +0530, Arup Rakshit wrote: > BTW, one thing I would like to know about this list is that, everytime I > send an email I see it the in list after 2 hours approx. Is this for me > or everybody? I am just curious. Just you, I think. Looking at the headers of

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-26 Thread Alan Gauld via Tutor
On 26/04/2019 13:48, Arup Rakshit wrote: > BTW, one thing I would like to know about this list is that, everytime I > send an email I see it the in list after 2 hours approx. Is this for me > or everybody? I am just curious. Just for you! ...And every other new poster :-) It stays on

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-26 Thread Arup Rakshit
On 26/04/19 11:10 AM, Steven D'Aprano wrote: On Thu, Apr 25, 2019 at 02:52:07PM +0530, Arup Rakshit wrote: Here it is: *3.3.2.1. Customizing module attribute access* (https://docs.python.org/3/reference/datamodel.html#customizing-module-attribute-access) Oh! That's brand new in 3.7, no wonder

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-25 Thread Steven D'Aprano
On Thu, Apr 25, 2019 at 02:52:07PM +0530, Arup Rakshit wrote: > Here it is: *3.3.2.1. Customizing module attribute access* > (https://docs.python.org/3/reference/datamodel.html#customizing-module-attribute-access) Oh! That's brand new in 3.7, no wonder I didn't know about it. I did see the

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-25 Thread Arup Rakshit
On 25/04/19 1:21 PM, Steven D'Aprano wrote: On Thu, Apr 25, 2019 at 11:30:28AM +0530, Arup Rakshit wrote: On 25/04/19 3:52 AM, Alan Gauld via Tutor wrote: On 24/04/2019 12:22, Arup Rakshit wrote: In the simple code like what are the advantages we get from? I'm not really sure what you are

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-25 Thread Steven D'Aprano
On Thu, Apr 25, 2019 at 11:30:28AM +0530, Arup Rakshit wrote: > On 25/04/19 3:52 AM, Alan Gauld via Tutor wrote: > >On 24/04/2019 12:22, Arup Rakshit wrote: > >>In the simple code like what are the advantages we get from? > >I'm not really sure what you are asking about? > > Ok. My question is

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-25 Thread Arup Rakshit
On 25/04/19 3:52 AM, Alan Gauld via Tutor wrote: On 24/04/2019 12:22, Arup Rakshit wrote: In the simple code like what are the advantages we get from? I'm not really sure what you are asking about? Ok. My question is that when people add such a class to the module? What is the goal/intention

Re: [Tutor] When you think to setup the __class__ of a module object to a subclass of ModuleType

2019-04-24 Thread Alan Gauld via Tutor
On 24/04/2019 12:22, Arup Rakshit wrote: > In the simple code like what are the advantages we get from? I'm not really sure what you are asking about? > Is this so that we can implement more special methods > than just __getattr__ and __dir__ in the module level? Is it just the inheritance