Pavel Koneski

Results 73 comments of Pavel Koneski
trafficstars

#1441 fixed the issue as reported by @slozier but I can't verify it solves the original issue as I don't have a serial port or a serial adapter. @maBarabas, can...

I do have `gettextpo` and the above code crashes with CPython (3.8.10) too. (Interestingly, it does not crash with IronPython on .NET Core, only on Mono, but this could be...

Apparently, by design, any user-defined exception is a subclass of `System.Exception`, as [per documentation](https://ironpython.net/documentation/dotnet/dotnet.html#id65). My guess is that this is to allow multiple inheritance. A working way of catching Python...

> I guess we don't care about `Int32` instances having additional members and we can just relax the assertion? Not really. The assertion was mainly to provide visibility into what...

Thanks. Hopefully `BigInteger` implements `System.IBinaryNumber` (and why not) and this particular issue will solve itself.

I agree that `TypeError` in such case is sensible but I think this the whole picture is a little bit trickier. .NET classes do define `__init__` that takes unlimited number...

Does making the `IBufferProtocol` overload virtual too make the error go away? I can't test it, am AFK for a while. If it does, then a possible explanation is the...

> Do you think the overload resolution should be able to figure out that the method was only overridden in ByteIO? Or is this actually what's expected for virtual methods?...

While working on #1456, I've found tests in `test_methodbinder2.py` that test exactly this case: `MethodBinder2Test.test_arg_Derived_Number`. From those tests it appears that the intention was to report such cases as ambiguous....

Yeah, I am not a big fan of using finalizers for stuff like this. They come with their own performance cost. But in this case, I assume creating new types...