[Python-Dev] PEP 3147, __cached__, and PyImport_ExecCodeModuleEx()

Georg Brandl g.brandl at gmx.net
Sat Apr 10 20:28:12 CEST 2010


Am 10.04.2010 18:12, schrieb Guido van Rossum:
> On Sat, Apr 10, 2010 at 8:58 AM, Barry Warsaw <barry at python.org> wrote:
>> On Apr 09, 2010, at 05:41 PM, Guido van Rossum wrote:
>>
>>>On Fri, Apr 9, 2010 at 3:54 PM, Paul Moore <p.f.moore at gmail.com> wrote:
>>>> Would it be better to name this one _PyImport_ExecCodeModuleExEx (with
>>>> an underscore) so that we *don't* need to create an ExExEx version in
>>>> future? (Sorry, Barry :-))
>>>
>>>I don't care about what name you pick, and my ExEx proposal was meant
>>>to include half a wink, but http://docs.python.org/c-api/import.html
>>>makes it clear that PyImport_ExecCodeModuleEx() is far from private!
>>>(I don't know where Barry got that idea.)
>>
>> Note that it's the non-Ex version that's documented here.  AFAICT,
>> PyImport_ExecCodeModuleEx() is not documented.  I'm happy to fix that in my
>> branch as well.
> 
> Ah, true. And yes, please.

*cough* http://docs.python.org/dev/c-api/import.html#PyImport_ExecCodeModuleEx
Not backported to stable yet, though.

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list