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

2008-08-02 Thread Barry Scott
On Aug 1, 2008, at 14:30, M.-A. Lemburg wrote: 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

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

2008-08-01 Thread Barry Scott
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? Barry ___ Python-Dev mailing

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

2008-08-01 Thread Benjamin Peterson
On Fri, Aug 1, 2008 at 8:06 AM, Barry Scott [EMAIL PROTECTED] 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?

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

2008-08-01 Thread M.-A. Lemburg
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()