Edgewall Software

Changes between Version 1 and Version 2 of Ticket #11867, comment 5


Ignore:
Timestamp:
Dec 9, 2014, 8:04:43 AM (6 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11867, comment 5

    v1 v2  
    11Do 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.
    22
    3 At least for this simple case, the property `x` and instance attribute `y` appear to behave the same.
     3At least for this simple case, the property `x` and instance attribute `y` appear to behave the same:
    44{{{#!pycon
    55>>> class A(object):