Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: File I/O needs bytes in Python 3
The wrapper that allows us to use Python file-like objects as C++ streams was specific to Python 2 inasmuch as it wrapped data in a str() before sending it to the write() method. As of Boost 1.67, Boost.Python doesn't have a convenient wrapper for bytes the way it does str. We instantiate a bytes() object around the raw data ourselves. Some of the issues involved are discussed in this pull request: boostorg/python#54
- Loading branch information