puzzling deprecation warning

190 views
Skip to first unread message

John Cremona

unread,
Jun 23, 2022, 10:09:20 AM6/23/22
to SAGE devel
Running one of my scripts with 9.6 I notice several warnings like this:

/home/jec/sage/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/schemes/elliptic_curves/period_lattice.py:238:
DeprecationWarni
ng: non-integer arguments to randrange() have been deprecated since
Python 3.10 and will be removed in a subsequent version
self._ei = self.f2.roots(AA,multiplicities=False)

where f2 is a univariate polynomial over QQbar. I am puzzled as to
why python highlights that line -- the is no call to randrange there.
Perhaps somewhere in the root-finding implementation over QQbar there
is such? Though search_src("randrange") reveal nothing directly to do
with polynomials.

Anyway, this is something which will need to be fixed at some point.

John

Samuel Lelievre

unread,
Jun 24, 2022, 6:06:19 AM6/24/22
to sage-devel
Seems to have been addressed already for Sage 9.7.

Indeed, this query


returns in particular this result:


John Cremona

unread,
Jun 24, 2022, 6:41:21 AM6/24/22
to SAGE devel
Thanks -- sorry for not having searched on trac before posting.

John
> --
> 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/68f00409-24d5-4e17-baef-76a77de4a5den%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages