[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Review Request: Tidy up Python 3 support.
From:       Shaheed Haque <srhaque () theiet ! org>
Date:       2012-11-22 18:57:06
Message-ID: CAHAc2jfTmv0U-Q8OqZOHk5EJ89c0T+d21U2Y7niiv2HavSLn9w () mail ! gmail ! com
[Download RAW message or body]

Hi Luca,

Apologies for the missing colon. I must say that I found the docs for
3.3. a bit confusing - so it is not 100% clear to me that the AS_DATA
will work, but if the change allows it to build, that's at least a
step forward. I'll make the change and upload a new diff.

However, I don't understand how that fixed the 3.2 linker problem, or
is that still an issue?

Thanks, Shaheed

On 21 November 2012 22:43, Luca Beltrame <einar@heavensinferno.net> wrote:
> In data mercoledì 21 novembre 2012 21:44:30, Shaheed Haque ha scritto:
>
>> fix that? The code around it is the same for 3.2 and 3.3, so if you
>> can get it to build on 3.3, that would be a start.
>
> I managed to get it to build if I used PyUnicode_AS_DATA rather than 1_BYTE
> etc. to get the string which is then passed to QString:
>
> http://docs.python.org/3.2/c-api/unicode.html#PyUnicode_AS_DATA
>
>
> --
> Luca Beltrame - KDE Forums team
> KDE Science supporter
> GPG key ID: 6E1A4E79
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic