Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed6.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'python': 0.09; 'inherited': 0.09; 'preferable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'code?': 0.16; 'new-style': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:class': 0.16; 'widely': 0.17; 'versions': 0.20; 'header:X-Complaints-To:1': 0.28; 'code': 0.31; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'subject:?': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'charset:us-ascii': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'more': 0.63; 'capabilities': 0.71; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: new-style class or old-style class? Date: Tue, 25 Sep 2012 12:33:45 -0400 Organization: > Bestiaria Support Staff < References: <2e8a9e88-9e7e-43f7-a070-ea9054e625f2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-179-103.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348590904 news.xs4all.nl 6902 [2001:888:2000:d::a6]:58452 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30111 On Tue, 25 Sep 2012 07:44:04 -0700 (PDT), Jayden declaimed the following in gmane.comp.python.general: > In learning Python, I found there are two types of classes? Which one are widely used in new Python code? Is the new-style much better than old-style? Thanks!! In Python 3.x, you only have "new-style". In Python 2.x, it is preferable to use "new-style" as there are more capabilities with them, but there is still code inherited from prior versions using "old-style" -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/