Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

zjp
Copy link
Contributor

@zjp zjp commented Jul 16, 2022

Fixes #302

This just adds a wrapper around the sip.isdeleted and shiboken.isValid functions

@zjp zjp force-pushed the objectisalive branch from 0ea3461 to f0b50b8 Compare July 16, 2022 17:56
@dalthviz dalthviz added this to the v2.2.0 milestone Jul 18, 2022
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

Thanks @zjp for helping with this! Could it be possible to add some sort of test for this new function (in something like qtpy/tests/test_compat.py)?

Other than this LGTM πŸ‘

@zjp
Copy link
Contributor Author

zjp commented Jul 18, 2022

Yes, absolutely! I'll force-push some tests when I think of a good one.

@zjp
Copy link
Contributor Author

zjp commented Jul 18, 2022

OK, I've added what I hope is a satisfactory test.

@zjp
Copy link
Contributor Author

zjp commented Jul 18, 2022

Not entirely sure what's causing these checks to fail. I can run this test locally OK.

@zjp zjp force-pushed the objectisalive branch from 897ab63 to 6a59dd0 Compare July 19, 2022 02:10
@zjp
Copy link
Contributor Author

zjp commented Jul 19, 2022

Aha, if you're going quick it's easy to overlook isdeleted and isValid are semantically opposites... that should fix it.

@zjp zjp force-pushed the objectisalive branch from 6a59dd0 to 5ac75b6 Compare July 19, 2022 02:38
@zjp zjp force-pushed the objectisalive branch from 5ac75b6 to 60af2d8 Compare July 19, 2022 02:53
@dalthviz dalthviz changed the title compat.py: Add wrapper around sip/shiboken isdeleted/isvalid PR: Add wrapper around sip/shiboken isdeleted/isvalid (compat.py) Jul 19, 2022
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

Thanks @zjp for your work on this! LGTM πŸ‘

@dalthviz dalthviz merged commit b3efba8 into spyder-ide:master Jul 19, 2022
@zjp
Copy link
Contributor Author

zjp commented Jul 19, 2022

No problem, I'm happy to contribute!

@zjp zjp deleted the objectisalive branch July 19, 2022 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compat shiboken and sip like Qt.py
2 participants