Re: abc don't play well with private method

2010-05-19 Thread mouadino
Hello, and thank you for ALL the informations. i think i was reading the wrong documents :) For my use of ABC, i wanted to implement a plugin interface with the ABC, in first i define a Base class (ABC) that other class inherit(implement) so that they can be interfaced as plugins. but i did have

Re: abc don't play well with private method

2010-05-18 Thread Bruno Desthuilliers
mouadino a écrit : Hello and thanx for your answer it's was very helpful but just to clear some thinks : There's no such thing as a "private" attribute in Python. The name-mangling mechanism invoked by "__name" is really meant to avoid accidental redefinition of the attribute in a derived clas

Re: abc don't play well with private method

2010-05-17 Thread Steven D'Aprano
On Mon, 17 May 2010 06:35:11 -0700, mouadino wrote: >> There's no such thing as a "private" attribute in Python. The >> name-mangling mechanism invoked by "__name" is really meant to avoid >> accidental redefinition of the attribute in a derived class. > >> In this case, your attribute is expecte

Re: abc don't play well with private method

2010-05-17 Thread mouadino
Hello and thanx for your answer it's was very helpful but just to clear some thinks : > There's no such thing as a "private" attribute in Python. The > name-mangling mechanism invoked by "__name" is really meant to avoid > accidental redefinition of the attribute in a derived class. > In this ca

Re: abc don't play well with private method

2010-05-17 Thread mouadino
Hello and thanx for your answer it's was very helpful but just to clear some thinks : > There's no such thing as a "private" attribute in Python. The > name-mangling mechanism invoked by "__name" is really meant to avoid > accidental redefinition of the attribute in a derived class. > In this ca

Re: abc don't play well with private method

2010-05-17 Thread mouadino
Hello and thanx for your answer it's was very helpful but just to clear some thinks : > There's no such thing as a "private" attribute in Python. The > name-mangling mechanism invoked by "__name" is really meant to avoid > accidental redefinition of the attribute in a derived class. > In this ca

Re: abc don't play well with private method

2010-05-05 Thread Bruno Desthuilliers
mouadino a écrit : i have a problem here : i want to make a plugin architecture using abstract base class , this is my base class : # -*- coding: utf-8 -*- import abc class BASE_Connector: """ Mount point for plugins which refer to actions that can be performed. Plugins implemen

abc don't play well with private method

2010-05-05 Thread mouadino
i have a problem here : i want to make a plugin architecture using abstract base class , this is my base class : # -*- coding: utf-8 -*- import abc class BASE_Connector: """ Mount point for plugins which refer to actions that can be performed. Plugins implementing this reference s