Re: sending a class as an argument

2007-01-29 Thread Gabriel Genellina
En Mon, 29 Jan 2007 01:24:23 -0300, manstey <[EMAIL PROTECTED]> escribió: > > Our class has its attributes set as classes, as in > > MyClass.Phone.Value='34562346' > MyClass.Phone.Private=True > > Inside the MyClass definition we have a function like this: > > def MyFunc(self,clsProperty): >if

Re: sending a class as an argument

2007-01-28 Thread Steven D'Aprano
On Sun, 28 Jan 2007 20:24:23 -0800, manstey wrote: > Hi, > > Our class has its attributes set as classes, as in > > MyClass.Phone.Value='34562346' > MyClass.Phone.Private=True The Python convention is that classes have initial capitals (MyClass), instances do not, and nor do attribute names. I