slozier

Results 254 comments of slozier

Unfortunately I haven't been able to reproduce. I guess it's because I don't have `gettextpo` in my linux distro?

> 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. Hmm, still seems like it...

I guess multiple inheritance on user types makes it complicated to have something other than `System.Exception` as the .NET exception type: ```py class MyError(ValueError, AttributeError): pass ```

Thanks for the report. It looks like `termios` module hasn't been implemented.

Shutdown doesn't actually stop a running script as far as I can tell all it does is some cleanup. Here's a comment I found about it on the old mailing...

> now Int32 is supposed to have IsPow2? Looks like it's been discussed during API review and they went with `IsPow2`... https://github.com/dotnet/runtime/issues/31297#issuecomment-644560126 > By the way, where did you find...

Ah, looks like they did add `System.IBinaryNumber` to `BigInteger` so maybe this issue will disappear in the next preview release!

A related failure which might not be resolved is that they added a static `Sign` method on `Int32` so `(1).Sign` now returns the method instead of calling the `IntOps` extension...

Preview 7 is failing with the following differences: `TryConvertToChecked`, `MinValue`, `TryConvertFromChecked`, `MaxValue`, `TryConvertFromTruncating`, `WriteBigEndian`, `GetShortestBitLength`, `TryWriteLittleEndian`, `WriteLittleEndian`, `TryConvertToSaturating`, `TryConvertFromSaturating`, `TryWriteBigEndian`, `TryConvertToTruncating` Also somewhat related are failures in test_cliclass.test_int32_bigint_equivalence caused by...

Hmm, interesting that instances of .NET types have an `__init__` that doesn't appear on the type. Anyway, getting a headache thinking about this so will leave it for the future....