The clpython Reference Manual

This is the clpython Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:17:58 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 clpython

CLPython - an implementation of Python in Common Lisp

Author

Willem Broekema <>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.


2.2 clpython/basic

CLPython package and utils

Author

Willem Broekema <>

License

LLGPL (Lisp Lesser GNU Public License)

Dependency

closer-mop (system).

Source

clpython.asd.

Child Components

2.3 clpython/parser

Python parser, code walker, and pretty printer

Author

Willem Broekema <>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
  • clpython/basic (system).
  • closer-mop (system).
  • yacc (system)., for feature (:or (:not :allegro) :have-cl-yacc)
Source

clpython.asd.

Child Component

parser (module).


2.4 clpython/runtime

Python runtime environment

Author

Willem Broekema <>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.

Child Component

runtime (module).


2.5 clpython/compiler

Python compiler

Author

Willem Broekema <>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.

Child Component

compiler (module).


2.6 clpython/lib

Python module library

Author

Willem Broekema <>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.

Child Component

lib (module).


2.7 clpython/contrib

CLPython contributions and experiments

Author

Willem Broekema <>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.

Child Component

contrib (module).


3 Modules

Modules are listed depth-first from the system components tree.


3.1 clpython/basic/util

Dependency

package.lisp (file).

Source

clpython.asd.

Parent Component

clpython/basic (system).

Child Components

3.2 clpython/basic/shared

Dependency

util (module).

Source

clpython.asd.

Parent Component

clpython/basic (system).

Child Components

3.3 clpython/parser/parser

Source

clpython.asd.

Parent Component

clpython/parser (system).

Child Components

3.4 clpython/runtime/runtime

Source

clpython.asd.

Parent Component

clpython/runtime (system).

Child Components

3.5 clpython/compiler/compiler

Source

clpython.asd.

Parent Component

clpython/compiler (system).

Child Components

3.6 clpython/lib/lib

Source

clpython.asd.

Parent Component

clpython/lib (system).

Child Components

3.7 clpython/contrib/contrib

Source

clpython.asd.

Parent Component

clpython/contrib (system).

Child Components

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


4.1 Lisp


4.1.1 clpython/clpython.asd

Source

clpython.asd.

Parent Component

clpython (system).

ASDF Systems

4.1.3 clpython/basic/util/utils.lisp

Source

clpython.asd.

Parent Component

util (module).

Public Interface
Internals

4.1.4 clpython/basic/util/readtable.lisp

Source

clpython.asd.

Parent Component

util (module).

Public Interface
Internals

4.1.5 clpython/basic/util/macro-state.lisp

Dependency

utils.lisp (file).

Source

clpython.asd.

Parent Component

util (module).

Public Interface

define-macro-state-declaration (macro).

Internals

4.1.6 clpython/basic/util/patternmatch.lisp

Source

clpython.asd.

Parent Component

util (module).

Public Interface
Internals

4.1.7 clpython/basic/shared/ssetup.lisp

Source

clpython.asd.

Parent Component

shared (module).

Internals

*source-level-debugging* (special variable).


4.1.8 clpython/basic/shared/aureadtable.lisp

Dependency

ssetup.lisp (file).

Source

clpython.asd.

Parent Component

shared (module).

Public Interface
Internals

4.1.9 clpython/basic/shared/errors.lisp

Dependency

aureadtable.lisp (file).

Source

clpython.asd.

Parent Component

shared (module).

Public Interface
Internals

raise-syntax-error-default (function).


4.1.10 clpython/basic/shared/aupprint.lisp

Dependency

errors.lisp (file).

Source

clpython.asd.

Parent Component

shared (module).

Public Interface

with-ast-user-pprinter (macro).

Internals

4.1.11 clpython/parser/parser/grammar.lisp

Source

clpython.asd.

Parent Component

parser (module).

Public Interface
Internals

4.1.12 clpython/parser/parser/lexer.lisp

Dependency

grammar.lisp (file).

Source

clpython.asd.

Parent Component

parser (module).

Public Interface
Internals

4.1.13 clpython/parser/parser/parser.lisp

Dependencies
Source

clpython.asd.

Parent Component

parser (module).

Public Interface
Internals

4.1.14 clpython/parser/parser/grammar-aclyacc.lisp

If Feature

:allegro

Dependencies
Source

clpython.asd.

Parent Component

parser (module).


4.1.15 clpython/parser/parser/grammar-clyacc.lisp

If Feature

(:or (:not :allegro) :have-cl-yacc)

Dependencies
Source

clpython.asd.

Parent Component

parser (module).

Internals

4.1.16 clpython/parser/parser/ast-util.lisp

Dependency

grammar.lisp (file).

Source

clpython.asd.

Parent Component

