FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Check `value` is `PyType` first by moreal · Pull Request #5227 · RustPython/RustPython · GitHub

Check value is PyType first - #5227

Merged
youknowone merged 2 commits into
RustPython:mainfrom
moreal:class-type-check-first
Apr 15, 2024
Merged

Check value is PyType first#5227
youknowone merged 2 commits into
RustPython:mainfrom
moreal:class-type-check-first

Conversation

moreal commented Apr 14, 2024

Copy link
Copy Markdown
Contributor

This pull request continues from #5225 PR. In that PR, I missed to downcast value to PyType type when evaluating both_module value. So cargo run -- --install-pip get-pip was still failed in the same reason.

This pull request downcasts value to PyRef<PyType> when value is module type. Also it checks value is PyType first, once.

This pull request doesn't resolve an issue, get-pip doesn't work, completely. After this pull request, it should bump Lib/shutil to Python 3.12 version's.

moreal mentioned this pull request Apr 14, 2024

youknowone left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you!

youknowone merged commit 959e7c1 into RustPython:main Apr 15, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL