From 06509b6aa44c7f45a134512a1e91f39f8bc7a8cf Mon Sep 17 00:00:00 2001 From: apalala Date: Mon, 20 Nov 2023 07:40:15 -0400 Subject: [PATCH] [exceptions] fix generators in exceptions break parproc --- tatsu/exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tatsu/exceptions.py b/tatsu/exceptions.py index 0033366c..8c3c6497 100644 --- a/tatsu/exceptions.py +++ b/tatsu/exceptions.py @@ -49,6 +49,7 @@ class NoParseInfo(ParseException): class FailedParse(ParseError): def __init__(self, tokenizer, stack, item): + stack = list(stack) # NOTE: can't pass through multiprocessing if generator # note: pass all arguments to super() to avoid pickling problems # https://stackoverflow.com/questions/27993567/ super().__init__(tokenizer, stack, item)