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


Groups > comp.lang.python > #101014

Re: how to get names of attributes

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: how to get names of attributes
Date 2015-12-31 09:26 +1100
Message-ID <mailman.87.1451514409.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> <1451495083.3899875.479298458.71309BB4@webmail.messagingengine.com>

Show all headers | View raw


On Thu, Dec 31, 2015 at 4:04 AM, Random832 <random832@fastmail.com> 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

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