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.
Release files for cs-semantics 20250103
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs_semantics-20250103.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs_semantics-20250103-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / cs_semantics-20250103.tar.gz
| Download URL | cs_semantics-20250103.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67356bef68351881e3c587dc955f67178816c1fd5fe911e27a12e1c93c12fe32
|
|
BLAKE2b-256 checksum How to use checksums |
3e6bc13d329f89edd6a278cd22b4b6bf89c6ae42306e08469dcc08fb26a17573
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Release files / cs_semantics-20250103-py3-none-any.whl
| Download URL | cs_semantics-20250103-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
355e3b22a118a51a0b0ef2e87e02b61492004b42779fbd0a295cbcb193d3b369
|
|
BLAKE2b-256 checksum How to use checksums |
4901d34b0fdc8bcec1ccdb2828cd4f72d44126f141cc2d30f6fa7d86f12e8e25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|