parser (module).

Public Interface
Internals

4.1.17 clpython/parser/parser/walk.lisp

Source

clpython.asd.

Parent Component

parser (module).

Public Interface
Internals

4.1.18 clpython/parser/parser/pprint.lisp

Source

clpython.asd.

Parent Component

parser (module).

Public Interface
Internals

4.1.19 clpython/runtime/runtime/rsetup.lisp

Source

clpython.asd.

Parent Component

runtime (module).

Public Interface

4.1.20 clpython/runtime/runtime/formatstring.lisp

Dependency

rsetup.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Internals

4.1.21 clpython/runtime/runtime/metaclass.lisp

Dependency

formatstring.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Public Interface
Internals

4.1.22 clpython/runtime/runtime/dictattr.lisp

Dependency

metaclass.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Public Interface

bind-val (function).

Internals

4.1.23 clpython/runtime/runtime/classes.lisp

Dependency

dictattr.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Public Interface
Internals

4.1.24 clpython/runtime/runtime/exceptions.lisp

Dependency

classes.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Public Interface
Internals

4.1.25 clpython/runtime/runtime/habitat.lisp

Dependency

exceptions.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Public Interface
Internals

4.1.26 clpython/runtime/runtime/run.lisp

Dependency

habitat.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Public Interface

run (generic function).


4.1.27 clpython/runtime/runtime/import.lisp

Dependency

run.lisp (file).

Source

clpython.asd.

Parent Component

runtime (module).

Internals

4.1.28 clpython/compiler/compiler/csetup.lisp

Source

clpython.asd.

Parent Component

compiler (module).

Internals

4.1.29 clpython/compiler/compiler/pydecl.lisp

Dependency

csetup.lisp (file).

Source

clpython.asd.

Parent Component

compiler (module).

Internals

4.1.30 clpython/compiler/compiler/namespace.lisp

Dependency

pydecl.lisp (file).

Source

clpython.asd.

Parent Component

compiler (module).

Public Interface
Internals

4.1.31 clpython/compiler/compiler/compiler.lisp

Dependency

namespace.lisp (file).

Source

clpython.asd.

Parent Component

compiler (module).

Public Interface
Internals

4.1.32 clpython/compiler/compiler/generator.lisp

Dependency

compiler.lisp (file).

Source

clpython.asd.

Parent Component

compiler (module).

Internals

4.1.33 clpython/compiler/compiler/optimize.lisp

Dependency

generator.lisp (file).

Source

clpython.asd.

Parent Component

compiler (module).

Public Interface
Internals

4.1.35 clpython/lib/lib/builtins-file.lisp

Dependency

lsetup.lisp (file).

Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.36 clpython/lib/lib/builtins-set.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Internals

4.1.37 clpython/lib/lib/builtins-buffer.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

initialize-instance (method).

Internals

buffer (class).


4.1.38 clpython/lib/lib/builtins.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.39 clpython/lib/lib/array.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

array (class).

Internals

4.1.40 clpython/lib/lib/_ast.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

__version__ (special variable).


4.1.41 clpython/lib/lib/binascii.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

hexlify (function).


4.1.42 clpython/lib/lib/_bsddb.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.43 clpython/lib/lib/_collections.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.44 clpython/lib/lib/_codecs.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

*search-functions* (special variable).


4.1.45 clpython/lib/lib/cStringIO.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).


4.1.46 clpython/lib/lib/datetime.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

date (class).

Internals

4.1.47 clpython/lib/lib/errno.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).


4.1.48 clpython/lib/lib/exceptions.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).


4.1.49 clpython/lib/lib/_functools.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.50 clpython/lib/lib/gc.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

disable (function).

Internals

collect (function).


4.1.51 clpython/lib/lib/imp.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.52 clpython/lib/lib/itertools.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.53 clpython/lib/lib/marshal.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.54 clpython/lib/lib/math.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.55 clpython/lib/lib/_md5.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

new (function).


4.1.56 clpython/lib/lib/operator.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.57 clpython/lib/lib/posix.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.58 clpython/lib/lib/_random.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

random (class).

Internals

4.1.59 clpython/lib/lib/re.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.60 clpython/lib/lib/_sha.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

new (function).


4.1.61 clpython/lib/lib/_sha256.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.62 clpython/lib/lib/_sha512.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.63 clpython/lib/lib/_socket.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.64 clpython/lib/lib/_sre.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.65 clpython/lib/lib/_ssl.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.66 clpython/lib/lib/_struct.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.67 clpython/lib/lib/sys.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.68 clpython/lib/lib/string.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.69 clpython/lib/lib/symbol.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.70 clpython/lib/lib/thread.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.71 clpython/lib/lib/time.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.72 clpython/lib/lib/_weakref.lisp

