Package: python3-enchant
Version: 1.6.6-2

$ python3 enchant-intseq.py
Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 399, 
in next
   (word,pos) = next(self._curtok)
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 133, 
in __next__
   return self.next()
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 228, 
in next
   raise StopIteration()
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 399, 
in next
   (word,pos) = next(self._curtok)
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 133, 
in __next__
   return self.next()
 File "/usr/lib/python3/dist-packages/enchant/tokenize/en.py", line 172, in next
   raise StopIteration()
StopIteration

...

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "enchant-intseq.py", line 5, in <module>
   for w in tokenize(s):
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 393, 
in __next__
   return self.next()
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 408, 
in next
   return self.next()
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 408, 
in next
   return self.next()
 ...
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 408, 
in next
   return self.next()
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 399, 
in next
   (word,pos) = next(self._curtok)
 File "/usr/lib/python3/dist-packages/enchant/tokenize/__init__.py", line 133, 
in __next__
   return self.next()
 File "/usr/lib/python3/dist-packages/enchant/tokenize/en.py", line 150, in next
   incr = self._consume_alpha(text,offset)
 File "/usr/lib/python3/dist-packages/enchant/tokenize/en.py", line 134, in 
_consume_alpha_u
   assert offset < len(text)
RecursionError: maximum recursion depth exceeded in comparison



-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.3.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages python3-enchant depends on:
ii  libenchant1c2a  1.6.0-10.1
pn  python3:any     <none>

--
Jakub Wilk
#!/usr/bin/python3
import enchant.tokenize
s = '42 ' * 1000
tokenize = enchant.tokenize.get_tokenizer('en')
for w in tokenize(s):
    pass

Reply via email to