On Tue, Oct 11, 2022 at 8:48 PM Peter Luschny <peter.lusc...@gmail.com> wrote: > > Hello! > > > SloaneEncyclopedia.find([1,2,3,4,5], 1) > > TypeError Traceback (most recent call last) > /tmp/ipykernel_447/420583060.py in <cell line: 1>() > ----> 1 > SloaneEncyclopedia.find([Integer(1),Integer(2),Integer(3),Integer(4),Integer(5)], > Integer(1)) > ~/mambaforge/envs/sage/lib/python3.10/site-packages/sage/databases/sloane.py > in find(self, seq, maxresults) > 166 a subsequence. > 167 """ > --> 168 self.load() > 169 > 170 answer, nanswer = [], 0 > ~/mambaforge/envs/sage/lib/python3.10/site-packages/sage/databases/sloane.py > in load(self) > 275 if len(L) == 0: > 276 continue > --> 277 m = entry.search(L) > 278 if m: > 279 seqnum = int(m.group('num')) > > TypeError: cannot use a string pattern on a bytes-like object
Broken, indeed. Hardly any tests in sage/databases/sloane.py, no wonder this happens. See https://trac.sagemath.org/ticket/34655 > > Is there a workaround? Does > oeis([1,2,3,4,5], 1) not do what you want? Dima > Peter > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/67ce17aa-056b-49c1-95ad-e5cb75e25ba9n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq3apA6agZ3_j2dhZ8B-38OBQLQ7J-e8F8kJ-RX5ZvxfYA%40mail.gmail.com.