Edgewall Software

Changes between Initial Version and Version 1 of Ticket #5525, comment 44


Ignore:
Timestamp:
Jan 3, 2015, 7:39:18 PM (9 years ago)
Author:
Peter Suter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5525, comment 44

    initial v1  
    1 Perhaps some other variable was meant to be cleared, e.g. `self._sections = {}` or `for k in self._sections: self.sections[k]._cache = {}`?
     1Perhaps some other variable was meant to be cleared, e.g. `self._sections = {}` or `for k in self._sections: self._sections[k]._cache = {}`?
    22
    33{{{#!python
     
    55config.get('a', 'b') # caches 'x' in config._sections['a']._cache['b']
    66# change parent.ini to [a] b=y
    7 config.parse_if_needed() # does not free cache
     7config.parse_if_needed() # does not invalidate that cache
    88config.get('a', 'b') # should return 'y' but returns cached 'x'
    99}}}