[Python-ideas] PEP 432: Simplifying the CPython startup sequence

Nick Coghlan ncoghlan at gmail.com
Fri Dec 28 13:50:07 CET 2012


On Fri, Dec 28, 2012 at 10:15 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> On Fri, 28 Dec 2012 10:55:52 +1000
> Nick Coghlan <ncoghlan at 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 at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list