This post originated from an RSS feed registered with Python Buzz
by Jeremy Hylton.
Original Post: Recognizing a Descriptor
Feed Title: Jeremy Hylton's Web Log
Feed URL: https://www.python.org/~jeremy/weblog/rss.xml
Feed Description: A techie web log mostly about Python
If you ask a subclass of Persistent for its _p_oid attribute, you
will get a descriptor back; the descriptor's __get__ method returns
self when called for the class. I had to fix ZODB's code for
recognizing persistent objects, because it wasn't prepare to get a
descriptor when it asked for an oid. This caused the
error installing Formulator that Sidnei reported yesterday.