Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'singh': 0.07; 'difference,': 0.09; 'either.': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'guys,': 0.16; 'object?': 0.16; 'received:10.60': 0.16; 'shed': 0.16; 'why.': 0.16; 'cc:addr:python-list': 0.17; 'this?': 0.19; 'guess': 0.19; 'header:In-Reply-To:1': 0.21; 'say,': 0.22; 'cc:2**0': 0.22; 'classes': 0.26; 'wondering': 0.28; 'received:199': 0.29; 'instead': 0.29; 'cc:addr:python.org': 0.30; 'types.': 0.30; 'anyone': 0.32; "can't": 0.32; 'received:198': 0.32; 'does': 0.33; 'light': 0.34; 'there': 0.35; 'header:User- Agent:1': 0.35; 'using': 0.35; 'url:python': 0.38; 'could': 0.38; 'url:org': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'really': 0.40; 'super': 0.63; 'here': 0.66; 'special': 0.66; 'url:3': 0.67; 'william': 0.68; 'programs,': 0.80; '03:59': 0.84; 'different.': 0.84; 'inheritance,': 0.93 Date: Fri, 20 May 2011 10:54:57 +0800 From: William User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: Navkirat Singh Subject: Re: Inheriting Object References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305860890 news.xs4all.nl 49047 [::ffff:82.94.164.166]:42943 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5806 Hi Nav: Here is the long why. http://www.python.org/download/releases/2.2.3/descrintro/ I guess for most programs, there is no big difference, but if you use some special features that might be different. Say, could use super when using type() instead of class(), also, when using multiple inheritance, you can't multiply inherit from different built-in types. Some new features such as property() is not supported in type either. BRs William On 01/-9/-28163 03:59 AM, Navkirat Singh wrote: > Hi Guys, > > I have been wondering for a while now as to why some classes inherit > Object? And what does it really do for the class? Can anyone shed some > light on this? > > Regards, > Nav