On Tue, May 17, 2016 at 3:19 PM, Jeroen Demeyer <[email protected]> wrote: > On 2016-05-17 15:14, Erik Bray wrote: >> >> Perhaps one thing you might consider is a way to set the default >> globally--so that for example all permutations can be set zero-based >> from a single flag, without having to specify from_zero everywhere. > > > I think global flags like that are evil, since they might break library code > assuming certain behaviour.
It can be dangerous, yes. "Evil" is rather strong though. Astropy handles this very carefully, including support for decorators and context managers for setting "global" variables in specific contexts where it's safe to. I don't know if Sage has a configuration system like that. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
