The Artima Developer Community
Sponsored Link

Python Buzz Forum
Recognizing a Descriptor

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jeremy Hylton

Posts: 193
Nickname: jhylton
Registered: Jun, 2003

Jeremy Hylton is a core Python developer.
Recognizing a Descriptor Posted: Dec 11, 2003 8:51 AM
Reply to this message Reply

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
Latest Python Buzz Posts
Latest Python Buzz Posts by Jeremy Hylton
Latest Posts From Jeremy Hylton's Web Log

Advertisement

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.

Read: Recognizing a Descriptor

Topic: Archetypes 1.2.1 final Released Previous Topic   Next Topic Topic: Hugunin's IronPython

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use