Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs_semantics-20250103.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cs_semantics-20250103-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for cs_semantics-20250103.tar.gz
Algorithm Hash digest
SHA256 67356bef68351881e3c587dc955f67178816c1fd5fe911e27a12e1c93c12fe32
MD5 5bbeb894fb0bfb89ddc75c46412320ab
BLAKE2b-256 3e6bc13d329f89edd6a278cd22b4b6bf89c6ae42306e08469dcc08fb26a17573

See more details on using hashes here.

File details

Details for the file cs_semantics-20250103-py3-none-any.whl.

File metadata

File hashes

Hashes for cs_semantics-20250103-py3-none-any.whl
Algorithm Hash digest
SHA256 355e3b22a118a51a0b0ef2e87e02b61492004b42779fbd0a295cbcb193d3b369
MD5 9ea4f5391de2266ee4445cd0545b616e
BLAKE2b-256 4901d34b0fdc8bcec1ccdb2828cd4f72d44126f141cc2d30f6fa7d86f12e8e25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page