Home / Vulnerability Database / Python : Assert usage
Python
Python : Assert usage
Overview
The application uses the assert method. Assert is a convenient way to insert debug statements in a program. It was discovered that some projects used assert to enforce interface constraints. However, assert is removed with compiling to optimised byte code (python -o producing \*.pyo files).
This caused various protections to be removed. The use of assert is also considered as general bad practice in OpenStack codebases.
LOW
DerScanner Severity Score
Do you want to fix Python : Assert usage in your application?
See also
Python
Python : Debug mode on
Python
Python : Web3: Deprecated method
Python
