package pyre-ast

  1. Overview
  2. Docs

This module provides a type that represents Python expression contexts.

Expression contexts are mainly used to syntactically differentiate among expressions that will be read at runtime, those that will be written at runtime, and those that will be deled at runtime.

As of Python 3.10, there are 6 kinds of expressions with an explicit context field:

These expressions are allowed to appear at the following "target" positions:

type 'a t = private {
  1. load : 'a;
  2. store : 'a;
  3. del : 'a;
}
val make : load:'a -> store:'a -> del:'a -> unit -> 'a t

Constructor of t.

OCaml

Innovation. Community. Security.