8000 Removed unused __bool__ methods by dchiquito · Pull Request #5165 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Removed unused __bool__ methods #5165

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
merged 1 commit into from
Feb 10, 2024

Conversation

dchiquito
Copy link
Contributor

Python does not define list().__bool__, dict().__bool__, and str().__bool__, and some tests were failing because they were defined.
I could not find any references to them and deleting them doesn't seem to break anything.

Python does not define `list().__bool__`, `dict().__bool__`, and
`str().__bool__`, and some tests were failing because they were
defined.
I could not find any references to them and deleting them doesn't
seem to break anything.
Copy link
Member
@youknowone youknowone left a comment

Choose a reason for hiding this comment

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

Nice catch! We needed those implementations as fallback before correctly implemented PySequenceMethods, but not anymore as you pointed out.
Thank you for contributing!

@youknowone youknowone merged commit ec9f2ce into RustPython:main Feb 10, 2024
@dchiquito dchiquito deleted the unused-collections-bool branch February 10, 2024 03:11
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
0