halgari/clojure-py — pull request #91 by redalastor (2012-03-23 05:34:53+00:00)
Title: Array functions

I went through all the arrays function of Clojure and it turns out that most of them are not necessary in Python. For instance we can call count, nth, etc. on Python lists.

I considered that making a fresh Python list is easy enough with (py/list []) but we could always encapsulate it in a function.

I ended up implementing only aclone and aset as they require using magic methods.

Calling Python lists arrays feel wrong but list is confusing too since it clashes with clojure lists so I kept the Clojure nomenclature.