Indeed...

Indeed, my actual code looks like this:

  1. @loadedBy(loadInfo)
  2. def getDescription(self):
  3. return self._description
  4. description = property(getDescription)

... but I didn't mention that in the writeup because it doesn't have anything to do with decorators. :)

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockcode>
  • Lines and paragraphs break automatically.
  • You may post block code using <blockcode [type="language"]>...</blockcode> tags.
More information about formatting options