Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101003

Re: how to get names of attributes

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Random832 <random832@fastmail.com>
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 <mailman.77.1451495092.11925.python-list@python.org> (permalink)
References <n60gfk$b0t$1@dont-email.me> <n60jb6$hln$2@dont-email.me> <CAPTjJmqQMQZBZnGPWg_6Ct-NsKDf8=nGarWbRKZUZ1HLwAbvNA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de GM0A6WnfNGAZBZaN34Dt0w1SgoW7dwOsUQQomq26VtrQ==
Return-Path <random832@fastmail.com>
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 <CAPTjJmqQMQZBZnGPWg_6Ct-NsKDf8=nGarWbRKZUZ1HLwAbvNA@mail.gmail.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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:101003

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to get names of attributes "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2015-12-30 11:51 +0000
  Re: how to get names of attributes Chris Angelico <rosuav@gmail.com> - 2015-12-30 22:58 +1100
  Re: how to get names of attributes "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2015-12-30 12:16 +0000
    Re: how to get names of attributes Chris Angelico <rosuav@gmail.com> - 2015-12-30 23:34 +1100
  Re: how to get names of attributes "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2015-12-30 12:40 +0000
    Re: how to get names of attributes Chris Angelico <rosuav@gmail.com> - 2015-12-30 23:50 +1100
      Re: how to get names of attributes "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2015-12-30 13:31 +0000
        Re: how to get names of attributes Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-30 14:16 +0000
        Re: how to get names of attributes Chris Angelico <rosuav@gmail.com> - 2015-12-31 00:45 +1100
    Re: how to get names of attributes Random832 <random832@fastmail.com> - 2015-12-30 12:04 -0500
    Re: how to get names of attributes Chris Angelico <rosuav@gmail.com> - 2015-12-31 09:26 +1100
  Re: how to get names of attributes Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-30 14:10 +0000
    Re: how to get names of attributes "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2015-12-30 14:50 +0000
  Re: how to get names of attributes Steven D'Aprano <steve@pearwood.info> - 2015-12-31 10:58 +1100
    Re: how to get names of attributes "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2015-12-31 10:46 +0000

csiph-web