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

Chris Angelico rosuav at gmail.com
Sat Aug 23 19:38:00 EDT 2014


On Sun, Aug 24, 2014 at 9:35 AM, luofeiyu <elearn2014 at 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



More information about the Python-list mailing list