A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-August/081630.html below:

[Python-Dev] 3.0 C API to decode bytes into unicode?

[Python-Dev] 3.0 C API to decode bytes into unicode?M.-A. Lemburg mal at egenix.com
Fri Aug 1 15:30:39 CEST 2008
On 2008-08-01 15:06, Barry Scott wrote:
> I cannot see how I implement decode() for bytes objects using the C API
> for PyCXX library,
> 
> I'd assuming that I should find a PyBytes_Decode function but cannot 
> find it
> in beta 2.
> 
> What is the preferred way to do this?

PyUnicode_FromEncodedObject() should to the trick.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 01 2008)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
            Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4