Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101000
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "Charles T. Smith" <cts.private.yahoo@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: how to get names of attributes |
| Date | Wed, 30 Dec 2015 14:50:54 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 23 |
| Message-ID | <n60r0d$rtp$3@dont-email.me> (permalink) |
| References | <n60gfk$b0t$1@dont-email.me> <mailman.71.1451484641.11925.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Wed, 30 Dec 2015 14:50:54 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="0be5e7774f1afa24fb74063d17265f8f"; logging-data="28601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Buh8y6BlDTysByJM1Gad2cjE8O950UDg=" |
| User-Agent | Pan/0.133 (House of Butterflies) |
| Cancel-Lock | sha1:FR47tILYpVy34Ds3lbELkI5v/Wk= |
| Xref | csiph.com comp.lang.python:101000 |
Show key headers only | View raw
On Wed, 30 Dec 2015 14:10:14 +0000, Mark Lawrence wrote: > On 30/12/2015 11:51, Charles T. Smith wrote: >> Hi, >> >> Does anyone know *why* the __members__ method was deprecated, to be >> replaced by dir(), which doesn't tell the truth (if only it took an >> optional parameter to say: "be truthful") > > https://bugs.python.org/issue456420 > https://bugs.python.org/issue449989 Thank you, that was what I asked for, kinda. According to the experts, the reason that the __members__() method was deprecated is that it was an "ugly hack". *Why* it was an ugly hack wasn't made clear (to me), unfortunately. My other postings to this topic show, I think, why the ability to know what's available (in the way of attributes) is a good thing, as I try to figure out how to get at my attributes without triggering __getattr__(), which I'm implementing.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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