Re: [sage-devel] Making Integer and Rational compatible with Python Fraction

2019-08-07 Thread E. Madison Bray
On Wed, Aug 7, 2019 at 3:50 PM Jeroen Demeyer wrote: > > On 2019-08-07 15:42, E. Madison Bray wrote: > > What if, at some point, we just make a Sage release that breaks > > backwards compatibility? > > We could, but I don't think that PEP 3141 is worth breaking backwards > compatibility for. I'm

Re: [sage-devel] Making Integer and Rational compatible with Python Fraction

2019-08-07 Thread Jeroen Demeyer
On 2019-08-07 15:42, E. Madison Bray wrote: What if, at some point, we just make a Sage release that breaks backwards compatibility? We could, but I don't think that PEP 3141 is worth breaking backwards compatibility for. -- You received this message because you are subscribed to the Google

Re: [sage-devel] Making Integer and Rational compatible with Python Fraction

2019-08-07 Thread E. Madison Bray
On Sun, Aug 4, 2019 at 11:04 PM Jeroen Demeyer wrote: > > On 2019-07-27 18:49, 'Mark Bell' via sage-devel wrote: > > During Sage Days 100, I experienced an issue with Sage's Integers and > > Rational not being compatible with Python's built in Fraction class. > > This made me unable to run my Pyth

Re: [sage-devel] Making Integer and Rational compatible with Python Fraction

2019-08-07 Thread Jeroen Demeyer
On 2019-08-06 17:30, TB wrote: sage: plot(lambda x: x.imag + 2) # Works sage: plot(lambda x: x.imag() + 2, (x, -3, 3)) # Empty plot That's "only" an annoyance: you need to use x.imag or x.imag() depending on what x is. That's not a problem of interoperability. And if you really want generic c

Re: [sage-devel] Making Integer and Rational compatible with Python Fraction

2019-08-06 Thread TB
On 05/08/2019 0:04, Jeroen Demeyer wrote: On 2019-07-27 18:49, 'Mark Bell' via sage-devel wrote: During Sage Days 100, I experienced an issue with Sage's Integers and Rational not being compatible with Python's built in Fraction class. This made me unable to run my Python code within Sage It w

Re: [sage-devel] Making Integer and Rational compatible with Python Fraction

2019-08-04 Thread Jeroen Demeyer
On 2019-07-27 18:49, 'Mark Bell' via sage-devel wrote: During Sage Days 100, I experienced an issue with Sage's Integers and Rational not being compatible with Python's built in Fraction class. This made me unable to run my Python code within Sage It would be good to explain better exactly what

[sage-devel] Making Integer and Rational compatible with Python Fraction

2019-07-27 Thread 'Mark Bell' via sage-devel
During Sage Days 100, I experienced an issue with Sage's Integers and Rational not being compatible with Python's built in Fraction class. This made me unable to run my Python code within Sage and so I raised ticket 28234 . For example, in Sage 8.8: sage: