Skip to content

Commit a3f478e

Browse files
author
Ralf W. Grosse-Kunstleve
committed
boost.python: merging trunk to release
[SVN r81773]
1 parent 46796f3 commit a3f478e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/converter/builtin_converters.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ namespace
377377
static unaryfunc* get_slot(PyObject* obj)
378378
{
379379
#if PY_VERSION_HEX >= 0x03000000
380-
return (PyUnicode_Check(obj)) ? &py_unicode_as_string_unaryfunc : 0;
380+
return (PyUnicode_Check(obj)) ? &py_unicode_as_string_unaryfunc :
381+
PyBytes_Check(obj) ? &py_object_identity : 0;
381382
#else
382383
return (PyString_Check(obj)) ? &obj->ob_type->tp_str : 0;
383384

0 commit comments

Comments
 (0)