zensols.py4j.ns

This is the default namespace that a Python Clojure instance starts in. The idea is to add all root variable bindings to this namespace and have the convenience of the namespace macros.

Namespace macros taken from clojure/clojure-contrib.

with-ns

macro

(with-ns ns & body)

Evaluates body in another namespace. ns is either a namespace object or a symbol. This makes it possible to define functions in namespaces other than the current one.

with-temp-ns

macro

(with-temp-ns & body)

Evaluates body in an anonymous namespace, which is then immediately removed. The temporary namespace will ‘refer’ clojure.core.