The clpython Reference Manual

Next: , Previous: , Up: (dir)   [Contents][Index]

The clpython Reference Manual

This is the clpython Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 03:56:09 2022 GMT+0.

Table of Contents


1 Introduction

CLPython - an implementation of Python in Common Lisp

CLPython is an open-source implementation of Python written in Common Lisp. With CLPython you can run Python programs in a Lisp environment. Libraries written in Lisp are available to Python code, and Python libraries can be accessed by Lisp code. Also Python and Lisp code can be mixed.

For rough documentation, please see the Introduction and Manual on common-lisp.net.

To install using QuickLisp: (ql:quickload "clpython") (require ASDF 3.3 or higher).

CLPython is developed by Willem Broekema and is released as open source under the LLGPL. The project was started in 2006, and is since 2013 not under active development anymore.

See the build status on Travis-CI, and the coverage status on Coveralls:

| Common Lisp Implementation | Build + Test Status | | |:-:|:-:|:-:| | ABCL 1.5.0 | Build Status | Fails due to ClassCastException: StandardObject cannot be cast to LispClass | | Allegro CL 10.1 | Build Status | | | Clozure CL 1.11 | Build Status | | | CLISP 2.49 | Build Status | Fails due to stack overflow | | CMUCL | ? | | | ECL 16.1.3 | Build Status | | | LispWorks 6.1.1 | ✅ | Manually verified | | SBCL 1.5.4 | Build Status Coverage Status |


2 Systems

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


Next: , Previous: , Up: Systems   [Contents][Index]

2.1 clpython

CLPython - an implementation of Python in Common Lisp

Author

Willem Broekema <metawilm@gmail.com>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.


Next: , Previous: , Up: Systems   [Contents][Index]

2.2 clpython/basic

CLPython package and utils

Author

Willem Broekema <metawilm@gmail.com>

License

LLGPL (Lisp Lesser GNU Public License)

Dependency

closer-mop (system).

Source

clpython.asd.

Child Components

Next: , Previous: , Up: Systems   [Contents][Index]

2.3 clpython/parser

Python parser, code walker, and pretty printer

Author

Willem Broekema <metawilm@gmail.com>

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 <metawilm@gmail.com>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.

Child Component

runtime (module).


Next: , Previous: , Up: Systems   [Contents][Index]

2.5 clpython/compiler

Python compiler

Author

Willem Broekema <metawilm@gmail.com>

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 <metawilm@gmail.com>

License

LLGPL (Lisp Lesser GNU Public License)

Dependencies
Source

clpython.asd.

Child Component

lib (module).


Previous: , Up: Systems   [Contents][Index]

2.7 clpython/contrib

CLPython contributions and experiments

Author

Willem Broekema <metawilm@gmail.com>

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.


Next: , Previous: , Up: Modules   [Contents][Index]

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

Previous: , Up: Modules   [Contents][Index]

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.


Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp   [Contents][Index]

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.


Next: , Previous: , Up: Packages   [Contents][Index]

5.1 clpython.module.itertools

Source

lsetup.lisp.

Use List
Public Interface

5.2 clpython.ast.token

Source

package.lisp.

Used By List

clpython.ast.

Public Interface

literal-expr (macro).


5.3 clpython.ast.reserved

Reserved words in the grammar

Source

package.lisp.

Used By List

clpython.ast.


5.4 clpython.module.posix

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.5 clpython.module.operator

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.6 clpython.module.string

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.7 clpython.app.repl

Python read-eval-print loop

Source

package.lisp.

Use List
Public Interface
Internals

5.8 clpython.module.termios

Source

lsetup.lisp.

Use List

5.9 clpython.module.re

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.10 clpython.module.marshal

Source

lsetup.lisp.

Use List
Public Interface

5.11 clpython.module.math

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.12 clpython.user.builtin.function

Source

package.lisp.

Used By List

clpython.user.builtin.

Public Interface

5.13 clpython.module._weakref

Source

lsetup.lisp.

Use List
Public Interface

5.14 clpython.module._ssl

Source

lsetup.lisp.

Use List
Public Interface

5.15 clpython.module._fileio

Source

lsetup.lisp.

Use List

5.16 clpython.module._sha512

Source

lsetup.lisp.

Use List
Public Interface

5.18 clpython

CLPython: An implementation of Python in Common Lisp.

Source

package.lisp.

Use List
Used By List
Public Interface
Internals

5.19 clpython.ast.operator

Unary and binary operators

Source

package.lisp.

Used By List

clpython.ast.


5.20 clpython.module._collections

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.21 clpython.util

Package, readtables, ast/user symbol pretty printer

Source

package.lisp.

Use List

common-lisp.

Used By List
Public Interface
Internals

5.22 clpython.module.array

Source

lsetup.lisp.

Use List
Public Interface

array (class).

Internals

5.23 clpython.module.symbol

Source

lsetup.lisp.

Use List
Public Interface

5.24 clpython.module.sys

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.25 clpython.module.imp

Source

lsetup.lisp.

