Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5826
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '2.x': 0.05; 'default,': 0.07; 'singh': 0.07; 'though.': 0.07; 'python': 0.08; '3.x': 0.09; 'equivalent.': 0.09; 'releases,': 0.09; 'pm,': 0.10; 'wrote:': 0.14; '"class': 0.16; 'equivalent,': 0.16; 'cc:addr:python-list': 0.17; 'somewhere': 0.17; 'cheers,': 0.19; 'header:In-Reply-To:1': 0.21; 'thu,': 0.22; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'classes': 0.26; 'not.': 0.26; 'received:209.85.161': 0.26; 'object': 0.26; 'message- id:@mail.gmail.com': 0.28; 'thanks': 0.28; 'cc:addr:python.org': 0.30; 'this.': 0.31; 'newer': 0.35; 'releases': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'unless': 0.39; 'received:209': 0.39; '10:11': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=n7TW+FBwbyzcFkFMzdV//+HG6Xm0Dt10R61rFqtwh0w=; b=KbgyV+K9a3EBA8NI8uK7VXlpUtVNhUGxmzhTDmmPIPUZFVaBIhFJOwn4YDblqpxPvF kMGfwz+fBFtA0RRGzqqdbGbv1cDeQimliHMwZdguFcLxmtZYGgWT1fJLeZBJCGPxGTH5 9NGaiRNXA4Op2TKmbU929WhIWqmGUiF/wUMHc= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=R+BIGvNPzsKbAAwbxoHyKjoaG1dAu0ErPzt/tlkMw/bYIdTa2VizgP5KAb1c5k7hKv 6Gk+G+pQu2Pxn5Hm+S9CxwOnIyz5zRh0HVqOeHsY9skCSb0Hq4knGMhjvDCeSqZFNunY oqX3zI/nOuGD6mvGMJk6gv3+wEwjDq4kuBD4I= |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTimJn_1deuhTnK4DDo+bvQKT05BPSw@mail.gmail.com> |
| References | <BANLkTin00aw0e0yxjPgYyb-QvtsNbLt9wg@mail.gmail.com> <4DD5D831.4020308@mrabarnett.plus.com> <BANLkTimJn_1deuhTnK4DDo+bvQKT05BPSw@mail.gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Fri, 20 May 2011 00:53:57 -0600 |
| Subject | Re: Inheriting Object |
| To | Navkirat Singh <n4vpython@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1827.1305874469.9059.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305874470 news.xs4all.nl 49180 [::ffff:82.94.164.166]:45202 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5826 |
Show key headers only | View raw
On Thu, May 19, 2011 at 10:11 PM, Navkirat Singh <n4vpython@gmail.com> wrote: > Thanks Guys...I will look deeper into this. I thought I read somewhere that > it was required in older python releases, but in newer releases it is not. I > might be wrong though. In Python 3.x all classes inherit from object by default, so "class Foo(object):" and "class Foo:" are equivalent. In Python 2.x they are not equivalent, and you should use "class Foo(object):" unless you have a specific reason not to. Cheers, Ian
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Inheriting Object Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 00:53 -0600
csiph-web