From: Simon Forman Date: Wed, 11 Jul 2018 14:12:14 +0000 (-0700) Subject: Ah, Symbols. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fcf483af22a486f0dc6fe3d8c18e44b4d88b10af;p=joypy%2FThun.git Ah, Symbols. --- 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