Skip to content

Commit

Permalink
external debugger: print uninterned symbols sensibly
Browse files Browse the repository at this point in the history
  • Loading branch information
Bike committed Jul 30, 2024
1 parent 2fd2dd8 commit faec038
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions debugger-tools/clasp_inspect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,11 @@ def __repr__(self):
except:
return "Symbol[%s %s]" % (self._Package, self._Name )
def __str__(self):
if (self._Package.nilp() and self._Name.str() == "UNBOUND"):
return "#<UNBOUND>"
if (self._Package.nilp()):
if self._Name.str() == "UNBOUND":
return "#<UNBOUND>"
else:
return "#:" + self._Name.str()
return self._Package.name().str() + "::" + self._Name.str()

class Rack_O(General_O):
Expand Down

0 comments on commit faec038

Please sign in to comment.