← Winnitude! Search  ·  Reader Mode (1441 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 27 LINKS

Try to be strict around non-copyability by filmor · Pull Request #2440 · pythonnet/pythonnet

Repository navigation

Try to be strict around non-copyability - #2440


Open
filmor wants to merge 1 commit into master from noncopyableanalyzer
Open

Try to be strict around non-copyability #2440 filmor wants to merge 1 commit into master from noncopyableanalyzer

Conversation

filmor commented Aug 22, 2024



Copy link Copy Markdown
Member

No description provided.

Try to be strict around non-copyability 8e26f3b lostmsu reviewed Aug 22, 2024
View reviewed changes
Comment thread src/runtime/PythonTypes/PyFloat.cs
public double ToDouble() => Runtime.PyFloat_AsDouble(obj);

public override TypeCode GetTypeCode() => TypeCode.Double;
public override int GetHashCode() => ((PyObject)this).GetHashCode();
Comment thread src/runtime/PythonTypes/PyInt.cs
}

public override TypeCode GetTypeCode() => TypeCode.Int64;
public override int GetHashCode() => ((PyObject)this).GetHashCode();
Comment thread src/runtime/Types/ManagedType.cs Comment on lines +86 to +87
var free = (delegate* unmanaged[Cdecl]< ref StolenReference, void>)freePtr;
free( ref ob);

lostmsu commented Apr 11, 2025



Copy link Copy Markdown
Member

Seems abandoned - requested changes not addressed.

lostmsu closed this Apr 11, 2025

filmor commented Apr 14, 2025



Copy link Copy Markdown
Member

Author

Not abandoned, just very low priority. We have to fix these warnings eventually, they are extremely spammy and the non-copyability check is borderline useless right now. Either we fix things or we drop the analyzer until an official one is added.

filmor reopened this Apr 14, 2025

This branch has not been deployed


No deployments
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

2 participants