Use List
Public Interface

5.26 clpython.lispy.stuff

Source

lispy.lisp.


5.27 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.28 clpython.module._sha256

Source

lsetup.lisp.

Use List
Public Interface

5.29 clpython.module._bsddb

Source

lsetup.lisp.

Use List
Public Interface

5.30 clpython.ast.node

Statement and expression nodes

Source

package.lisp.

Used By List

clpython.ast.

Public Interface

5.31 clpython.module._symtable

Source

lsetup.lisp.

Use List

5.32 clpython.module.gc

Source

lsetup.lisp.

Use List
Public Interface

disable (function).

Internals

collect (function).


5.34 clpython.module.exceptions

Source

lsetup.lisp.

Use List

common-lisp.


5.35 clpython.module._md5

Source

lsetup.lisp.

Use List
Public Interface

new (function).


5.36 clpython.module.binascii

Source

lsetup.lisp.

Use List
Public Interface

hexlify (function).


5.37 clpython.module._sre

Source

lsetup.lisp.

Use List
Public Interface

5.38 clpython.module.cstringio

Source

lsetup.lisp.

Use List

common-lisp.


5.39 clpython.module.time

Source

lsetup.lisp.

Use List
Public Interface

5.40 clpython.module._struct

Source

lsetup.lisp.

Use List
Public Interface

5.41 clpython.user.builtin.value

Source

package.lisp.

Used By List

clpython.user.builtin.

Public Interface

5.42 clpython.module._ast

Source

lsetup.lisp.

Use List
Public Interface

__version__ (special variable).


5.43 clpython.module.fcntl

Source

lsetup.lisp.

Use List

5.44 clpython.module._socket

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.45 clpython.module.pwd

Source

lsetup.lisp.

Use List

5.46 clpython.ast.node-p

Statement and expression nodes

Source

package.lisp.

Used By List

clpython.ast.


5.47 clpython.parser

Parser and lexer for Python code

Source

package.lisp.

Use List
Used By List
Public Interface
Internals

5.48 clpython.module

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

Source

package.lisp.


5.49 clpython.module._lsprof

Source

lsetup.lisp.

Use List

5.50 clpython.module.unicodedata

Source

lsetup.lisp.

Use List

5.51 clpython.module.__builtin__

Source

lsetup.lisp.

Use List

clpython.


5.52 clpython.module._codecs

Source

lsetup.lisp.

Use List
Public Interface
Internals

*search-functions* (special variable).


5.53 clpython.module.datetime

Source

lsetup.lisp.

Use List
Public Interface

date (class).

Internals

5.54 clpython.module.signal

Source

lsetup.lisp.

Use List

5.55 clpython.module._random

Source

lsetup.lisp.

Use List
Public Interface

random (class).

Internals

5.56 clpython.module.zlib

Source

lsetup.lisp.

Use List

5.57 clpython.module._csv

Source

lsetup.lisp.

Use List

5.58 clpython.module._functools

Source

lsetup.lisp.

Use List
Public Interface

5.59 clpython.user

Identifiers

Source

package.lisp.

Use List

clpython.user.builtin.

Internals

5.60 clpython.module._sha

Source

lsetup.lisp.

Use List
Public Interface

new (function).


5.61 clpython.ast.punctuation

Source

package.lisp.

Used By List

clpython.ast.


5.62 clpython.module.select

Source

lsetup.lisp.

Use List

5.63 clpython.module.thread

Source

lsetup.lisp.

Use List
Public Interface
Internals

5.64 clpython.module.errno

Source

lsetup.lisp.

Use List

common-lisp.


5.65 clpython.user.builtin.type

Source

package.lisp.

Use List

clpython.user.builtin.type.exception.

Used By List

clpython.user.builtin.


6 Definitions

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


Next: , Previous: , Up: Definitions   [Contents][Index]

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.posix.

Source

posix.lisp.

Constant: error
Package

clpython.module._socket.

Source

_socket.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.


Next: , Previous: , Up: Public Interface   [Contents][Index]

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
Package

clpython.module.marshal.

Source

marshal.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_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 ()

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

clpython.module.math.

Source

math.lisp.

Function: chr (x)

Return a string of one character whose ASCII code is the integer i. ~@ This is the inverse of {ord}.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: clock ()

Current processor time, in seconds, floating point

Package

clpython.module.time.

Source

time.lisp.

Function: close (file)
Package

clpython.module.posix.

Source

posix.lisp.

Function: cmp (x y)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: coerce (x y)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: compile (pattern &optional flags)
Package

clpython.module.re.

Source

re.lisp.

Function: compile (string filename kind &optional flags dont-inherit)

Compile string into code object.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: cos (x)
Package

clpython.module.math.

Source

math.lisp.

Function: cosh (x)
Package

clpython.module.math.

Source

math.lisp.

Function: count (&optional start step)
Package

clpython.module.itertools.

Source

itertools.lisp.

Function: countof (a b)

Return the number of occurrences of b in a.

Package

