CodeString class

(Shortest import: from brian2.equations.codestrings import CodeString)

class brian2.equations.codestrings.CodeString(code)[source]

Bases: object

A class for representing “code strings”, i.e. a single Python expression or a sequence of Python statements.

Parameters:

code : str

The code string, may be an expression or a statement(s) (possibly multi-line).