Dependencies
Source

clpython.asd.

Parent Component

lib (module).

Public Interface

4.1.73 clpython/contrib/contrib/repl.lisp

Source

clpython.asd.

Parent Component

contrib (module).

Public Interface
Internals

4.1.74 clpython/contrib/contrib/lispy.lisp

Source

clpython.asd.

Parent Component

contrib (module).

Packages

clpython.lispy.stuff.

Public Interface
Internals

4.1.75 clpython/contrib/contrib/executable.lisp

Source

clpython.asd.

Parent Component

contrib (module).

Internals

5 Packages

Packages are listed by definition order.


5.1 clpython.ast

Python abstract syntax tree representation

Source

package.lisp.

Use List

5.2 clpython.module.select

Source

lsetup.lisp.

Use List

5.3 clpython.module

Aggregation package for Python modules; subpackages are defined in lib/lsetup.lisp

Source

package.lisp.


5.4 clpython.module.array

Source

lsetup.lisp.

Use List
Public Interface

array (class).

Internals

5.5 clpython.util

Package, readtables, ast/user symbol pretty printer

Source

package.lisp.

Use List

common-lisp.

Used By List
Public Interface
Internals

5.6 clpython.module.symbol

Source

lsetup.lisp.

Use List
Public Interface

5.7 clpython.module._sha

Source

lsetup.lisp.

Use List
Public Interface

new (function).


5.8 clpython.module._csv

Source

lsetup.lisp.

Use List

5.9 clpython.module.signal

Source

lsetup.lisp.

Use List

5.10 clpython.module.binascii

Source

lsetup.lisp.

Use List
Public Interface

hexlify (function).


5.11 clpython.module._functools

Source

lsetup.lisp.

Use List
Public Interface

5.12 clpython.module.exceptions

Source

lsetup.lisp.

Use List

common-lisp.


5.13 clpython.module._bsddb

Source

lsetup.lisp.

Use List
Public Interface

5.14 clpython.parser

Parser and lexer for Python code

Source

package.lisp.

Use List
Used By List
Public Interface
Internals

5.15 clpython.ast.token

Source

package.lisp.

Used By List

clpython.ast.

Public Interface

literal-expr (macro).


5.16 clpython.user.builtin.function

Source

package.lisp.

Used By List

clpython.user.builtin.

Public Interface

5.17 clpython.module.termios

Source

lsetup.lisp.

Use List

5.18 clpython.module.time

Source

lsetup.lisp.

Use List
Public Interface

5.19 clpython

CLPython: An implementation of Python in Common Lisp.

Source

package.lisp.

Use List
Used By List
Public Interface
Internals

5.20 clpython.module.gc

Source

lsetup.lisp.

Use List
Public Interface

disable (function).

Internals

collect (function).


5.21 clpython.app.repl

Python read-eval-print loop

Source

package.lisp.

Use List
Public Interface
Internals

5.22 clpython.module.sys

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.23 clpython.user.builtin.type.exception

Source

package.lisp.

Used By List

clpython.user.builtin.type.

Public Interface
  • exception (condition).
  • standarderror (condition).
  • stopiteration (condition).
  • systemexit (condition).
  • warning (condition).

5.24 clpython.module.errno

Source

lsetup.lisp.

Use List

common-lisp.


5.25 clpython.user.builtin.type

Source

package.lisp.

Use List

clpython.user.builtin.type.exception.

Used By List

clpython.user.builtin.


5.26 clpython.ast.operator

Unary and binary operators

Source

package.lisp.

Used By List

clpython.ast.


5.27 clpython.module.itertools

Source

lsetup.lisp.

Use List
Public Interface

5.28 clpython.module._fileio

Source

lsetup.lisp.

Use List

5.29 clpython.module._lsprof

Source

lsetup.lisp.

Use List

5.30 clpython.module._collections

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.31 clpython.module._sha512

Source

lsetup.lisp.

Use List
Public Interface

5.32 clpython.module.math

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.33 clpython.module.unicodedata

Source

lsetup.lisp.

Use List

5.34 clpython.ast.punctuation

Source

package.lisp.

Used By List

clpython.ast.


5.35 clpython.module._random

Source

lsetup.lisp.

Use List
Public Interface

random (class).

Internals

5.36 clpython.module.string

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.38 clpython.module.thread

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.39 clpython.module._symtable

Source

lsetup.lisp.

Use List

5.40 clpython.module.fcntl

Source

lsetup.lisp.

Use List

5.41 clpython.lispy.stuff

Source

lispy.lisp.


5.42 clpython.module._weakref

Source

lsetup.lisp.

Use List
Public Interface

5.43 clpython.module._sre

Source

lsetup.lisp.

Use List
Public Interface

