Make Python-wrapped char safe for ord() function
Previously, the Python wrappers would return a char value of zero as the empty string. This is troublesome because calling ord('') will raise an exception. It is better for the length of the returned str object to always have a length of 1, and be '\0' if the char is zero.
Showing
- Documentation/release/dev/python-wrap-char.md 9 additions, 0 deletionsDocumentation/release/dev/python-wrap-char.md
- Wrapping/Python/Testing/Python/TestChar.py 4 additions, 4 deletionsWrapping/Python/Testing/Python/TestChar.py
- Wrapping/PythonCore/vtkPythonArgs.h 5 additions, 2 deletionsWrapping/PythonCore/vtkPythonArgs.h
Loading
Please register or sign in to comment