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
3.11: tracing revisits class line after class docstring #90489
Labels
Comments
See the starred line in the trace output for 3.11: $ cat class_def.py
class theClass:
''' the docstring. '''
def __init__(self):
''' Another docstring. '''
self.a = 1
$ python3.10 -c "import sys; print(sys.version)"
3.10.1 (main, Dec 14 2021, 08:30:13) [Clang 12.0.0 (clang-1200.0.32.29)]
$ python3.10 -m trace --trace class_def.py
--- modulename: class_def, funcname: <module>
class_def.py(1): class theClass:
--- modulename: class_def, funcname: theClass
class_def.py(1): class theClass:
class_def.py(2): ''' the docstring. '''
class_def.py(3): def __init__(self):
$ python3.11 -c "import sys; print(sys.version)"
3.11.0a3+ (heads/main:0fc58c1e05, Jan 8 2022, 19:45:58) [Clang 12.0.0 (clang-1200.0.32.29)]
$ python3.11 -m trace --trace class_def.py
--- modulename: class_def, funcname: <module>
class_def.py(1): class theClass:
--- modulename: class_def, funcname: theClass
class_def.py(1): class theClass:
class_def.py(2): ''' the docstring. '''
class_def.py(1): class theClass: <<<*********
class_def.py(3): def __init__(self): |
nedbat
added
3.11
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
labels
Jan 10, 2022
I recon this can be closed now? |
Ned, does this fix work for you? |
Yes, thanks, this fixes it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: