-
Notifications
You must be signed in to change notification settings - Fork 747
Require at least .NET 4.7.1 #897
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
Comments
I think this is a really good idea - I'm trying to target 4.7.2 in general because of this - https://docs.microsoft.com/en-us/dotnet/standard/net-standard |
I'd like to upgrade to 4.7, so as we can improve some interface's performance simply. IntPtr p = PyUnicode_AsUnicode(op);
int length = (int)PyUnicode_GetSize(op);
#if NET46 || NET_4_6
unsafe
{
return PyEncoding.GetString((byte*)p, length * _UCS);
}
#else
int size = length * _UCS;
var buffer = new byte[size];
Marshal.Copy(p, buffer, 0, size);
return PyEncoding.GetString(buffer, 0, size);
#endif That make avoiding a memory copy. |
Should we make a decision on this next meeting, so people have a deadline to object? I'm in favour. |
This is decided, we will use .NET Standard 2.0 (so at least .NET Framework 4.7.2) in version 3. |
For future .NET Standard compatibility and access to some nice simplifications in getting the platform (https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.architecture?view=netstandard-1.4 and https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.osplatform?view=netstandard-1.4 instead of getting the respective information via Python) it would be good to raise our .NET requirement to 4.7.1 or 4.7.2.
Would this pose serious problems for anyone? Upgrading the runtime should usually always be possible and we already require at least 4.0, I think in some cases even 4.5.
The text was updated successfully, but these errors were encountered: