Edgewall Software

Opened 10 years ago

Last modified 10 years ago

#11693 closed defect

Methods decorated with lazy do not look like data descriptors — at Initial Version

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: 1.0.2
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The lazy class doesn't implement the __set__ method, so it doesn't look like a data descriptor. This was discussed in #11684.

In implementing the __set__ method, we need to decide whether methods decorated with lazy should behave like read-only properties. Another approach would be to add a lazyproperty class for lazily-evaluated attributes that should be readonly.

Change History (0)

Note: See TracTickets for help on using tickets.