Sergey B Kirpichev

Results 489 comments of Sergey B Kirpichev

> If you implement something completely different, like gmpy2-based fractions I don't think it's *that* different - actually Fraction supports this out of the box. The only problem is the...

Now we have from_number() class methods, returning subclasses. Just another reason to not keep current constraints for arithmetic methods.

Another good example, where subclassing currently impossible is odd behavior of the int's true division. People e.g. in the SymPy - reinvent the whole int type just to get a...

Based on [feedback](https://discuss.python.org/t/pre-pep-imaginary-type-and-iec-60559-compatible-complex-arithmetic/77073/6) from the latest discussion thread, I hope @serhiy-storchaka might sponsor this. CC @serhiy-storchaka CC @mdickinson (Alternative formatting with mathjax) N.B. I did local builds with the default...

> Work with your sponsor, and when they think the PEP is ready for submission, then open the PR. Well, maybe now is time? // https://discuss.python.org/t/77073/20

@hugovk, may I reserve some number and set CODEOWNERS? Outdated BTW, it seems that "math" directive isn't used so much in peps/ and mostly for inline math: ``` peps/pep-0465.rst:.. math::...

@serhiy-storchaka, I hope now this ready for your review. ~~Perhaps, the major remaining question is: should we try to introduce the imaginary builtin from beginning? Current version don't do so...

Actually, probably we can unify FractionField and RationalField (as fields of fractions for different rings).