[issue31707] Irrational fractions

2017-10-05 Thread Ben Burrill
Ben Burrill <bburril...@gmail.com> added the comment: The core operators, like multiplication and division, should work for any type that defines the right operators. Hashing is tricky, and reducing the fraction is pretty much off the table. This is why I suggested a superclass. I'

[issue31707] Irrational fractions

2017-10-05 Thread Ben Burrill
New submission from Ben Burrill <bburril...@gmail.com>: fractions.Fraction enforces its numerator and denominator to be rational. This is a good idea for purely numeric fractions, but the abstractions that fractions.Fraction offers would also be useful for more abstract fractions.

[issue31707] Irrational fractions

2017-10-05 Thread Ben Burrill
Change by Ben Burrill <bburril...@gmail.com>: -- nosy: +mark.dickinson, rhettinger ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32626] Subscript unpacking raises SyntaxError

2018-01-26 Thread Ben Burrill
Ben Burrill <bburril...@gmail.com> added the comment: Yeah, but in this case, you don't need parentheses unless you use unpacking. That is unexpected behavior. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32626] Subscript unpacking raises SyntaxError

2018-01-22 Thread Ben Burrill
New submission from Ben Burrill <bburril...@gmail.com>: PEP 448 defines unpacking generalizations for tuples. However, this does not currently work for subscripted tuples that are not delimited by parentheses. Current behavior (Tested on 3.6/3.7a4): >>> class Subscriptab