Changes between Version 1 and Version 2 of Ticket #11867, comment 5
- Timestamp:
- Dec 9, 2014, 8:04:43 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11867, comment 5
v1 v2 1 1 Do you have a particular use-case in mind where `self.env = self` causes a problem that is not seen with the property definition? There are similar references in [browser:/tags/trac-1.0.2/trac/config.py@:573#L555]. That's a class attribute that contains a dictionary, but otherwise looks like a similar pattern. 2 2 3 At least for this simple case, the property `x` and instance attribute `y` appear to behave the same .3 At least for this simple case, the property `x` and instance attribute `y` appear to behave the same: 4 4 {{{#!pycon 5 5 >>> class A(object):