A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-August/091356.html below:

[Python-Dev] runpy.py

[Python-Dev] runpy.py [Python-Dev] runpy.pyNick Coghlan ncoghlan at gmail.com
Tue Aug 25 11:01:17 CEST 2009
Benjamin Peterson wrote:
> 2009/8/25 Chris Withers <chris at simplistix.co.uk>:
> 
>> Anyway, so how is the stuff in runpy.py wired up to the command line options
>> passed to the interpretter?
> 
> Modules/main.c

The most relevant functions in there are "RunMainFromImporter()"
(attempting zipfile/directory execution) and "RunModule()" (-m switch
and also called for zipfile/directory execution). The latter function
just uses normal C API calls to actually invoke the runpy code
(specifically "runpy._run_module_as_main()").

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4