aboutsummaryrefslogtreecommitdiffstats
path: root/.be/bugs/6622c06a-ed84-4d45-8011-a082fca219b6/values
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-25 07:45:57 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-25 07:45:57 -0400
commit797bf225ff29a73fa0770d6cefef12a27cc3d760 (patch)
treeeb9d40593427525b6ee6f9189c36a35362cb61ce /.be/bugs/6622c06a-ed84-4d45-8011-a082fca219b6/values
parent269778a3983bc56b02c921a306b257b18fe16c47 (diff)
downloadbugseverywhere-797bf225ff29a73fa0770d6cefef12a27cc3d760.tar.gz
tag --remove now returns bug.settings["extra_strings"] to EMPTY.
extra_strings returns to a defaulting property from a cached/generator property, with the help of the new, mutable defaults. Lots of deepcopies avoid mutable default uncertainty too ;). And copy.deepcopy([]) should be pretty cheap. tag --remove had previously left settings["extra_strings"] as [], which polluted the bug's values file. Now the improved defaulting_property notices a return to the default [], and sets the internally stored value to EMPTY. I struggled with creating a more intuitive way to notice changes to extra_strings than the tmp = bug.extra_strings <work on tmp> bug.extra_strings = tmp but didn't have any luck. The problem seems to be that if you only hand out copies of your default, you don't have any pointers to what you handed out to check for changes. On the other hand, if you hand out your original default, any external changes will _change_ your original default. I suppose you could only hand out copies, but keep a list of all copies handed out, but that sounds like a disaster. Reassigning is easy enough.
Diffstat (limited to '.be/bugs/6622c06a-ed84-4d45-8011-a082fca219b6/values')
0 files changed, 0 insertions, 0 deletions