Re: Class design (information hiding)

2007-09-09 Thread Gregor Horvath
Alex Martelli schrieb: > > Why, thanks for the pointer -- I'm particularly proud of having written > """ > The only really workable way to develop large software projects, just as > the only really workable way to run a large business, is a state of > controlled chaos. > """ Yes, indeed a good sa

Re: Class design (information hiding)

2007-09-08 Thread Alex Martelli
Gregor Horvath <[EMAIL PROTECTED]> wrote: > Alexander Eisenhuth schrieb: > > > > I'm wodering how the information hiding in python is ment. As I > > understand there doesn't exist public / protected / private mechanism, > > but a '_' and '__' naming convention. > > > > As I figured out there

Re: Class design (information hiding)

2007-09-07 Thread Bruno Desthuilliers
Alexander Eisenhuth a écrit : > Bruno Desthuilliers schrieb: > >> Nope. It's either 'interface' (no leading underscore), >> 'implementation' (single leading underscore), 'implementation with >> some protection against accidental overriding' (two leading underscores). > > What do you mean with

Re: Class design (information hiding)

2007-09-07 Thread Marc 'BlackJack' Rintsch
On Fri, 07 Sep 2007 15:17:06 +0200, Alexander Eisenhuth wrote: > Bruno Desthuilliers schrieb: > >> Nope. It's either 'interface' (no leading underscore), 'implementation' >> (single leading underscore), 'implementation with some protection >> against accidental overriding' (two leading undersc

Re: Class design (information hiding)

2007-09-07 Thread Daniel Larsson
On 9/7/07, Alexander Eisenhuth <[EMAIL PROTECTED]> wrote: > > Bruno Desthuilliers schrieb: > > > Nope. It's either 'interface' (no leading underscore), 'implementation' > > (single leading underscore), 'implementation with some protection > > against accidental overriding' (two leading underscores

Re: Class design (information hiding)

2007-09-07 Thread Alexander Eisenhuth
Bruno Desthuilliers schrieb: > Nope. It's either 'interface' (no leading underscore), 'implementation' > (single leading underscore), 'implementation with some protection > against accidental overriding' (two leading underscores). What do you mean with 'implementation'? What does it express? -

Re: Class design (information hiding)

2007-09-07 Thread Gregor Horvath
Alexander Eisenhuth schrieb: > > I'm wodering how the information hiding in python is ment. As I > understand there doesn't exist public / protected / private mechanism, > but a '_' and '__' naming convention. > > As I figured out there is only public and private possible as speakin in > "C+

Re: Class design (information hiding)

2007-09-07 Thread Bruno Desthuilliers
Alexander Eisenhuth a écrit : > Hi all, > > I'm wodering how the information hiding in python is ment. Conventions... > As I > understand there doesn't exist public / protected / private mechanism, > but a '_' and '__' naming convention. Yes. > As I figured out there is only public and pr

Re: Class design (information hiding)

2007-09-07 Thread Daniel Larsson
On 9/7/07, Alexander Eisenhuth <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm wodering how the information hiding in python is ment. As I understand > there > doesn't exist public / protected / private mechanism, but a '_' and > '__' > naming convention. > > As I figured out there is only public

Re: Class design (information hiding)

2007-09-07 Thread Wildemar Wildenburger
Alexander Eisenhuth wrote: > As I figured out there is only public and private possible as speakin in > "C++ manner". Are you all happy with it. What does "the zen of python" > say to that design? (protected is useless?) > Ask it yourself: >>> import this > > class A: > def __init__(sel

Class design (information hiding)

2007-09-07 Thread Alexander Eisenhuth
Hi all, I'm wodering how the information hiding in python is ment. As I understand there doesn't exist public / protected / private mechanism, but a '_' and '__' naming convention. As I figured out there is only public and private possible as speakin in "C++ manner". Are you all happy with