Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Sep 7, 2017
1 parent 02db763 commit 82a20f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hy/contrib/hy_repr.hy
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
[hy.models [HyObject HyExpression HySymbol HyKeyword HyInteger HyFloat HyComplex HyList HyDict HySet HyString HyBytes]])

(defn base-repr [x]
(unless (instance? HyObject x)
(return (repr x)))
; Call (.repr x) using the first class of x that doesn't inherit from
; HyObject.
(.__repr__
Expand Down

0 comments on commit 82a20f7

Please sign in to comment.