5.44 clpython.user.builtin.value

Source

package.lisp.

Used By List

clpython.user.builtin.

Public Interface

5.45 clpython.ast.node

Statement and expression nodes

Source

package.lisp.

Used By List

clpython.ast.

Public Interface

5.46 clpython.module._struct

Source

lsetup.lisp.

Use List
Public Interface

5.47 clpython.module.imp

Source

lsetup.lisp.

Use List
Public Interface

5.48 clpython.module._codecs

Source

lsetup.lisp.

Use List
Public Interface
Internals

*search-functions* (special variable).


5.49 clpython.module._socket

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.50 clpython.module._md5

Source

lsetup.lisp.

Use List
Public Interface

new (function).


5.51 clpython.module.posix

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.52 clpython.module._sha256

Source

lsetup.lisp.

Use List
Public Interface

5.53 clpython.module._ast

Source

lsetup.lisp.

Use List
Public Interface

__version__ (special variable).


5.54 clpython.module.zlib

Source

lsetup.lisp.

Use List

5.55 clpython.module.cstringio

Source

lsetup.lisp.

Use List

common-lisp.


5.56 clpython.ast.node-p

Statement and expression nodes

Source

package.lisp.

Used By List

clpython.ast.


5.57 clpython.user

Identifiers

Source

package.lisp.

Use List

clpython.user.builtin.

Internals

5.58 clpython.module.__builtin__

Source

lsetup.lisp.

Use List

clpython.


5.59 clpython.ast.reserved

Reserved words in the grammar

Source

package.lisp.

Used By List

clpython.ast.


5.60 clpython.module.re

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.61 clpython.module.pwd

Source

lsetup.lisp.

Use List

5.62 clpython.module.operator

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.63 clpython.module.datetime

Source

lsetup.lisp.

Use List
Public Interface

date (class).

Internals

5.64 clpython.module._ssl

Source

lsetup.lisp.

Use List
Public Interface

5.65 clpython.module.marshal

Source

lsetup.lisp.

Use List
Public Interface

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


6.1 Public Interface


6.1.1 Constants

Constant: +augassign-target+

A place that is an augmented assignment value and target.

Package

clpython.parser.

Source

walk.lisp.

Constant: +augassign-value+

A place that is an augmented assignment value and target.

Package

clpython.parser.

Source

walk.lisp.

Constant: +delete-target+

A place that is a deletion target.

Package

clpython.parser.

Source

walk.lisp.

Constant: +dict-alist-to-hashtable-threshold+

When #items <= threashold, represent attributes as alist, otherwise switch to eq hash table. Value is somewhat arbitrary, as relative performance depends on how many lookups fail. See function ALIST-VS-HT.

Package

clpython.util.

Source

utils.lisp.

Constant: +max-char-code+

Like CHAR-CODE-LIMIT, but possible lower.

Package

clpython.util.

Source

utils.lisp.

Constant: +no-target+

Not an assignment or deletion target.

Package

clpython.parser.

Source

walk.lisp.

Constant: +no-value+

An expression that is not used for its value.

Package

clpython.parser.

Source

walk.lisp.

Constant: +normal-target+

A place that is assigned to.

Package

clpython.parser.

Source

walk.lisp.

Constant: +normal-value+

An expression that is used for its value.

Package

clpython.parser.

Source

walk.lisp.

Constant: +standard-module-globals+

Names of global variables automatically created for every module

Package

clpython.

Source

compiler.lisp.

Constant: +the-false+
Package

clpython.

Source

classes.lisp.

Constant: +the-true+
Package

clpython.

Source

classes.lisp.

Constant: af_appletalk
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_decnet
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_inet
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_inet6
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_ipx
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_route
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_sna
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_unix
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: af_unspec
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_addrconfig
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_all
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_canonname
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_default
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_mask
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_numerichost
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_passive
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_v4mapped
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ai_v4mapped_cfg
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ascii_letters
Package

clpython.module.string.

Source

string.lisp.

Constant: ascii_lowercase
Package

clpython.module.string.

Source

string.lisp.

Constant: ascii_uppercase
Package

clpython.module.string.

Source

string.lisp.

Constant: cert_none
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: cert_optional
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: cert_required
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: codesize
Package

clpython.module._sre.

Source

_sre.lisp.

Constant: digits
Package

clpython.module.string.

Source

string.lisp.

Constant: e
Package

clpython.module.math.

Source

math.lisp.

Constant: eai_addrfamily
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_again
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_badflags
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_badhints
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_fail
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_family
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_max
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_memory
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_nodata
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_noname
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_protocol
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_service
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_socktype
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: eai_system
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: error
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: error
Package

clpython.module.posix.

Source

posix.lisp.

Constant: hexdigits
Package

