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

Is there a workaround?
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.

Reply via email to