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

gh-122981: Fix inspect.getsource() for generated classes with Python base classes by serhiy-storchaka · Pull Request #123001 · python/cpython · GitHub

/ cpython Public

gh-122981: Fix inspect.getsource() for generated classes with Python base classes - #123001

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:inspect-getsource
Aug 20, 2024
Merged

gh-122981: Fix inspect.getsource() for generated classes with Python base classes#123001
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:inspect-getsource

Conversation

serhiy-storchaka commented Aug 14, 2024
edited
Loading

Copy link
Copy Markdown
Member

Look up __firstlineno__ only in the class' dict, without searching in base classes.

…ython base classes

Look up __firstlineno__ only in the class' dict, without searching in
base classes.
serhiy-storchaka merged commit f88c14d into python:main Aug 20, 2024

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 20, 2024
…ython base classes (pythonGH-123001)

Look up __firstlineno__ only in the class' dict, without searching in
base classes.
(cherry picked from commit f88c14d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

bedevere-app Bot commented Aug 20, 2024

Copy link
Copy Markdown

GH-123182 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Aug 20, 2024
serhiy-storchaka deleted the inspect-getsource branch August 20, 2024 18:22
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
…ython base classes (pythonGH-123001)

Look up __firstlineno__ only in the class' dict, without searching in
base classes.
Yhg1s pushed a commit that referenced this pull request Sep 2, 2024
…Python base classes (GH-123001) (#123182)

gh-122981: Fix inspect.getsource() for generated classes with Python base classes (GH-123001)

Look up __firstlineno__ only in the class' dict, without searching in
base classes.
(cherry picked from commit f88c14d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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.

1 participant


Back | FazBrowse Home | New Git URL