On 5/21/10, Chris Rebert <c...@rebertia.com> wrote: > On Fri, May 21, 2010 at 1:09 PM, Alex Hall <mehg...@gmail.com> wrote: >> On 5/21/10, Ethan Furman <et...@stoneleaf.us> wrote: >>> Alex Hall wrote: >>>> On 5/20/10, alex23 <wuwe...@gmail.com> wrote: >>>> I have since updated each ship's >>>> __init__ to accept all the arguments that Craft accepts so that I can >>>> support all optional arguments, >>> >>> Ick. Now you'll have to change several things if you make one change to >>> the Craft class. Better to do it this way: >>> >>> [borrowing Peter's example] >>> >>> class Craft(object): >> Curious: I do not pass Craft this "object" keyword and I have no >> problems. What is it for? Just a convention, something like self being >> called self? > > It causes the class to be "new-style". See > http://docs.python.org/reference/datamodel.html#new-style-and-classic-classes Oh, I see. Thanks. > > Cheers, > Chris > -- > http://blog.rebertia.com >
-- Have a great day, Alex (msg sent from GMail website) mehg...@gmail.com; http://www.facebook.com/mehgcap -- http://mail.python.org/mailman/listinfo/python-list