Lukas Lueg added the comment: This could be avoided by
lives_in_init = (('lion': ['Africa', 'America']), ('lion': ['Europe'])) lives_in = {} for k, v in lives_in_init: assert k not in lives_in lives_in[k] = v del lives_in_init Which is fast enough if executed only during module-loading ---------- nosy: +ebfe _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16385> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com