-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
The bson.Binary type can be initialized with a bytes instances, but not with bytearray. We should consider relaxing the type-check in Binary._init_ to accept bytearray. This will provide a more seamless user-experience when trying to write binary data from Python datatypes to MongoDB.
- duplicates
-
PYTHON-1648 Binary should accept memoryviews/buffer objects
- Closed