[Python-Dev] runpy.py

Chris Withers chris at simplistix.co.uk
Mon Aug 31 13:59:29 CEST 2009


Nick Coghlan wrote:
> The PEPs don't go into the process of how we actually hook the command
> line up to the runpy module though - that's something you need to dig
> into the main.c code to really understand.

Yeah, main.c does quite a lot... ;-)

This all spawned from a suggestion by Jim Fulton over on the 
distutils-sig that it would be nice if there was a python module that 
did all of the various types of launching found in main.c. His use case 
is so that buildout scripts can easily use the same functionality that 
the interpreter startup uses.

I didn't spot any, but does anyone know of code in that mix that 
couldn't be moved to a pure python module like runpy?

If not, how would people feel about the various types of launching all 
moving to runpy rather than just the -m stuff being there?

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk


More information about the Python-Dev mailing list