multiple deprecation warnings, which still point to trac

34 views
Skip to first unread message

John Cremona

unread,
May 10, 2023, 10:22:08 AM5/10/23
to SAGE devel
In a jupyter notebook cell running Sage 9.8 I see the following:

/tmp/ipykernel_2055107/2497908513.py:2: DeprecationWarning: parameter 'sort' will be set to False by default in the future
See http://trac.sagemath.org/22349 for details.
  P.vertices(), P.edges()
/tmp/ipykernel_2055107/2497908513.py:2: DeprecationWarning: parameter 'sort' will be set to False by default in the future
See https://trac.sagemath.org/27408 for details.
  P.vertices(), P.edges()

where P has type <class 'sage.graphs.graph.Graph'>.  Two issues:

(1) I thought that deprecation warnings were only supposed to be displayed once?  I know that I am using two different methods (vertices and edges) but even if I re-evaluate "P.vertices(), P.edges()' I get the two warnings.

(2) There's a link to a nonexistent page http://trac.sagemath.org/22349.   Perhaps Sage 10 will do the right thing here, but this would be off-putting to a nonexpert user.

John

Dima Pasechnik

unread,
May 10, 2023, 10:38:39 AM5/10/23
to sage-...@googlegroups.com
I think everything of this sort is fixed in develop, i.e. will be fixed in 10.0.

By the way, note that while http://trac.sagemath.org/22349 is not
there, http://trac.sagemath.org/ticket/22349 still works (well, with a
little bump).
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAD0p0K5Pu7Ae0cS2uYvudnx-fJVWfd%2B0OH8KzC3eRj3TLumceA%40mail.gmail.com.

John Cremona

unread,
May 10, 2023, 10:54:06 AM5/10/23
to sage-...@googlegroups.com
Thanks Dima.  I don't want to get into the discussions on that closed ticket (the issue is not important to me) but I see that most of the discussions were in 2017, then it was revised last July and closed on Aug 4.  And Gonzalo Tornaria asked the question as me ("How long it should take until the deprecation warning is removed?") just 3 weeks ago.

I will ignore the warnings!

John

Reply all
Reply to author
Forward
0 new messages