Subject: [Boost-bugs] [Boost C++ Libraries] #4609: Converting from bytes object to std::string
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-29 10:10:42
#4609: Converting from bytes object to std::string
-------------------------------------+--------------------------------------
Reporter: bhy | Owner: dave
Type: Patches | Status: new
Milestone: To Be Determined | Component: Python
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
I just realized that, in Boost.Python with Python 3, there is no way to
accept a Python bytes object as function argument in C++ side. Since both
std::string and char* are mapped to Python unicode object (which is the
default str type in Python 3). This will cause trouble when porting
existing code to Python 3.
The attached patch fix this by allow both unicode string and bytes being
converted to std::string.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4609> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC