swaroopch / edn_format

EDN reader and writer implementation in Python, using PLY (lex, yacc)
https://www.swaroopch.com/Wrote-an-EDN-format-reader-and-writer-in-Python-11e0924249b181e3af8bdb9af1456373
Other
134 stars 31 forks source link

set equality not working with symbols #8

Closed shaunxcode closed 10 years ago

shaunxcode commented 11 years ago

set([1,2,3,edn_format.Symbol("a")]) == set([1,2,3,edn_format.Symbol("a")]) yields False

Yet: edn_format.Symbol("a") == edn_format.Symbol("a") yields True

bitemyapp commented 10 years ago
In [2]: set([1,2,3,edn_format.Symbol("a")]) == set([1,2,3,edn_format.Symbol("a")])
Out[2]: True