
On Fri, Dec 28, 2012 at 10:15 PM, Antoine Pitrou <solipsis@pitrou.net> wrote:
On Fri, 28 Dec 2012 10:55:52 +1000 Nick Coghlan <ncoghlan@gmail.com> wrote:
I was planning to move most of those settings into the config dict. Both the core config struct and the config dict would then be stored in new slots in the interpreter struct.
My preference is to push more settings into the config dictionary, since those can use the C API and frozen bytecode to do their calculations.
But dicts are also more annoying to use in C than plain structs.
Yeah, you may be right. I'll add more on the internal storage of the configuration data and include that as an open question. I want the dict in the config API so we can distinguish between "please fill in the default value" and "don't fill this in at all", but there's nothing stopping us mapping that to a C struct internally. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia