Skip to main content

compat-sentinel

PEP 661 sentinel for Python 3.10 and later.

On Python 3.15 and later, compat_sentinel.sentinel is the builtin. On older interpreters it is a local implementation with the same constructor, copy behavior, and pickle lookup.

from compat_sentinel import sentinel

MISSING = sentinel("MISSING")
DEFAULT = sentinel("DEFAULT", repr="<default>")

Each call returns a new object. A sentinel pickles back to itself when it can be imported from its module under __name__:

MISSING = sentinel("MISSING")

class Box:
    SHORT = sentinel("Box.SHORT")

A sentinel created in a local scope and never stored under that name does not pickle. __module__ is taken from the caller and is writable; pickle uses the value present at dump time.

int | MISSING and MISSING | str build a typing.Union.

Metadata

Release files for compat-sentinel 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compat-sentinel 0.1.1
File Size Uploaded
compat_sentinel-0.1.1.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for compat-sentinel 0.1.1
File Interpreter ABI Platform
compat_sentinel-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / compat_sentinel-0.1.1.tar.gz

Download URL compat_sentinel-0.1.1.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
975ce383c869e207f12b02c9cb204e81a5b96ebb913c715a10f7d1acd5a3995c
BLAKE2b-256 checksum
How to use checksums
9267678c003b6499949d8ae12fec63048b8a765328e697a930c5453b1606dab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / compat_sentinel-0.1.1-py3-none-any.whl

Download URL compat_sentinel-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e92b9419cc54aebd1bb20fb9c7c3ea91c11f926895dff5dba5261469b818e767
BLAKE2b-256 checksum
How to use checksums
30b0a0d3defaa0bc813011bc36c12757afa08040b60b386929169ff1045b1958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page