Descriptor puzzlement

Jacek Generowicz jacek.generowicz at
Thu Jan 8 13:46:27 CET 2004

"John Roth" <newsgroups at> writes:

> It doesn't look like the descriptor protocol is getting
> invoked at all.
> What's happening here?

Try changing the following

> class AnotherObject(object):
>     def __init__(self):
>         self.prop = AnObject("snafu")


  class AnotherObject(object):
      prop = AnObject("snafu")

More information about the Python-list mailing list