Skip to content

Fixed double call to PyType_Ready in CLR MetaType's tp_new #1486

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

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Jul 7, 2021

What does this implement/fix? Explain your changes.

It should have not been allowed in the first place, but we accidentally cleared Ready from tp_flags. Instead, we will extend tp_flags and call PyType_Modified at the end of CLR MetaType.tp_new

Does this close any currently open issues?

No

Any other comments?

This change is required for the upcoming feature, that allows setting custom base type for reflected .NET classes (as seen from Python).

….tp_new`. It should have not been allowed in the first place, but we accidentally cleared `Ready` from `tp_flags`. Instead, we will extend `tp_flags` and call `PyType_Modified` at the end of CLR MetaType.tp_new
@filmor filmor merged commit 1391639 into pythonnet:master Jul 7, 2021
@lostmsu lostmsu deleted the bugs/PythonInheritsDotNet_DoubleTypeReady branch July 7, 2021 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants