(true? true) returns error

26 views
Skip to first unread message

Sean Neilan

unread,
Sep 2, 2012, 7:45:04 PM9/2/12
to clojure...@googlegroups.com
Should I file a bug report?

s=> (true? true)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/clojure/repl.py", line 117, in run_repl
    out = execute(line)
  File "/usr/local/lib/python2.7/dist-packages/clojure/repl.py", line 68, in execute
    return comp.executeCode(res)
  File "/usr/local/lib/python2.7/dist-packages/clojure/lang/compiler.py", line 1381, in executeCode
    retval = eval(c, self.getNS().__dict__)
  File "<unknown>", line 0, in s/<string>
  File "/usr/local/lib/python2.7/dist-packages/clojure/core.clj", line 454, in clojure.core/true?_auto_
    [x] (.__eq__ x true))
AttributeError: 'bool' object has no attribute '__eq__'


Eric Shull

unread,
Sep 2, 2012, 9:33:50 PM9/2/12
to clojure...@googlegroups.com, se...@seanneilan.com

Thanks for the report! Feel free to mention problems here in the mailing list or in the GitHub issues.

I think the failure of (true? true) may have been solved recently. It sounds familiar and seems to be working for me. Are you using the latest revision?

Let me know if that fixes it for your or whether something else may be the culprit.

Good luck.

Eric

Sean Neilan

unread,
Sep 2, 2012, 9:44:28 PM9/2/12
to clojure...@googlegroups.com
Np!

I fixed it by saying (defn true? [x] (= x true)) in my source.

I'll try the latest revision instead. I've been using it from pip.
Reply all
Reply to author
Forward
0 new messages