Opened 12 years ago
Closed 12 years ago
#19872 closed Cleanup/optimization (fixed)
cached_property doesn't behave properly when accessed through the class
Reported by: | Simon Percivall | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
cached_property raises an exception when used through the class, instead of returning self like property does. This makes introspection hard, and makes its use together with ABC's impossible.
Attachments (3)
Change History (8)
by , 12 years ago
Attachment: | cached_property.patch added |
---|
comment:1 by , 12 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 12 years ago
Component: | Uncategorized → Core (Other) |
---|---|
Needs tests: | set |
Type: | Uncategorized → Cleanup/optimization |
by , 12 years ago
Attachment: | test_cached_property.patch added |
---|
comment:3 by , 12 years ago
Needs tests: | unset |
---|---|
Version: | 1.4 → master |
by , 12 years ago
Attachment: | ticket19872.diff added |
---|
comment:4 by , 12 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
I've squashed patches into one.
comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
simonpercival's patches combined