Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jun 15, 2024

When help() is called with non-string argument, use qualname or name if available, otherwise use "{typename} object".

When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

LGTM. Nice enhancement.

@miss-islington-app
Copy link

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

@serhiy-storchaka serhiy-storchaka deleted the help-prompt branch June 15, 2024 17:56
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 15, 2024
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
(cherry picked from commit 31d1d72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Jun 15, 2024

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 15, 2024
@serhiy-storchaka
Copy link
Member Author

Thank you for your review, @AlexWaygood.

serhiy-storchaka added a commit that referenced this pull request Jun 15, 2024
…120562)

When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
(cherry picked from commit 31d1d72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
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