[Python-ideas] Re: Additional meanings for "in" operator and ability to customize implementation

2019-10-15 Thread Stephen J. Turnbull
Andrew Barnert via Python-ideas writes: > People often think “well, natural numbers aren’t closed over > subtraction, so we’ll just always use integers, and integers aren’t > closed over division so we’ll just always use rationals, …” > assuming that if you keep following that you get to the o

[Python-ideas] Re: Additional meanings for "in" operator and ability to customize implementation

2019-10-15 Thread Ethan Furman
On 10/14/2019 12:54 AM, Andrew Barnert via Python-ideas wrote: On Oct 13, 2019, at 22:54, Chris Angelico wrote: Mathematically, what's the difference between '1' and '1+0j' (or '1+0i')? Again, think of Python, but don’t take the analogy too far. You can use `1` almost anywhere you can use