May-25-2020, 06:14 AM
matches
is an iterator that returns Match objects.Match objects themselves have information inside, but are not themselves iterable. So when you do
for line in match
, the iteration attempt fails.
TypeError: 're.Match' object is not iterable
|
May-25-2020, 06:14 AM
matches is an iterator that returns Match objects.Match objects themselves have information inside, but are not themselves iterable. So when you do for line in match , the iteration attempt fails.
|
|
Messages In This Thread |
TypeError: 're.Match' object is not iterable - by charlesauspicks - May-25-2020, 01:53 AM
RE: TypeError: 're.Match' object is not iterable - by bowlofred - May-25-2020, 06:14 AM
|