Persistent config 'in' operator

Bug #1468737 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
Fix Released
Undecided
Stuart Bishop

Bug Description

If user provided config is loaded from state, those items are not found using the 'in' operator.

I believe the reason for this is http://bugs.python.org/issue10977 , which in summary means 'don't override builltin classes'. Methods you override will not be invoked by code using the C API, instead using the builtin implementation and causing chaos and destruction.

There are tests for the 'in' operator, but they did not actually catch this because the 'main' dictionary was mirroring the contents of the _prev_dict attribute

Related branches

Stuart Bishop (stub)
Changed in charm-helpers:
status: New → In Progress
assignee: nobody → Stuart Bishop (stub)
Stuart Bishop (stub)
Changed in charm-helpers:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.