Skip to content

[3.8] bpo-38234: read_pth_file() now returns PyStatus (GH-16338)#16340

Merged
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-85ce0a7-3.8
Sep 23, 2019
Merged

[3.8] bpo-38234: read_pth_file() now returns PyStatus (GH-16338)#16340
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-85ce0a7-3.8

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Sep 23, 2019

Refactor path configuration code:

  • read_pth_file() now returns PyStatus to report errors, rather than
    calling Py_FatalError().
  • Move argv0_path and zip_path buffers out of PyCalculatePath
    structures.
  • On Windows, _PyPathConfig.home is now preferred over PyConfig.home.
    (cherry picked from commit 85ce0a7)

Co-authored-by: Victor Stinner [email protected]

https://bugs.python.org/issue38234

Refactor path configuration code:

* read_pth_file() now returns PyStatus to report errors, rather than
  calling Py_FatalError().
* Move argv0_path and zip_path buffers out of PyCalculatePath
  structures.
* On Windows, _PyPathConfig.home is now preferred over PyConfig.home.
(cherry picked from commit 85ce0a7)

Co-authored-by: Victor Stinner <[email protected]>
Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington
Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 7f7cd89 into python:3.8 Sep 23, 2019
@miss-islington miss-islington deleted the backport-85ce0a7-3.8 branch September 23, 2019 23:16
@miss-islington
Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants