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


Groups > comp.lang.python > #76916

Re: why the attribute be deleted still in dir(man)?

References <53F91A91.6080205@gmail.com> <CAPTjJmoTrJem_FvuKMdfbii5=q5T5JrrSXiuNLn879gOig=Maw@mail.gmail.com> <53F92553.60009@gmail.com>
Date 2014-08-24 09:38 +1000
Subject Re: why the attribute be deleted still in dir(man)?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13367.1408837088.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Aug 24, 2014 at 9:35 AM, luofeiyu <elearn2014@gmail.com> wrote:
> dear ChrisA ,dynamic is python feature, it is to create descriptor in run
> time ,
> that is the meaning in the codes,and maybe it is a bug:
>
> the attribute  can be displayed  in dir(man)  after be deleted.

Then you don't need descriptors at all. Like I said, read up on doing
classes Python's way. You don't need properties, just use normal
attributes.

ChrisA

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


Thread

Re: why the attribute be deleted still in dir(man)? Chris Angelico <rosuav@gmail.com> - 2014-08-24 09:38 +1000

csiph-web