Exploring Python Built-in Functions in Clojure

Table of Contents

Examples

    (quote
     (require '[python.builtins :as python])
     (require '[python.builtins :as p])
     (doc python/list)
     (doc python/dict)
     (doc python/set)
     (doc python/tuple)
     (doc python/abs)

     (python/abs -2)
     (python/all [])
     (python/any [])
     (python/ascii 'a)
     (python/bin 4)
     (python/bool true)
     (python/bytes 8)
     (python/callable 'a)
     (python/chr 16)
     (python/compile "main.py" "main.py" "single")
     (python/complex 2)
     (python/copyright)
     (python/credits)
     (python/delattr (python/dict {"a" "b"}) "a")
     (python/delattr {"a" 1} "a")
     (python/dict {"a" "b"})
     (python/dir)
     (python/divmod)
     (python/enumerate)
     (python/eval)
     (python/hex)
     (python/id)
     (python/input)
     (python/int)
     (python/isinstance)
     (python/len)
     (python/license)
     (python/list)
     (python/locals)
     (python/map)
     (python/max)
     (python/memoryview)
     (python/min)
     (python/next)
     (python/object)
     (python/object)
     (python/open)
     (python/ord)
     (python/pow)
     (python/print)
     (python/property)
     (python/quit)
     (python/range)
     (python/repr)
     (python/reversed)
     (python/round)
     (python/set)
     (python/setattr)
     (python/slice)
     (python/sorted)
     (python/super)
     (python/tuple)
     (python/type)
     (python/vars)
     (python/zip)
     )

Author: Jason Walsh

j@wal.sh

Last Updated: 2025-07-30 13:45:27

build: 2025-12-23 09:12 | sha: e32f33e