On Sun, Dec 23, 2018 at 5:37 PM Andrey Novoseltsev <novos...@gmail.com> wrote: > > This is what we had: > ┌────────────────────────────────────────────────────────────────────┐ > │ SageMath version 8.4, Release Date: 2018-10-17 │ > │ Type "notebook()" for the browser-based notebook interface. │ > │ Type "help()" for help. │ > └────────────────────────────────────────────────────────────────────┘ > sage: R().eval("a = 2"); R().eval("a + 3") > '' > "Error: object 'a' not found" > > > and this is what we have now: > ┌────────────────────────────────────────────────────────────────────┐ > │ SageMath version 8.5, Release Date: 2018-12-22 │ > │ Using Python 2.7.15. Type "help()" for help. │ > └────────────────────────────────────────────────────────────────────┘ > sage: R().eval("a = 2"); R().eval("a + 3") > '[1] 2' > '[1] 5' > sage: R() == R() > False > > is this supposed to be the case now, i.e. that multiple attempts to create R > interface are linked to the same instance despite being different objects?
I didn't have anything to do with the change, but for what it is worth, it was definitely not my intention that calling R() twice only creates one interface. When I designed and implemented the interfaces, my intention was that it be possible to create multiple interfaces to multiple copies of R (or to any other pexpect interface). -- William -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.