clpython.module.string.

Source

string.lisp.

Constant: i
Package

clpython.module.re.

Source

re.lisp.

Constant: inaddr_allhosts_group
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: inaddr_any
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: inaddr_broadcast
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: inaddr_loopback
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: inaddr_max_local_group
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: inaddr_none
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_add_membership
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_default_multicast_loop
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_default_multicast_ttl
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_drop_membership
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_hdrincl
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_max_memberships
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_multicast_if
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_multicast_loop
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_multicast_ttl
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_options
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_recvdstaddr
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_recvopts
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_recvretopts
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_retopts
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_tos
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ip_ttl
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipport_reserved
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipport_userreserved
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_ah
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_dstopts
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_egp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_eon
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_esp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_fragment
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_ggp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_gre
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_hello
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_hopopts
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_icmp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_icmpv6
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_idp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_igmp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_ip
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_ipcomp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_ipip
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_ipv4
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_ipv6
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_max
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_nd
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_none
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_pim
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_pup
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_raw
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_routing
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_rsvp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_tcp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_tp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_udp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipproto_xtp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_checksum
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_dstopts
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_hoplimit
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_hopopts
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_join_group
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_leave_group
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_multicast_hops
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_multicast_if
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_multicast_loop
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_nexthop
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_pktinfo
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_rthdr
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_rthdr_type_0
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_unicast_hops
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ipv6_v6only
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: letters
Package

clpython.module.string.

Source

string.lisp.

Constant: lowercase
Package

clpython.module.string.

Source

string.lisp.

Constant: m
Package

clpython.module.re.

Source

re.lisp.

Constant: magic
Package

clpython.module._sre.

Source

_sre.lisp.

Constant: msg_ctrunc
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: msg_dontroute
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: msg_dontwait
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: msg_eor
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: msg_oob
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: msg_peek
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: msg_trunc
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: msg_waitall
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: multiline
Package

clpython.module.re.

Source

re.lisp.

Constant: ni_dgram
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ni_maxhost
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ni_maxserv
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ni_namereqd
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ni_nofqdn
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ni_numerichost
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ni_numericserv
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: o_append
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_creat
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_directory
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_excl
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_exlock
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_ndelay
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_noctty
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_nofollow
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_nonblock
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_rdonly
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_rdwr
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_shlock
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_sync
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_trunc
Package

clpython.module.posix.

Source

posix.lisp.

Constant: o_wronly
Package

clpython.module.posix.

Source

posix.lisp.

Constant: octdigits
Package

clpython.module.string.

Source

string.lisp.

Constant: pi
Package

clpython.module.math.

Source

math.lisp.

Constant: printable
Package

clpython.module.string.

Source

string.lisp.

Constant: protocol_sslv2
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: protocol_sslv23
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: protocol_sslv3
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: protocol_tlsv1
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: punctuation
Package

clpython.module.string.

Source

string.lisp.

Constant: shut_rd
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: shut_rdwr
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: shut_wr
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_acceptconn
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_broadcast
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_debug
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_dontroute
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_error
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_keepalive
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_linger
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_oobinline
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_rcvbuf
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_rcvlowat
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_rcvtimeo
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_reuseaddr
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_reuseport
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_sndbuf
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_sndlowat
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_sndtimeo
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_type
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: so_useloopback
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sock_dgram
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sock_raw
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sock_rdm
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sock_seqpacket
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sock_stream
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sol_ip
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sol_socket
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sol_tcp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: sol_udp
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: ssl_error_eof
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_invalid_error_code
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_ssl
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_syscall
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_want_connect
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_want_read
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_want_write
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_want_x509_lookup
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: ssl_error_zero_return
Package

clpython.module._ssl.

Source

_ssl.lisp.

Constant: tcp_maxseg
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: tcp_nodelay
Package

clpython.module._socket.

Source

_socket.lisp.

Constant: uppercase
Package

clpython.module.string.

Source

string.lisp.

Constant: verbose
Package

clpython.module.re.

Source

re.lisp.

Constant: whitespace
Package

clpython.module.string.

Source

string.lisp.

Constant: x
Package

clpython.module.re.

Source

re.lisp.


6.1.2 Special variables

Special Variable: *ast-readtable*

Readtable where [NAME] refers to clpython.ast::NAME

Package

clpython.

Source

aureadtable.lisp.

Special Variable: *ast-user-readtable*

Readtable where [NAME] refers to clpython.ast::NAME and {NAME} to clpython.user::NAME

Package

clpython.

Source

aureadtable.lisp.

Special Variable: *compile-python-ast-before-running*

Whether to compile an AST before running it.

Package

clpython.

Source

compiler.lisp.

Special Variable: *enormous-float-representation-type*

