[sage-devel] Re: What should Sage import by default?

2020-09-01 Thread Kwankyu Lee
+1 to remove all. On Wednesday, September 2, 2020 at 1:50:07 PM UTC+9 John H Palmieri wrote: > There is a ticket (https://trac.sagemath.org/ticket/25383) about removing > some Sage functions from the global namespace, which I think is a good > idea. But Sage also imports some Python modules: >

[sage-devel] Re: What should Sage import by default?

2020-09-02 Thread Andrey Novoseltsev
Perhaps it makes sense to keep "math related" imports given that we have a bunch of other "math functionality" available without extra imports and that's the point of Sage in general. While stuff for dealing with files and warnings is special enough to require special commands. On Wednesday, 2

[sage-devel] Re: What should Sage import by default?

2020-09-07 Thread Kwankyu Lee
+1 to keep operator in the global name space. The doctests of the coercion model assumes it. On Thursday, September 3, 2020 at 12:40:59 PM UTC+9 Andrey Novoseltsev wrote: > Perhaps it makes sense to keep "math related" imports given that we have a > bunch of other "math functionality" availab

[sage-devel] Re: What should Sage import by default?

2020-09-08 Thread Nils Bruin
On Tuesday, September 1, 2020 at 9:50:07 PM UTC-7, John H Palmieri wrote: > > There is a ticket (https://trac.sagemath.org/ticket/25383) about removing > some Sage functions from the global namespace, which I think is a good > idea. But Sage also imports some Python modules: > > - os > - sys > -

[sage-devel] Re: What should Sage import by default?

2020-09-08 Thread William
+1 to Nils remarks. Please also consider backward compatibility. If you remove a bunch of things, I'm probably just going to have to add them back on cocalc to avoid all the headaches of people's code breaking. There might be a ton of random code out there that will break if you remove a bun

[sage-devel] Re: What should Sage import by default?

2020-09-08 Thread John H Palmieri
Backward compatibility is not that convincing. If the items should not be imported (that is, if it was a mistake in some sense to import them), then we should fix that. Is there a good way to deprecate imports? (That is, print a warning the first time someone uses sys, for example?) Re Nils

[sage-devel] Re: What should Sage import by default?

2020-09-10 Thread Nils Bruin
On Tuesday, September 8, 2020 at 8:59:20 PM UTC-7, John H Palmieri wrote: > > > Re Nils' remarks: I think that we should have good reasons every time we > deviate from standard Python. From that point of view, maybe (?) "math" or > "operator" would be sensible things to import, although I don't r