clpython.module.operator.

Source

operator.lisp.

Function: define-exception-subclass (exc-name &rest supers)
Package

clpython.

Source

exceptions.lisp.

Function: delattr (x attr)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: deque (&optional iterable max-length)
Package

clpython.module._collections.

Source

_collections.lisp.

Function: derive-pathname (pathname &key case type name host device directory version)
Package

clpython.util.

Source

utils.lisp.

Function: dict.items (x)
Package

clpython.

Source

classes.lisp.

Function: dir (&optional x)

Without args, returns names in current scope. ~@
With arg X, return list of valid attributes of X. ~@ Result is sorted alphabetically, and may be incomplete.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: disable ()
Package

clpython.module.gc.

Source

gc.lisp.

Function: divmod (x y)

Return (x/y, x%y) as tuple

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: dump (value file &optional version)
Package

clpython.module.marshal.

Source

marshal.lisp.

Function: dumps (value &optional version)
Package

clpython.module.marshal.

Source

marshal.lisp.

Function: ensure-path-is-directory (path)
Package

clpython.util.

Source

utils.lisp.

Function: error (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: escape (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: eval (s &optional globals locals)

Returns value of expression.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: exc_clear ()
Package

clpython.module.sys.

Source

sys.lisp.

Function: exc_info ()
Package

clpython.module.sys.

Source

sys.lisp.

Function: execfile (filename &optional globals locals)

Executes Python file FILENAME in a scope with LOCALS (defaulting ~@ to GLOBALS) and GLOBALS (defaulting to scope in which ‘execfile’ ~@ is called) as local and global variables. Returns value of None.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: exit (&optional arg)
Package

clpython.module.sys.

Source

sys.lisp.

Function: exp (x)
Package

clpython.module.math.

Source

math.lisp.

Function: fabs (x)
Package

clpython.module.math.

Source

math.lisp.

Function: filter (func iterable)

Construct a list from those elements of LIST for which FUNC is true. LIST: a sequence, iterable object, iterator
If list is a string or a tuple, the result also has that type, otherwise it is always a list.
FUNC: if None, identity function is assumed

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: find_module (name path)
Package

clpython.module.imp.

Source

imp.lisp.

Function: findall (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: finditer (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: fmod (x y)
Package

clpython.module.math.

Source

math.lisp.

Function: generator.next (g)
Package

clpython.

Source

classes.lisp.

Function: generator.send (g value)
Package

clpython.

Source

classes.lisp.

Function: get_ident ()
Package

clpython.module.thread.

Source

thread.lisp.

Function: get_magic ()
Package

clpython.module.imp.

Source

imp.lisp.

Function: getattr (x attr &optional default)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: getcheckinterval ()

How often to check for thread switches and signal handlers

Package

clpython.module.sys.

Source

sys.lisp.

Function: getdefaultencoding ()
Package

clpython.module.sys.

Source

sys.lisp.

Function: getfilesystemencoding ()
Package

clpython.module.sys.

Source

sys.lisp.

Function: gethostbyaddr (address)
Package

clpython.module._socket.

Source

_socket.lisp.

Function: gethostname ()
Package

clpython.module._socket.

Source

_socket.lisp.

Function: getnameinfo (addr flags)
Package

clpython.module._socket.

Source

_socket.lisp.

Function: getrecursionlimit ()
Package

clpython.module.sys.

Source

sys.lisp.

Function: getweakrefcount (x)
Package

clpython.module._weakref.

Source

_weakref.lisp.

Function: getweakrefs (x)
Package

clpython.module._weakref.

Source

_weakref.lisp.

Function: globals ()

Return a dictionary (namespace) representing the current global symbol table. ~@ This is the namespace of the current module.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: hasattr (x name)

Returns True is X has attribute NAME, False if not. ~@ (Uses ‘getattr’; catches _all_ exceptions.)

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: hash (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: hex (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: hexlify (data)
Package

clpython.module.binascii.

Source

binascii.lisp.

Function: hypot (x y)
Package

clpython.module.math.

Source

math.lisp.

Function: id (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: ifilter (predicate iterable)
Package

clpython.module.itertools.

Source

itertools.lisp.

Function: ifilterfalse (predicate iterable)
Package

clpython.module.itertools.

Source

itertools.lisp.

Function: imap (function &rest iterables)
Package

clpython.module.itertools.

Source

itertools.lisp.

Function: impl-status (symbol &optional want-comment)

Returns impl status of symbol, and optionally the corresponding comment.

Package

clpython.

Source

classes.lisp.

Function: indexof (a b)

Return the index of the first of occurrence of b in a.

Package

clpython.module.operator.

Source

operator.lisp.

Function: input (&rest args)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: interactive-stream-p-recursive (stream)

In case of CONCATENATED-STREAM it looks at the active stream within.

Package

clpython.util.

Source

readtable.lisp.

Function: intern (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: isinstance (x cs)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: islice (iterable &optional start stop step)
Package

clpython.module.itertools.

Source

itertools.lisp.

Function: issubclass (x cls)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: itemgetter (&rest items)

Return a callable object that fetches item from its operand using the operand’s __getitem__() method. If multiple items are specified, returns a tuple of lookup values. Equivalent to:

def itemgetter(*items):
if len(items) == 1:
item = items[0]
def g(obj):
return obj[item]
else:
def g(obj):
return tuple(obj[item] for item in items)
return g

The items can be any type accepted by the operand’s __getitem__() method. Dictionaries accept any hashable value. Lists, tuples, and strings accept an index or a slice.

Package

clpython.module.operator.

Source

operator.lisp.

Function: iter (x &optional y)

Return iterator for iterable X
When Y supplied: make generator that calls and returns iterator of X until the value returned is equal to Y.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: izip (&rest iterables)
Package

clpython.module.itertools.

Source

itertools.lisp.

Function: ldexp (x y)
Package

clpython.module.math.

Source

math.lisp.

Function: len (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: load (file)
Package

clpython.module.marshal.

Source

marshal.lisp.

Function: load_module (&rest args)
Package

clpython.module.imp.

Source

imp.lisp.

Function: loads (string)
Package

clpython.module.marshal.

Source

marshal.lisp.

Function: locals ()
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: log (x)
Package

clpython.module.math.

Source

math.lisp.

Function: log10 (x)
Package

clpython.module.math.

Source

math.lisp.

Function: lookup_error (&rest args)
Package

clpython.module._codecs.

Source

_codecs.lisp.

Function: make-habitat (&rest options)
Package

clpython.

Source

habitat.lisp.

Function: make-py-hash-table ()
Package

clpython.

Source

metaclass.lisp.

Function: make-py-list-from-list (list)
Package

clpython.

Source

classes.lisp.

Function: make-slice (start stop step)
Package

clpython.

Source

classes.lisp.

Function: make-tuple-from-list (list)
Package

clpython.

Source

classes.lisp.

Function: make-weak-key-hash-table (&rest options)
Package

clpython.util.

Source

utils.lisp.

Function: maketrans (from to)
Package

clpython.module.string.

Source

string.lisp.

Function: map (func &rest sequences)

Apply FUNC to every item of sequence, returning real list of values. With multiple sequences, traversal is in parallel and FUNC must take multiple args. Shorter sequences are extended with None. If function is None, use identity function (multiple sequences -> list of tuples).

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: match (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: match-p (form template &key verbose)

Pattern matcher for lists/symbols, to detect AST patterns.
FORM and TEMPLATE must both be trees. Symbols starting with #?
in TEMPLATE are wildcards, bound to list or symbol of FORM. Returns MATCH-P, BINDINGS; the latter is alist of wildcard-form pairs.

Package

clpython.util.

Source

patternmatch.lisp.

Function: max (item &rest items)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: methodcaller (name args)

Return a callable object that calls the method name on its operand. If additional arguments and/or keyword arguments are given, they will be given to the method as well. After f = methodcaller(’name’), the call f(b) returns b.name().
After f = methodcaller(’name’, ’foo’, bar=1), the call f(b) returns b.name(’foo’, bar=1).

Package

clpython.module.operator.

Source

operator.lisp.

Function: min (item &rest items)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: modf (x)
Package

clpython.module.math.

Source

math.lisp.

Function: new (&rest args)
Package

clpython.module._md5.

Source

_md5.lisp.

Function: new (&rest args)
Package

clpython.module._sha.

Source

_sha.lisp.

Function: none-p (x)
Package

clpython.

Source

metaclass.lisp.

Function: oct (n)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: open (name flags &optional mode)
Package

clpython.module.posix.

Source

posix.lisp.

Function: open (name &optional mode buffering)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: ord (s)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: pack (fmt &rest args)
Package

clpython.module._struct.

Source

_struct.lisp.

Function: pack_into (fmt buffer offset &rest args)
Package

clpython.module._struct.

Source

_struct.lisp.

Function: parse-with-replacements (string replacements &key warn-unused parse-options)

Parse STRING, but replace certain tokens in the resulting AST. Used to parse a template string, then fill in certain "gaps". REPLACEMENTS is list: ((old . new) ...)
E.g. to replace identifier ’foo’ with ’bar’, use this replacement: ( ([identifier-expr] {foo}) . ([identifier-expr] {foo}) )

Package

clpython.parser.

Source

parser.lisp.

Function: partial (func &rest pos-kw-args-1)
Package

clpython.module._functools.

Source

_functools.lisp.

Function: pow (x y)
Package

clpython.module.math.

Source

math.lisp.

Function: pow (x y &optional z)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: proxy (x &optional callback)
Package

clpython.module._weakref.

Source

_weakref.lisp.

Function: py-==->lisp-val (x y)
Package

clpython.

Source

metaclass.lisp.

Function: py-bool (lisp-val)
Package

clpython.

Source

classes.lisp.

Function: (setf py-class-of) (x)
Package

clpython.

Source

classes.lisp.

Function: py-file.close (f)
Package

clpython.

Source

builtins-file.lisp.

Function: py-file.read (f &optional size)
Package

clpython.

Source

builtins-file.lisp.

Function: py-pprint (ast &optional stream)

Print AST as Python source code to STREAM.
If STREAM is not supplied, output goes to a string.
If output goes to a stream, then the first character will be a newline; output to a string does not start with a newline.

Package

clpython.parser.

Source

pprint.lisp.

Function: py-raise (exc-type string &rest format-args)

Raise a Python exception with given format string

Package

clpython.

Source

exceptions.lisp.

Function: py-repr-string (x &key circle)

Convert ‘repr(x)’ to Lisp string.

Package

clpython.

Source

classes.lisp.

Function: py-str-string (x &key circle)

Convert ‘str(x)’ to Lisp string.

Package

clpython.

Source

classes.lisp.

Function: py-string.strip (x &optional chars)
Package

clpython.

Source

classes.lisp.

Function: py-val->number (x)
Package

clpython.

Source

classes.lisp.

Function: py-val->string (x)
Package

clpython.

Source

classes.lisp.

Function: quit (&optional code)
Package

clpython.util.

Source

utils.lisp.

Function: raise-syntax-error (&rest args)

If the CLPython runtime is loaded, a SyntaxError is thrown, otherwise a regular ERROR. Same for EOF error.

Package

clpython.

Source

errors.lisp.

Function: rand_add (string entropy)
Package

clpython.module._ssl.

Source

_ssl.lisp.

Function: rand_egd (path)
Package

clpython.module._ssl.

Source

_ssl.lisp.

Function: rand_status ()
Package

clpython.module._ssl.

Source

_ssl.lisp.

Function: range (x &optional y z)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: raw_input (&optional prompt)

Pops up a GUI entry window to type text; returns entered string

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: read (file n)

Read at most N bytes, returned as string. Empty string for EOF

Package

clpython.module.posix.

Source

posix.lisp.

Function: read-package-symbol-func (package start-char end-char &key intern)

Create a reader function that reads from start-char until endchar, and returns a symbol in the given package. When no such symbol exists, it will be interned if INTERN, otherwise an error is raised.

Package

clpython.util.

Source

readtable.lisp.

Function: reduce (func seq &optional initial)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: reduce (&rest args)
Package

clpython.module._functools.

Source

_functools.lisp.

Function: register (search-func)
Package

clpython.module._codecs.

Source

_codecs.lisp.

Function: register-feature (feature present-p)
Package

clpython.util.

Source

utils.lisp.

Function: reload (m)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: remove (path)
Package

clpython.module.posix.

Source

posix.lisp.

Function: repeat (object &optional times)
Package

clpython.module.itertools.

Source

itertools.lisp.

Function: repl (&rest options)
Package

clpython.app.repl.

Source

repl.lisp.

Function: replace (&rest args)
Package

clpython.module.string.

Source

string.lisp.

Function: repr (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: round (x &optional ndigits)

Round number X to a precision with NDIGITS decimal digits (default: 0). Returns float. Precision may be negative

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: run-python-ast (ast &key habitat compile module-globals time args)

Run Python AST in freshly bound habitat.
HABITAT is the execution environment; a fresh one will be used otherwie.
If COMPILE is true, the AST is compiled into a function before running.
MODULE-RUN-ARGS is a list with options passed on to the module-function; e.g. %module-globals, module-name, src-module-path. ARGS are the command-line args, available as ‘sys.argv’; can be a string (which will be splitted on spaces) or a list of strings.

Package

clpython.

Source

compiler.lisp.

Function: sans (plist &rest keys)

By Erik Naggum, http://groups.google.nl/group/comp.lang.lisp/msg/2520fe9bc7749328?dmode=source

Package

clpython.util.

Source

utils.lisp.

Function: schedule-finalization (object function)

Schedule FUNCTION to be run when OBJECT is garbage collected.

Package

clpython.util.

Source

utils.lisp.

Package

clpython.module.re.

Source

re.lisp.

Function: set-impl-status (symbol new-status &optional comment)

Sets implementation status of attribute, and optionally records comment.

Package

clpython.

Source

classes.lisp.

Function: setattr (x attr val)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: setcheckinterval (arg)

How often to check for thread switches and signal handlers

Package

clpython.module.sys.

Source

sys.lisp.

Function: setdefaultencoding (val)
Package

clpython.module.sys.

Source

sys.lisp.

Function: setrecursionlimit (val)
Package

clpython.module.sys.

Source

sys.lisp.

Function: setup-omnivore-readmacro (&key function initial-forms readtable)

Create a readtable that, for any initial character, will let FUNCTION do the parsing.
The reader will return ‘(PROGN ,@INITAL-FORMS ,(FUNCALL FUNCTION STREAM)).

The STREAM supplied to FUNCTION will not be the original stream passed to the readtable function, but rather a CONCATENATED-STREAM wrapper.

INITIAL-FORMS typically contains an IN-PACKAGE form to ensure that compilation and loading of the fasl file satisfies CLHS 3.2.4.4 "Additional Constraints on Externalizable Objects".

Package

clpython.util.

Source

readtable.lisp.

Function: sha224 (&rest args)
Package

clpython.module._sha256.

Source

_sha256.lisp.

Function: sha256 (&rest args)
Package

clpython.module._sha256.

Source

_sha256.lisp.

Function: sha384 (&rest args)
Package

clpython.module._sha512.

Source

_sha512.lisp.

Function: sha512 (&rest args)
Package

clpython.module._sha512.

Source

_sha512.lisp.

Function: sin (x)
Package

clpython.module.math.

Source

math.lisp.

Function: sinh (x)
Package

clpython.module.math.

Source

math.lisp.

Function: sleep (n)
Package

clpython.module.time.

Source

time.lisp.

Function: sorted (x)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: split (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: sqrt (x)
Package

clpython.module.math.

Source

math.lisp.

Function: stack_size (&optional size)

Dummy value

Package

clpython.module.thread.

Source

thread.lisp.

Function: start_new_thread (func args &optional kwargs)

Return identifier of new thread. Thread exits silently, or prints stack trace upon exception.

Package

clpython.module.thread.

Source

thread.lisp.

Function: stat (path)
Package

clpython.module.posix.

Source

posix.lisp.

Function: string-literal-p (x)
Package

clpython.parser.

Source

grammar.lisp.

Function: sub (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: subn (&rest args)
Package

clpython.module.re.

Source

re.lisp.

Function: sum (seq &optional start)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: tan (x)
Package

clpython.module.math.

Source

math.lisp.

Function: tanh (x)
Package

clpython.module.math.

Source

math.lisp.

Function: tee (iterable &optional n)

Create N independent generators

Package

clpython.module.itertools.

Source

itertools.lisp.

Function: time ()
Package

clpython.module.time.

Source

time.lisp.

Function: translate (string table &optional delete-chars)

Delete chars in DELETE-CHARS; TABLE is trans of 256 -> 256. If TABLE is None, then only delete chars.

Package

clpython.module.string.

Source

string.lisp.

Function: unichr (i)
Package

clpython.user.builtin.function.

Source

builtins.lisp.

Package

clpython.module.posix.

Source

posix.lisp.

Function: unpack (fmt string)
Package

clpython.module._struct.

Source

_struct.lisp.

Function: unpack_from (fmt buffer &optional offset)
Package

clpython.module._struct.

Source

_struct.lisp.

Function: unschedule-finalization (sf)

Removes a finalization function. SF is a value returned by SCHEDULE-FINALIZATION.

Package

clpython.util.

Source

utils.lisp.

Function: vars (&optional x)

If X supplied, return it’s dict, otherwise return local variables.

Package

clpython.user.builtin.function.

Source

builtins.lisp.

Function: walk-py-ast (ast f &key value target build-result into-nested-namespaces warn-unknown-form)

Walk recursively through AST, calling F on each statement. The values returned by F are (optionally) collected, and eventually returned (as AST).

F should have lambda list: (ast &key value target). VALUE indicates the expression is evaluated for its value. TARGET is T if this is a place to which a value will be assigned, and it is +WALK-DELETE-TARGET+ when
it is a place that is deleted.

F should return a new form to walk into, derived in some way from the form it is given. (If F always returns what it got as first argument, the whole AST will be visited.)

If F returns two values and the second value is true, the form returned as first value is considered final: it will not be walked into, but will be included as-is in the new AST to be returned. (When F return NIL as first value, the second value must be true.)

The initial form AST is considered an expression used for its value iff VALUE is true; it is considered an assignment target iff TARGET is true.

When build-result is false, no new AST will be returned, so F is only called for side effects.

When INTO-NESTED-NAMESPACES is false, walking stops when encountering CLASSDEF, FUNCDEF or LAMBDA.

Package

clpython.parser.

Source

walk.lisp.

Function: zip (&rest sequences)

Return a list with tuples, where tuple i contains the i-th argument of ~ each of the sequences. The returned list has length equal to the shortest ~ sequence argument.

Package

clpython.user.builtin.function.

Source

builtins.lisp.


6.1.6 Generic functions

Generic Reader: exception-args (condition)
Generic Writer: (setf exception-args) (condition)
Package

clpython.

Methods
Reader Method: exception-args ((condition exception))
Writer Method: (setf exception-args) ((condition exception))
Source

exceptions.lisp.

Target Slot

args.

Generic Function: habitat-cmd-line-args (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: habitat-cmd-line-args ((x habitat))
Generic Function: (setf habitat-cmd-line-args) (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: (setf habitat-cmd-line-args) ((x habitat))
Generic Reader: habitat-search-paths (object)
Package

clpython.

Methods
Reader Method: habitat-search-paths ((habitat habitat))

automatically generated reader method

Source

habitat.lisp.

Target Slot

search-paths.

Generic Writer: (setf habitat-search-paths) (object)
Package

clpython.

Methods
Writer Method: (setf habitat-search-paths) ((habitat habitat))

automatically generated writer method

Source

habitat.lisp.

Target Slot

search-paths.

Generic Function: habitat-stderr (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: habitat-stderr ((x habitat))
Generic Function: (setf habitat-stderr) (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: (setf habitat-stderr) ((x habitat))
Generic Function: habitat-stdin (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: habitat-stdin ((x habitat))
Generic Function: (setf habitat-stdin) (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: (setf habitat-stdin) ((x habitat))
Generic Function: habitat-stdout (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: habitat-stdout ((x habitat))
Generic Function: (setf habitat-stdout) (habitat)
Package

clpython.

Source

habitat.lisp.

Methods
Method: (setf habitat-stdout) ((x habitat))
Generic Function: parse (thing &rest options &key yacc-version one-expr record-source-location tab-width)

Parse THING (pathname or string); return AST.
Most important options:
:YACC-VERSION – :allegro-yacc (default) or :cl-yacc
:ONE-EXPR – only return first form read, not wrapped in module/suite :TAB-WIDTH – width of one tab character in spaces

Package

clpython.parser.

Source

parser.lisp.

Methods
Method: parse ((x string) &rest options &key yacc-version one-expr record-source-location tab-width)
Method: parse ((x pathname) &rest options)
Method: parse ((x stream) &rest options)
Generic Function: py-* (x y)
Package

clpython.

Source

classes.lisp.

Methods
Method: py-* ((x number) (y number))
Source

optimize.lisp.

Method: py-* (x y)
Generic Function: py-call (f &rest args)
Package

clpython.

Source

classes.lisp.

Methods
Method: py-call ((f null) &rest args)
Method: py-call ((f class) &rest args)
Method: py-call (x &rest args)
Method: py-call ((f py-bound-method) &rest args)
Method: py-call ((f py-unbound-method) &rest args)
Method: py-call ((f py-static-method) &rest args)
Method: py-call ((f function) &rest args)
Method: py-call ((x condition-class) &rest args)
Generic Function: py-class-of (x)
Package

clpython.

Source

classes.lisp.

Methods
Method: py-class-of ((x hash-table))
Method: py-class-of ((x integer))
Method: py-class-of ((x real))
Method: py-class-of ((x complex))
Method: py-class-of ((x string))
Method: py-class-of ((x vector))
Method: py-class-of ((x list))
Method: py-class-of ((x symbol))
Method: py-class-of ((x function))
Method: py-class-of ((x py-function))
Method: py-class-of ((x package))
Method: py-class-of ((x py-meta-type))
Method: py-class-of ((x py-type))
Method: py-class-of ((x (eql #<standard-class clpython::py-meta-type>)))
Method: py-class-of (x)
Generic Function: py-float (x)
Package

clpython.

Source

classes.lisp.

Methods
Method: py-float (x)
Generic Function: py-iterate->lisp-list (object)

Returns a Lisp list, that may not be modified destructively (as for e.g. tuples, the lisp list will be returned).

Package

clpython.

Source

classes.lisp.

Methods
Method: py-iterate->lisp-list ((x list))
Source

optimize.lisp.

Method: py-iterate->lisp-list ((s string))
Source

optimize.lisp.

Method: py-iterate->lisp-list ((v vector))
Source

optimize.lisp.

Method: py-iterate->lisp-list (x)
Generic Function: py-repr (x)
Package

clpython.

Source

classes.lisp.

Methods
Method: py-repr ((x fixnum))
Source

optimize.lisp.

Method: py-repr ((x list))
Source

optimize.lisp.

Method: py-repr ((x vector))
Source

optimize.lisp.

Method: py-repr ((x string))
Source

optimize.lisp.

Method: py-repr ((x (eql nil)))
Method: py-repr (x)
Generic Function: py-subs (x item)
Package

clpython.

Source

classes.lisp.

Methods
Method: py-subs ((x hash-table) item)
Source

optimize.lisp.

Method: py-subs ((x dict) item)
Source

optimize.lisp.

Method: py-subs ((x list) (item fixnum))
Source

optimize.lisp.

Method: py-subs ((x string) (item fixnum))
Source

optimize.lisp.

Method: py-subs ((x vector) (item py-slice))
Source

optimize.lisp.

Method: py-subs ((x vector) (item fixnum))
Source

optimize.lisp.

Method: py-subs (x item)
Method: py-subs :around (x (item py-slice))
Generic Function: (setf py-subs) (x item)
Package

clpython.

Source

classes.lisp.

Methods
Method: (setf py-subs) ((x dict) item)
Source

optimize.lisp.

Method: (setf py-subs) ((x vector) (item fixnum))
Source

optimize.lisp.

Method: (setf py-subs) ((x vector) (item py-slice))
Source

optimize.lisp.

Method: (setf py-subs) (x item)

New-val = NIL means deletion.

Method: (setf py-subs) :around (x (item py-slice))
Generic Function: run (thing &rest args)
Package

clpython.

Source

run.lisp.

Methods
Method: run (thing &rest args)
Method: run :around ((thing pathname) &rest args)
Method: run :around ((thing file-stream) &rest args)
Generic Function: slurp-file (file)

Returns file/stream contents as string.
The element type can be CHARACTER or (UNSIGNED-BYTE <=8).
If the stream length can not be determined (e.g. for standard input), all available chars are read.

Package

clpython.util.

Source

utils.lisp.

Methods
Method: slurp-file ((fname string))
Method: slurp-file ((fname pathname))
Method: slurp-file ((stream stream))

6.1.7 Standalone methods

Method: initialize-instance :after ((cls py-type) &rest initargs)
Source

classes.lisp.

Method: initialize-instance ((x buffer) &rest initargs)
Source

builtins-buffer.lisp.

Method: initialize-instance :after ((cls py-meta-type) &rest initargs)
Source

classes.lisp.

Method: initialize-instance :after ((m module) &rest args)
Source

classes.lisp.

Method: make-load-form ((ns mapping-w/excl-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((ns let-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((ns mapping-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((ns hash-table-w/excl-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((ns let-w/locals-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((ns package-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((m module) &optional environment)
Source

classes.lisp.

Method: make-load-form ((ns builtins-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((ns namespace) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((ns hash-table-ns) &optional environment)
Source

namespace.lisp.

Method: make-load-form ((x ast-walker-node-arg) &optional env)
Source

walk.lisp.

Method: make-load-form ((x ast-walker-node) &optional env)
Source

walk.lisp.

Method: print-object ((x py-type) stream)
Source

classes.lisp.

Method: print-object ((x object) stream)
Source

classes.lisp.

Method: print-object ((x module-import-pre) stream)
Source

compiler.lisp.

Method: print-object ((x py-func-iterator) stream)
Source

classes.lisp.

Method: print-object ((x py-unbound-method) stream)
Source

classes.lisp.

Method: print-object ((x py-slice) stream)
Source

classes.lisp.

Method: print-object ((x py-super) stream)
Source

classes.lisp.

Method: print-object ((habitat habitat) stream)
Source

habitat.lisp.

Method: print-object ((x py-bound-method) stream)
Source

classes.lisp.

Method: print-object ((x py-writable-attribute-method) stream)
Source

classes.lisp.

Method: print-object ((namespace namespace) stream)
Source

namespace.lisp.

Method: print-object ((x py-static-method) stream)
Source

classes.lisp.

Method: print-object ((x py-function) stream)
Source

classes.lisp.

Method: print-object ((x exception) stream)
Source

exceptions.lisp.

Method: print-object ((x %parse.collect-form) stream)
Source

lispy.lisp.

Method: print-object ((x %parse.base) stream)
Source

lispy.lisp.

Method: print-object ((lexer lexer) stream)
Source

lexer.lisp.

Method: print-object ((l lock) stream)
Source

thread.lisp.

Method: validate-superclass ((class standard-class) (superclass py-type))
Package

sb-mop.

Source

metaclass.lisp.

Method: validate-superclass ((class py-type) superclass)
Package

sb-mop.

Source

metaclass.lisp.

Method: validate-superclass ((class standard-class) (superclass py-meta-type))
Package

sb-mop.

Source

metaclass.lisp.

Method: validate-superclass (class (superclass py-meta-type))
Package

sb-mop.

Source

metaclass.lisp.

Method: validate-superclass ((class py-meta-type) superclass)
Package

sb-mop.

Source

metaclass.lisp.

Method: validate-superclass ((class funcallable-python-class) superclass)
Package

sb-mop.

Source

classes.lisp.


6.1.8 Conditions

Condition: exception
Package

clpython.user.builtin.type.exception.

Source

exceptions.lisp.

Direct superclasses

error.

Direct subclasses
  • generatorexit.
  • socketerror.
  • sslerror.
  • standarderror.
  • stopiteration.
  • systemexit.
  • thread.error.
  • warning.
Direct methods
Direct slots
Slot: args

Arguments as Lisp list

Package

clpython.

Initform

(quote nil)

Initargs

:args

Readers

exception-args.

Writers

(setf exception-args).


Next: , Previous: , Up: Public Interface   [Contents][Index]

6.1.9 Classes

Class: array
Package

clpython.module.array.

Source

array.lisp.

Direct superclasses

object.

Direct methods
Direct slots
Slot: kind
Type

character

Initargs

:kind

Readers

py-array-kind.

Writers

(setf py-array-kind).

Slot: array
Package

common-lisp.

Type

array

Initargs

:array

Readers

py-array-array.

Writers

(setf py-array-array).

Slot: elmtype
Initargs

:elmtype

Readers

py-array-elmtype.

Writers

(setf py-array-elmtype).

Slot: elmsize
Type

fixnum

Initargs

:elmsize

Readers

py-array-elmsize.

Writers

(setf py-array-elmsize).

Class: callableproxytype
Package

clpython.module._weakref.

Source