From fcf483af22a486f0dc6fe3d8c18e44b4d88b10af Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Wed, 11 Jul 2018 07:12:14 -0700 Subject: [PATCH] Ah, Symbols. --- joy/utils/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/joy/utils/types.py b/joy/utils/types.py index a1c0e1a..26779c3 100644 --- a/joy/utils/types.py +++ b/joy/utils/types.py @@ -120,7 +120,8 @@ def delabel(f, seen=None, c=None): if not isinstance(f, tuple): try: seen[f] = f.__class__(c[f.prefix] + 1) - except TypeError: # FunctionJoyTypes break this. + except (TypeError, # FunctionJoyTypes break this. + AttributeError): # Symbol seen[f] = f else: c[f.prefix] += 1