basilisp.reflect

Runtime reflection of Python objects.

type->PythonReflector[source]
typePythonReflector
protocolReflectable[source]
fn (reflect* this)[source]

Reflect on this and return a map describing the object.

protocolReflector[source]
fn (do-reflect this typeref)[source]

Reflect on the object named by typeref and return a map describing the object.

protocolTypeReference[source]
fn (typename this)[source]

Return a canonical name for the type named by this.

fn (reflect o)[source]

Reflect the object o and return details about its type as a map.

If o is a Python class (that is, it is an instance of type), then […]

If o is a callable (function, coroutine, method, builtin, etc.), then […]

If o is a Python module, then […]

If o is an object, then return the results of (reflect (type o)).

If o is nil, return nil.

fn (type-reflect o)[source]

Identical to reflect.