halgari/clojure-py — pull request #92 by redalastor (2012-03-24 05:23:13+00:00)
Title: Implemented clojure.string

Works the same way as the official clojure implementation except:

- replace can be passed:
- A string-like object and a string replacement
- A regex and string replacement
- A regex and a function replacement (this is because the underlying re.sub supports this extra feature
- split is lazy because unlike the native Java function, Python's re.split is lazy

Those small extra features should be fine according to Postel's law

The clojure-py version is much shorter than the original version because Python's batteries do most of the heavy lifting.