Skip to content

bpo-44648: Fix error type in inspect.getsource() in interactive session #27171

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

Merged

Conversation

akulakov
Copy link
Contributor

@akulakov akulakov commented Jul 15, 2021

Fix error TypeError, 'built in class' => OSError, 'source code not available'

https://bugs.python.org/issue44648

@iritkatriel iritkatriel requested a review from 1st1 July 27, 2021 09:55
@ambv ambv added the needs backport to 3.10 only security fixes label Jul 30, 2021
@ambv ambv merged commit 48a6255 into python:main Jul 30, 2021
@miss-islington
Copy link
Contributor

Thanks @akulakov for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 30, 2021
@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jul 30, 2021
@bedevere-bot
Copy link

GH-27495 is a backport of this pull request to the 3.10 branch.

ambv pushed a commit that referenced this pull request Jul 30, 2021
scv119 added a commit to ray-project/ray that referenced this pull request May 20, 2022
in python3.10, it fixed a bug that a interactively defined class was tagged with a wrong type during inspection; which now throws OSError. detailed pr python/cpython#27171

we need to handle this case properly in otherwise ray actor definition will throw in interactive mode. please refer to #25026 for repo.
scv119 added a commit to scv119/ray that referenced this pull request May 20, 2022
…ct#25032

in python3.10, it fixed a bug that a interactively defined class was tagged with a wrong type during inspection; which now throws OSError. detailed pr python/cpython#27171

we need to handle this case properly in otherwise ray actor definition will throw in interactive mode. please refer to ray-project#25026 for repo.
scv119 added a commit to ray-project/ray that referenced this pull request May 21, 2022
…25042)

in python3.10, it fixed a bug that a interactively defined class was tagged with a wrong type during inspection; which now throws OSError. detailed pr python/cpython#27171

we need to handle this case properly in otherwise ray actor definition will throw in interactive mode. please refer to #25026 for repo.
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.

5 participants