Some basic functions and exceptions for various semantics shared by modules.
Project description
Some basic functions and exceptions for various semantics shared by modules.
Latest release 20250103: Initial PyPI release: ClosedError and @not_closed.
Class ClosedError(builtins.Exception)
Exception for operations which are invalid when something is closed.
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 ...
Release Log
Release 20250103: Initial PyPI release: ClosedError and @not_closed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cs_semantics-20250103.tar.gz.
File metadata
- Download URL: cs_semantics-20250103.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67356bef68351881e3c587dc955f67178816c1fd5fe911e27a12e1c93c12fe32
|
|
| MD5 |
5bbeb894fb0bfb89ddc75c46412320ab
|
|
| BLAKE2b-256 |
3e6bc13d329f89edd6a278cd22b4b6bf89c6ae42306e08469dcc08fb26a17573
|
File details
Details for the file cs_semantics-20250103-py3-none-any.whl.
File metadata
- Download URL: cs_semantics-20250103-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
355e3b22a118a51a0b0ef2e87e02b61492004b42779fbd0a295cbcb193d3b369
|
|
| MD5 |
9ea4f5391de2266ee4445cd0545b616e
|
|
| BLAKE2b-256 |
4901d34b0fdc8bcec1ccdb2828cd4f72d44126f141cc2d30f6fa7d86f12e8e25
|