mentortools/libs/: exception-tools-abm-1.0.79342 metadata and description
Tools an components to work with exceptions
| author | mike |
| author_email | m.orlov@technokert.ru |
| classifiers |
|
| description_content_type | text/markdown |
| license | Proprietary. All rights reserved. Confidential and belonging to ABM. |
| requires_dist |
|
| requires_python | >=3.11,<4.0 |
| File | Tox results | History |
|---|---|---|
exception_tools_abm-1.0.79342-py3-none-any.whl
|
|
|
exception_tools_abm-1.0.79342.tar.gz
|
|
Exception tools
Tools an components to work with exceptions
Examples:
from no_value import NoValue
def update_some_value(val: int | None | NoValue) -> None:
if isinstance(val, int):
print(f'set something to {val}')
elif val is None:
print(f'clear value')
elif val is NoValue:
print("do nothing")
update_some_value(17)
update_some_value(42)
update_some_value(NoValue)
update_some_value(None)
Will
set something to 17
set something to 42
do nothing
clear value