In 7.3.beta4 I get sage: sage: f1(x) = -1 sage: sage: f2(x) = 2 sage: sage: f = Piecewise([[(0,pi/2),f1],[(pi/2,pi),f2]]) /home/novoselt/sage/src/bin/sage-ipython:1: DeprecationWarning: use lower-case piecewise instead See http://trac.sagemath.org/14801 for details. #!/usr/bin/env python
so warnings do work. I am also unclear which example fails for you. And if something is indeed wrong at 20667, please fix it, but NOT by calling resetwarnings any time after initialization! On Wednesday, 29 June 2016 02:42:09 UTC-6, Johan S. R. Nielsen wrote: > > sage: import warnings > sage: warnings.filterwarnings('always',".*", DeprecationWarning) > sage: deprecation(3,"m") > Hi sage-devel, > > On my Sage installation, as well as on David Lucas' (having different > Linux distros), the following *does not* print the expected deprecation > warning in the Sage shell or IPython: > > In fact, I can't get any function to trigger the usual deprecation > warnings! Needless to say, this used to work rather recently, though I > didn't do a binary search in the commits yet. > > I can do the following to get deprecation warnings back: > > <Deprecation Warning> > > I'm suspecting #20667 which fiddled with the way warnings are handled, > in particular modifying warnings.filters in src/sage/all.py. > > Can anyone else confirm? > > Best, > Johan > -- 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.