[Python-ideas] Re: Make 10**400 / 1e200 work?

2022-02-24 Thread Om Joshi
I spent a couple hours putting this together: https://github.com/omajoshi/complex_math It does lazy updating, staying in polar form until an addition, then staying in rectangular form until the next multiplication. I implemented Tim Peters' tests (from two emails back): https://github.com/omaj

[Python-ideas] Re: repeat until

2022-03-01 Thread Om Joshi
How does `try/except` (with raise AppropriateException inside the block) compare to a len-1 loop?Om On Tue, 01 Mar 2022 10:04:31 -0600 python-ideas@python.org wrote I have use cases for "do exactly once". Basically a sequence of actions which can be broken off (when

[Python-ideas] Re: A modulo operator consistent with euclidean division.

2022-03-20 Thread Om Joshi
Has anyone in this thread linked this blog post yet? http://python-history.blogspot.com/2010/08/why-pythons-integer-division-floors.html Much is a rehash of this thread but for completeness it might be useful to read Guido van Rossum's thoughts and the subsequent discussion in the comments sect