[Tutor] Syntax when using classes question.

Chris Hengge pyro9219 at gmail.com
Fri Nov 10 22:19:12 CET 2006


is the following dummycode good practice? Or pythonic? or what? I'm just
curious because there are several ways I've found to use libraries and
classes...

Method 1:
from lib import class
lib().class(param1, param2)

Method 2: (C Style?)
from lib import class
myClass = class()
myLib.class(param1, param2)

Thanks for whatever clarity you can share!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061110/9a6c78e7/attachment.htm 


More information about the Tutor mailing list