-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix test_bool test_subclass #4715
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
Fix test_bool test_subclass #4715
Conversation
2b03849 to
9ede5fd
Compare
youknowone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing, but this fix doesn't seem to correct implementation.
Could you check corresponding cpython implementation?
https://github.com/python/cpython/blob/main/Objects/typeobject.c#L7694-L7701
|
Sure! I will check it when I have time :D |
|
@youknowone The block of code that you show me in the previous comment is to check whether I will fix it in the next commit |
|
Oh, i am sorry. I left wrong link |
|
Oh .... It seems duplicate PR exist here #4455 😭 (cc. @youknowone ) |
|
yeah and that PR goes about things in the approach CPython has by modifying |
|
Oh! So I will close this PR now :D |
|
we should just coordinate with garychia and see if they still want to work on it, I'll leave a comment there to check. If they don't have time, you can take inspiration from their approach 😄 |
Fix unsafe
__new__for int function