why and when we should do it?

Su Wei pollux.suwei at gmail.com
Tue Mar 29 20:38:28 EST 2005


hi,everybody,Sorry to bother you. 
i hvae seen some code like this before:

class BusinessBO :
    dev __init__(slef):
        #write you own code here
    dev businessMethod :
        #write you own code here
pass

why and when we should add the keyword "pass" ?

and some time i have seen

class SomeObject(Object) :
      #some code

why and when we should inherit Object?

thanks in advanced.


-- 
蓦然回首曾经岁月,
朦胧中依稀闪烁着清晰。
才发现,
原来在我的记忆深处,
还残留着宁静而又幸福的瞬间。

一世风流已飘过,转眼渐成白头翁。



More information about the Python-list mailing list