Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork48.5k
Open
Labels
Description
Repository commit
Python version (python --version)
Python 3.10.7
Dependencies version (pip freeze)
Not applicable - this is a logical bug, not dependency-related
Expected behavior
Consistent behavior across all methods when handling missing values:
- Either ALL methods should raise exceptions for invalid inputs
- Or ALL methods should return consistent sentinel values
- The behavior should be clearly documented
- No silent failures mixed with exceptions
Actual behavior
Inconsistent behavior:
compress(80)
returns-1
(silent failure)coordinate_map[80]
raisesKeyError
(exception)decompress(5)
returns-1
(silent failure)
This mixed behavior can cause hard-to-debug issues.