Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: how to get names of attributes Date: Thu, 31 Dec 2015 09:26:40 +1100 Lines: 19 Message-ID: References: <1451495083.3899875.479298458.71309BB4@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de SzWZLFMZ65K/UsiBAlsy1gLlX1ZSFXBcLZbkkAKmi1rw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'true,': 0.04; 'classes,': 0.05; 'classes.': 0.07; 'cc:addr :python-list': 0.09; 'python': 0.10; 'wed,': 0.15; 'thu,': 0.15; '"by': 0.16; '07:50,': 0.16; 'afterwards': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'new- style': 0.16; 'old-style': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '31,': 0.22; 'am,': 0.23; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; '2.1': 0.27; 'classes': 0.30; 'that.': 0.30; 'url:mailman': 0.30; 'actively': 0.30; 'class.': 0.30; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'something': 0.35; 'there': 0.36; 'url:org': 0.36; 'possible.': 0.36; 'received:209.85': 0.36; '(i.e.': 0.36; "wasn't": 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:209': 0.38; "didn't": 0.39; 'url:mail': 0.40; 'avoid': 0.61; '30,': 0.63; 'introduction': 0.63; 'more': 0.63; 'believe': 0.66; 'subject:get': 0.81; 'chrisa': 0.84; 'python-dev': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=H3giK5J3oe+iAz1sqoP5KcRvw9HvrG3EzBZn3Xi1QsM=; b=g2ytIW7/06BAbsYZQDCmwH3Hwz0Snotq0xvvPE3RqZ6FFJoxWLnXXdwtNgZ3lg47Jb 7FZXnJAkydBBwTkOZ+f5snyNixC/CoqAJRxDrBBSYkruyeX+/ynmL2MrkJ/0ZHOOR1Cl vsV48XwzZ3jl954zw5i4t9cyjv7KobqN6O5tGjBGUTFWkFgLBReoK9Yg6GUXOMjaZdsz VnhToYINUlN7b9R/Q1fXlcy6/KNRKJVhQ7IecKf2V52bWLanCw3xjpIGvoJgF66WK8Yh W8xq2mFmIjN1Z+i4PIgNbKyl7BXgaiu+prTLNPlLwPVseska68qixFzp34CE9ifieYNR IRYg== X-Received: by 10.107.47.162 with SMTP id v34mr16744665iov.19.1451514400883; Wed, 30 Dec 2015 14:26:40 -0800 (PST) In-Reply-To: <1451495083.3899875.479298458.71309BB4@webmail.messagingengine.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101014 On Thu, Dec 31, 2015 at 4:04 AM, Random832 wrote: > On Wed, Dec 30, 2015, at 07:50, Chris Angelico wrote: >> I believe that's true, yes. The meaning of "by default" there is that >> "class X: pass" will make an old-style class. All built-in types are >> now new-style classes. > > To be clear, AFAIK, built-in types were never old-style classes - prior > to the introduction of the new type system (i.e. in Python 2.1 and > earlier) they were not classes, and afterwards they were immediately > new-style classes. > -- > https://mail.python.org/mailman/listinfo/python-list Thanks Random. I wasn't actively using Python until about 2.5ish, and wasn't following python-dev until even more recently, so I didn't keep track of all that. And frankly, old-style classes have just been something I avoid whereever possible. ChrisA