Re: Checking parameters prior to object initialisation

2007-05-24 Thread Bruno Desthuilliers
Brett_McS a écrit : > Fairly new to Python (and loving it!) > > In C++ (gack!) I got used to creating a helper function with each class to > check the class object initialisation parameters prior to creating the > object. > > In Python, this would be > --

Re: Checking parameters prior to object initialisation

2007-05-24 Thread Peter Otten
Brett_McS wrote: > In C++ (gack!) I got used to creating a helper function with each class to > check the class object initialisation parameters prior to creating the > object. > > In Python, this would be > --- > import example > > if example.Paramete