Skip to content

Cleaning up public API #1557

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
Sep 30, 2021
Merged

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Sep 15, 2021

This handles #1539

Deleted:

  • PyLong
  • PyAnsiString
  • a few internal overloads to convert between Python integer type and .NET int types

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Updated the CHANGELOG

@lostmsu lostmsu requested a review from filmor September 15, 2021 00:16
@lostmsu lostmsu force-pushed the public-API-cleanup branch 7 times, most recently from 17b4a04 to 550fcaf Compare September 21, 2021 18:30
@lostmsu lostmsu added this to the 3.0.0 milestone Sep 24, 2021
@lostmsu
Copy link
Member Author

lostmsu commented Sep 27, 2021

@filmor any other comments?

@@ -76,7 +76,7 @@ private Type GetDispatcher(Type dtype)
var cc = CallingConventions.Standard;
Type[] args = { ptrtype, typetype };
ConstructorBuilder cb = tb.DefineConstructor(ma, cc, args);
ConstructorInfo ci = basetype.GetConstructor(args);
ConstructorInfo ci = basetype.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic, null, args, null);
Copy link
Member

Choose a reason for hiding this comment

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

Does this change behaviour?

Copy link
Member Author

@lostmsu lostmsu Sep 30, 2021

Choose a reason for hiding this comment

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

Users can no longer construct their own instances of Dispatcher manually (which is the goal of the change).

I doubt anyone did that anyway, it is very obscure.

@lostmsu lostmsu merged commit 8846fd2 into pythonnet:master Sep 30, 2021
@lostmsu lostmsu deleted the public-API-cleanup branch September 30, 2021 18:43
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