OSDN Git Service

AttributeError: 'itertools.count' object has no attribute '__next__'
authorSimon Forman <sforman@hushmail.com>
Fri, 24 Apr 2020 17:10:50 +0000 (10:10 -0700)
committerSimon Forman <sforman@hushmail.com>
Fri, 24 Apr 2020 17:10:50 +0000 (10:10 -0700)
joy/library.py

index 0775149..c8d2c74 100644 (file)
@@ -75,8 +75,8 @@ from .utils.types import (
   )
 
 
-_SYM_NUMS = count().__next__
-_COMB_NUMS = count().__next__
+_SYM_NUMS = lambda: next(count())
+_COMB_NUMS = lambda: next(count())
 
 
 _R = list(range(10))