From 96f01d40abc1938bbdc140337d1ef55ccca0cd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lozier?= Date: Wed, 29 Apr 2020 15:41:56 -0400 Subject: [PATCH] Workaround for #809 --- Src/StdLib/Lib/pickle.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/StdLib/Lib/pickle.py b/Src/StdLib/Lib/pickle.py index a1bd977aa..fcbaa938e 100644 --- a/Src/StdLib/Lib/pickle.py +++ b/Src/StdLib/Lib/pickle.py @@ -177,8 +177,10 @@ def __init__(self, value): MEMOIZE = b'\x94' # store top of the stack in memo FRAME = b'\x95' # indicate the beginning of a new frame -__all__.extend([x for x in dir() if re.match("[A-Z][A-Z0-9_]+$", x)]) - +# _dir is a workaround for https://github.com/IronLanguages/ironpython3/issues/809 +_dir = dir() +__all__.extend([x for x in _dir if re.match("[A-Z][A-Z0-9_]+$", x)]) +del _dir class _Framer: