Victor

Results 365 comments of Victor

Related https://github.com/pythonnet/pythonnet/issues/1887

There are few workarounds for this: 1. Explicitly call `.item()`. E.g. `Math.Abs(np.int64(42))` --> fail; `Math.Abs(np.int64(42).item())` --> OK 2. It seems that your `GetItem` is a custom method. It could in...

As for the suggestion itself, my major concern about adding codecs for primitive types is that they will be invoked on any attempt to convert to a .NET primitive, which...

We will not be adding flags, as every flag adds a whole new dimension to the testing matrix.

@Bluubb can you tell more about your use case? Is there a reason you can not make a function to replace `As()`?

Sounds like something you can set in the clr loader.

@filmor @BadSingleton do we even need to support restart after shutdown on .NET 7?

@benoithudson what is Unity on now? I thought it relies on `AppDomain`, and `AppDomain` is not supported in .NET Core/6+. Without `AppDomain`, I do not think one needs to call...

@filmor do we even need `Shutdown` on .NET Core?

`PyModule` inherits from `PyObject`, and `PyObject` has a `Set` method that accepts `PyObject` value. Sounds like we just need an overload for `ToPython` that takes type parameter. I think it...