[ Armin Rigo ] > > d['primary'] = a # does not create a reference > > NameError: name 'a' is not defined > > Oups, wrong line and hence wrong exception for what you're trying to show. Fixed. Thanks, Raymond