emerge_main: hold large objects in emerge_config
authorZac Medico <zmedico@gentoo.org>
Sat, 8 Jun 2013 20:45:25 +0000 (13:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 8 Jun 2013 20:45:25 +0000 (13:45 -0700)
commit8ee7bafff1c81d129f1a4392b4df7c5ded05c1bc
tree9bb13224fbfa1b141a71da194fa6638cdd33fdd7
parentfe6c6665fac0a4f2257bd9e0c2171c9e182ebc8f
emerge_main: hold large objects in emerge_config

This allows emerge_main to avoid having direct local references to
large local objects (like "settings" and "trees"), making it easier to
ensure that stale objects can be garbage collected when other functions
refresh the config with calls to load_emerge_config(). This will be
much more flexible than the "gc_locals" approach that was introduce in
commit e9fd283aedf54e2effc73f4157524fe9a26993c0.
pym/_emerge/actions.py
pym/_emerge/main.py