Skip to content

Accept a function (module_name:function_name) in -X presite and PYTHON_PRESITE #148014

@vstinner

Description

@vstinner

Currently, it's only possible to specify a module name when using -X presite command line option and PYTHON_PRESITE environment variable: module imported before the site module is imported.

I propose extending the format to accept an entry point format: module_name:function_name; see pkgutil.resolve_name().

Note: the presite option is only available when Python is built in debug mode.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions