Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: how to get names of attributes Date: Wed, 30 Dec 2015 12:04:43 -0500 Lines: 9 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de GM0A6WnfNGAZBZaN34Dt0w1SgoW7dwOsUQQomq26VtrQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'true,': 0.04; 'classes,': 0.05; 'classes.': 0.07; 'received:internal': 0.09; 'python': 0.10; 'wed,': 0.15; '"by': 0.16; '07:50,': 0.16; 'afterwards': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'new-style': 0.16; 'old-style': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; '2.1': 0.27; 'classes': 0.30; 'class.': 0.30; 'there': 0.36; '(i.e.': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; '30,': 0.63; 'introduction': 0.63; 'believe': 0.66; 'subject:get': 0.81 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=xr4uVLZBkJxAjhniVy8B84+tdtU=; b=qzV9y5 CIMYZWOXivkn5Q+w9vbREpKOc2YMZbw8HMCXVDUxSrotwsA35J1fMn/701OeSUqy Ib0EXhfgwqZYMwIi2kQ1YnHnJ4TPnRPvBxGLjl3rtboRMdPYX3emmUZp3WOYJTwY DjwRo3+m7gBklSd4cSsdfoRFsabHjaVf/ZsbQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=xr4uVLZBkJxAjhn iVy8B84+tdtU=; b=OEOU2UGWHb6Byl9w3OH0dXerqDBUZQ5X5R9LvbzShj7KTTj PqfSc88iv+BnkBZXsvhKgKUNuBGV0+p9a1EMoTSudU91dae74kFh2juEmtbPaR6b blyL/6jhgghI64daKJFXom/Sft2lceSHzE+iWwUaHzzzvu2uSVmeGwzuQpUI= X-Sasl-Enc: 2b0D66cZxuN9JZzTELVRyMOO2VyTf1AAHjm5L9KqA7VX 1451495083 X-Mailer: MessagingEngine.com Webmail Interface - ajax-a93c17cb In-Reply-To: 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:101003 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.