The Lisp type used for representing Python float values outside +NORMAL-FLOAT-RANGE+. Coercion from float to int must be confirmed by the user.

Package

clpython.parser.

Source

lexer.lisp.

Special Variable: *exceptions-are-python-objects*
Package

clpython.

Source

rsetup.lisp.

Special Variable: *exceptions-loaded*
Package

clpython.

Source

errors.lisp.

Special Variable: *extra-identifier-char2-p*

Characters allowed in identifiers, besides the standard ones. Used by compiler to generate ’forbidden’ identfiers.

Package

clpython.parser.

Source

lexer.lisp.

Special Variable: *habitat*
Package

clpython.

Source

rsetup.lisp.

Special Variable: *normal-float-representation-type*

The Lisp type normally used for representing "normal" Python floats. Values outside the range of this type are represented by *enormous-float-representation-type*.

Package

clpython.parser.

Source

lexer.lisp.

Special Variable: *py-pprint-dispatch*
Package

clpython.parser.

Source

pprint.lisp.

Special Variable: *python-form->source-location*

EQ hashtable, mapping AST subforms to source position. Used during file compilation. Value should be a (weak) EQ hash table: (make-weak-key-hash-table :test ’eq).

Package

clpython.parser.

Source

grammar.lisp.

Special Variable: *raise-syntax-error-hook*
Package

clpython.

Source

errors.lisp.

Special Variable: *repl-compile*

Whether code typed in the REPL is compiled before running.

Package

clpython.app.repl.

Source

repl.lisp.

Special Variable: *repl-module-globals*
Package

clpython.app.repl.

Source

repl.lisp.

Special Variable: *repl-prof*

Execution of each expression is profiled according to this setting. Possible values: :time :ptime :space :pspace nil

Package

clpython.app.repl.

Source

repl.lisp.

Special Variable: *tab-width-spaces*

One tab is equivalent to this many spaces, when it comes to indentation levels.

Package

clpython.parser.

Source

lexer.lisp.

Special Variable: *the-ellipsis*
Package

clpython.

Source

classes.lisp.

Special Variable: *the-empty-tuple*
Package

clpython.

Source

classes.lisp.

Special Variable: *the-none*
Package

clpython.

Source

metaclass.lisp.

Special Variable: *the-notimplemented*
Package

clpython.

Source

metaclass.lisp.

Special Variable: *user-readtable*

Readtable where {NAME} refers to clpython.user::NAME

Package

clpython.

Source

aureadtable.lisp.

Special Variable: __displayhook__

Original value of displayhook

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: __doc__
Package

clpython.module._struct.

Source

_struct.lisp.

Special Variable: __excepthook__

Original value of excepthook

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: __stderr__

Initial stderr

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: __stdin__

Initial stdin

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: __stdout__

Initial stdout

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: __version__
Package

clpython.module._bsddb.

Source

_bsddb.lisp.

Special Variable: __version__
Package

clpython.module._ast.

Source

_ast.lisp.

Special Variable: api_version

The (Lisp) API version

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: argv

Comand line args passed to script; argv[0] is script name (rel or abs)

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: builtin_module_names
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: byteorder

Byte order of implementation: ’big’ or ’little’. CLPython is hereby arbitrarily defined to be big-endian.

Package

clpython.module.sys.

Source

sys.lisp.

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: displayhook

Func of one arg, called by REPL to print val

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: ellipsis
Package

clpython.user.builtin.value.

Source

builtins.lisp.

Special Variable: error
Package

clpython.module.thread.

Source

thread.lisp.

Special Variable: excepthook

Function to be called on uncatched exception, e.g.to print stack trace

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: exec_prefix
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: executable
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: exitfunc

Function to be called upon exit

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: false
Package

clpython.user.builtin.value.

Source

builtins.lisp.

Special Variable: flags
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: hexversion
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: maxint

Largest positive integer represented by regular integer type

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: maxunicode

Largest supported unicode code point

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: modules

Mapping from module names (strings) to modules

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: none
Package

clpython.user.builtin.value.

Source

builtins.lisp.

Special Variable: notimplemented
Package

clpython.user.builtin.value.

Source

builtins.lisp.

Special Variable: path

