Permalink
Browse files

add encoder for tuple, fix issue #3

  • Loading branch information...
1 parent 44e41bb commit d28f83321b41b31cec5334d859c9f8b03797a5cb @sunng87 committed Apr 25, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 clj.py
  2. +2 −2 setup.py
  3. +1 −0 tests/clj-test.py
View
2 clj.py
@@ -249,7 +249,7 @@ def get_type(self,t):
return ("number", False)
elif isinstance(t, dict):
return ("dict", True)
- elif isinstance(t, list):
+ elif isinstance(t, (list,tuple)):
return ("list", True)
elif isinstance(t, set):
return ("set", True)
View
@@ -6,15 +6,15 @@
long_desc=open('README.rst','r').read()
setup(name="pyclj",
- version="0.1.8.2",
+ version="0.1.9",
author="Sun Ning",
author_email="sunng@about.me",
description="clojure literal reader and writer for python",
long_description=long_desc,
url="http://github.com/sunng87/pyclj",
license='mit',
py_modules=['clj'],
- classifiers=['Development Status :: 3 - Alpha',
+ classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development',
View
@@ -48,6 +48,7 @@ def setUp(self):
'false': False,
'nil': None,
"[1 2 3]":[1,2,3],
+ "[1 2 3 4]": (1,2,3,4),
'{"a" 1 "b" 2}':{"a":1, "b":2},
'#{1}': set([1]),
'["h" nil [1 2 3] {"w" true}]':["h",None,[1,2,3],{"w":True}]

0 comments on commit d28f833

Please sign in to comment.