Skip to main content

Some basic functions and exceptions for various semantics shared by modules.

Short summary:

  • ClosedError: Exception for operations which are invalid when something is closed.

  • not_closed: A decorator to wrap methods of objects with a .closed property which should raise when self.closed. This raised ClosedError if the object is closed.

Functions

not_closed(*da, **dkw)

A decorator to wrap methods of objects with a .closed property which should raise when self.closed. This raised ClosedError if the object is closed.

Excample:

@not_closed
def doit(self):
    ... proceed know we were not closed ...

Classes

class ClosedError(builtins.Exception)

Exception for operations which are invalid when something is closed.

Metadata

Release files for cs-semantics 20261016

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

Source distribution (sdist)

Source distribution for cs-semantics 20261016
File Size Uploaded
cs_semantics-20261016.tar.gz 1.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cs-semantics 20261016
File Interpreter ABI Platform
cs_semantics-20261016-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 4.0 kB

Release files / cs_semantics-20261016.tar.gz

Download URL cs_semantics-20261016.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1a5dc6bac2aaeb80119358eebdc6e0ccfb55cfa558a06a40cb7a92b7bdfd8d2d
BLAKE2b-256 checksum
How to use checksums
14e1c8b397c2ec62f1496f1f183d9eec38ed80d81f079028869dcc3ed4fa2ed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / cs_semantics-20261016-py2.py3-none-any.whl

Download URL cs_semantics-20261016-py2.py3-none-any.whl
Size 2.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
641c978314f1bc26abc58b3486600fcfd09d9b21e83f50a559b7ad22ac7f3e2a
BLAKE2b-256 checksum
How to use checksums
497a620e75ab4e007774a0074117802bc4ec403ef4caf4594ce976711091b0a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

20261016 This release

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