List of directories to search for module to import. (Only directories ~ supported (not zip files etc).

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: platform
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: prefix

Site-specific directory prefix for installing platform independent Python files

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: ps1

First interpreter prompt

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: ps2

Second interpreter prompt

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: py3kwarning
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: referenceerror
Package

clpython.module._weakref.

Source

_weakref.lisp.

Special Variable: stderr

Error output

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: stdin

Standard input

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: stdout

Standard output

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: symbol
Package

clpython.module.symbol.

Source

symbol.lisp.

Special Variable: symbols
Package

clpython.module.symbol.

Source

symbol.lisp.

Special Variable: true
Package

clpython.user.builtin.value.

Source

builtins.lisp.

Special Variable: version

String like ’1.5.2 (#0 Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)]’

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: version
Package

clpython.module.marshal.

Source

marshal.lisp.

Special Variable: version_info

Tuple like (2, 0, 0, ’final’, 0)

Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: warnoptions
Package

clpython.module.sys.

Source

sys.lisp.

Special Variable: wild
Package

clpython.module.symbol.

Source

symbol.lisp.


6.1.3 Macros

Macro: assert-stmt (test raise-arg)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: assign-stmt (value targets)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: attributeref-expr (item attr)
Setf Expander: (setf attributeref-expr) (item attr)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: augassign-stmt (op place val)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: backticks-expr (item)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: binary-expr (op left right)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: binary-lazy-expr (op left right)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: bracketed-expr (expr)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: break-stmt ()
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: call-expr (primary pos-args kwd-args *-arg **-arg)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: checking-reader-conditionals (&body body)

Break unless the body contains exactly one form. Based on idea from Steve Haflich.

Package

clpython.util.

Source

utils.lisp.

Macro: classdef-stmt (&rest args)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: comparison-expr (cmp left right)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: continue-stmt ()
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: def-py-method (cls.meth &rest args)
Package

clpython.

Source

classes.lisp.

Macro: defconstant-once (name &rest args)
Package

clpython.util.

Source

utils.lisp.

Macro: define-macro-state-declaration (decl-name allowed-keys)

Create macro WITH-{NAME}, functions GET-{NAME}, CHECK-{NAME} to store and retrieve declarations. ALLOWED-KEYS is a list of allowed keys (symbols). Usage: if DECL-NAME is D, then macros can expand into:
‘(WITH-D ((:key1 val1) (:key2 val2)) ..body..)
and inside ..body.. macros can evaluate:
,(GET-D :key1 environment)
to retrieve value for :key1.

Package

clpython.util.

Source

macro-state.lisp.

Macro: del-stmt (item)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: dict-expr (vk-list)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: enter-mixed-lisp-python-syntax (&rest args)
Package

clpython.parser.

Source

lispy.lisp.

Macro: exec-stmt (code-string globals locals &key allowed-stmts)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: exit-mixed-lisp-python-syntax ()
Package

clpython.parser.

Source

lispy.lisp.

Macro: for-in-stmt (target source suite else-suite)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: funcdef-stmt (&rest args)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: generator-expr (item for-in/if-clauses)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: global-stmt (names)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: identifier-expr (name)
Setf Expander: (setf identifier-expr) (name)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: if-expr (condition then else)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: if-stmt (if-clauses else-clause)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: import-from-stmt (mod-name-as-list items)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: import-stmt (items)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: in-syntax (readtable-expression)
Package

clpython.util.

Source

readtable.lisp.

Macro: lambda-expr (args expr)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: list-expr (items)
Setf Expander: (setf list-expr) (items)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: listcompr-expr (item for-in/if-clauses)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: literal-expr (kind value)
Package

clpython.ast.token.

Source

compiler.lisp.

Macro: ltv-find-class (clsname)
Package

clpython.util.

Source

utils.lisp.

Macro: module-stmt (suite)

If *MODULE-NAMESPACE* is bound, it is used.

Package

clpython.ast.node.

Source

compiler.lisp.

Macro: named-function (name lambda-form)
Package

clpython.util.

Source

utils.lisp.

Macro: pass-stmt ()
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: print-stmt (dest items comma?)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: raise-stmt (exc var tb)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: return-stmt (val)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: slice-expr (start stop step)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: subscription-expr (item subs)
Setf Expander: (setf subscription-expr) (item subs)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: suite-stmt (stmts)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: try-except-stmt (suite except-clauses else-suite)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: try-finally-stmt (try-suite finally-suite)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: tuple-expr (items)
Setf Expander: (setf tuple-expr) (items)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: unary-expr (op item)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: whereas (bindings &body body)

A simple version of Erik Naggum’s idea in http://groups.google.nl/group/comp.lang.lisp/msg/bc7772aa5ab1f3e4

Package

clpython.util.

Source

utils.lisp.

Macro: while-stmt (test suite else-suite)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: with-ast-user-pprinter ((&key print-delims) &body body)
Package

clpython.

Source

aupprint.lisp.

Macro: with-ast-user-readtable (&body body)
Package

clpython.

Source

aureadtable.lisp.

Macro: with-auto-mode-recompile ((&key restart-name filename) &body body)

Automatically recompile when FASL is apparently intended for another implementation

Package

clpython.util.

Source

utils.lisp.

Macro: with-gensyms (list &body body)
Package

clpython.util.

Source

utils.lisp.

Macro: with-line-prefixed-output ((prefix) &body body)
Package

clpython.util.

Source

utils.lisp.

Macro: with-matching ((form template &key must-hold) &body body)
Package

clpython.util.

Source

patternmatch.lisp.

Macro: with-mixed-lisp-python-syntax (&body body)
Package

clpython.parser.

Source

lispy.lisp.

Macro: with-perhaps-matching ((form template &rest args) &body body)
Package

clpython.util.

Source

patternmatch.lisp.

Macro: with-py-ast ((subform ast &rest options) &body body)
Package

clpython.parser.

Source

walk.lisp.

Macro: with-sane-debugging ((error-format-string) &body body)

Reset the readtable to standard IO syntax in case of uncaught serious conditions (errors).
This makes debugging readtable issues. The single argument to error-format-string is the condition object.

Package

clpython.util.

Source

utils.lisp.

Macro: with-source-locations (&body body)
Package

clpython.parser.

Source

parser.lisp.

Macro: with-stack-list ((name &rest items) &body body)
Package

clpython.util.

Source

utils.lisp.

Macro: with-stmt (expr var block)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: without-redefinition-warnings (&body body)
Package

clpython.util.

Source

utils.lisp.

Macro: yield-expr (val)
Package

clpython.ast.node.

Source

compiler.lisp.

Macro: yield-stmt (val)
Package

clpython.ast.node.

Source

compiler.lisp.


6.1.4 Compiler macros

Compiler Macro: assign-stmt (value targets)
Package

clpython.ast.node.

Source

compiler.lisp.

Compiler Macro: none-p (x)
Package

clpython.

Source

metaclass.lisp.

Compiler Macro: py-* (x y)
Package

clpython.

Source

optimize.lisp.

Compiler Macro: py-bool (lisp-val)
Package

clpython.

Source

classes.lisp.

Compiler Macro: py-call (prim &rest args)
Package

clpython.

Source

optimize.lisp.


6.1.5 Ordinary functions

Function: __import__ (name &optional globals locals fromlist)

This function is invoked by the import statement.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: _clearcache ()
Package

clpython.module._struct.

Source

_struct.lisp.

Function: _getframe (&optional depth)
Package

clpython.module.sys.

Source

sys.lisp.

Function: abbreviate-string (string max-length)
Package

clpython.util.

Source

utils.lisp.

Function: abbreviate-to-one-line (string)
Package

clpython.util.

Source

utils.lisp.

Function: abs (x)

Return the absolute value of object X.
Raises AttributeError when there is no ‘__abs__’ method.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: acos (x)
Package

clpython.module.math.

Source

math.lisp.

Function: alist-remove-prop (alist attr)

Removes first occurrence, if any. Returns NEW-LIST, FOUNDP.

Package

clpython.util.

Source

utils.lisp.

Function: all (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: allocate_lock ()
Package

clpython.module.thread.

Source

thread.lisp.

Function: any (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: apply (function &optional pos-args kw-dict)

Apply FUNCTION (a callable object) to given args.
POS-ARGS is any iterable object; KW-DICT must be of type DICT.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: asin (x)
Package

clpython.module.math.

Source

math.lisp.

Function: ast-complete-p (ast)

Determine if the (interactively entered) AST is complete, in that the next line in the input ~ starts a new top-level statement. Uses an extra heuristic if *use-ast-return-stmt-heuristic*.

Package

clpython.parser.

Source

ast-util.lisp.

Function: ast-p (form &optional ast-node)

Whether FORM is a list represeting a Python AST. (Includes parsed literal numbers and strings.)

Package

clpython.parser.

Source

ast-util.lisp.

Function: atan (x)
Package

clpython.module.math.

Source

math.lisp.

Function: attrgetter (&rest args)

Return a callable object that fetches attr from its operand. If more than one attribute is requested, returns a tuple of attributes. After,
f = attrgetter(’name’),
the call f(b) returns b.name.
After,
f = attrgetter(’name’, ’date’),
the call f(b) returns (b.name, b.date).

The attribute names can also contain dots; after
f = attrgetter(’date.month’),
the call f(b) returns b.date.month.

Package

clpython.module.operator.

Source

operator.lisp.

Function: bind-val (val x x.class)
Package

clpython.

Source

dictattr.lisp.

Function: calcsize (fmt)
Package

clpython.module._struct.

Source

_struct.lisp.

Function: callable (x)

Returns whether x can be called (function, class, or callable class instance) as True or False.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: careful-probe-file (pathspec)

Like PROBE-FILE, but this function never signals FILE-ERROR: that is mapped to NIL.

Package

clpython.util.

Source

utils.lisp.

Function: ceil (x)
Package