I encounter a problem while translating from python2 to python3 the following line:
fmap = defaultdict(count(1).next)
I changed count(1).next
to next(count(1))
but get this error:
fmap = defaultdict(next(count(1))) TypeError: first argument must be callable or None
I guess this line intend to assign new default value each time. Do you have suggestions? Thanks