Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-105922: Refactor PyRun_InteractiveOneObjectEx() #105925

Merged
merged 1 commit into from
Jun 19, 2023

Commits on Jun 19, 2023

  1. pythongh-105922: Refactor PyRun_InteractiveOneObjectEx()

    Refactor PyRun_InteractiveOneObjectEx(), _PyRun_SimpleFileObject()
    and PyRun_SimpleStringFlags():
    
    * Keep a strong reference to the __main__ module while using its
      dictionary (PyModule_GetDict()). Use PyImport_AddModule() with
      Py_XNewRef().
    * Declare variables closer to where they are defined.
    * Rename variables to use name longer than 1 character.
    * Add pyrun_one_parse_ast() sub-function.
    vstinner committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    66fb11f View commit details
    Browse the repository at this point in the history