[PyQt] Possible small bug in docstring generation

Shaheed Haque srhaque at theiet.org
Wed Jun 14 19:34:24 BST 2017


Hi Phil,

Is it possible this fell through the cracks? I don't see it in the
changelog for the latest snapshot...or going back for a bit.

If you like, I could try to create a patch (I was thinking a "q"
format string specifier for prcode?).



On 20 March 2017 at 21:45, Phil Thompson <phil at riverbankcomputing.com> wrote:
> On 20 Mar 2017, at 7:50 pm, Shaheed Haque <srhaque at theiet.org> wrote:
>>
>> Hi Phil,
>>
>> With sip 4.18.1, I noticed this function:
>>
>> KMIME_EXPORT bool parseGenericQuotedString(const char *&scursor,
>>        const char *const send,
>>        QString &result, bool isCRLF,
>>        const char openChar = '"',
>>        const char closeChar = '"');
>>
>> ends up generating a docstring as follows, which of course is missing
>> any escaping of the quotes...
>>
>> PyDoc_STRVAR(doc_KMime_HeaderParsing_parseGenericQuotedString,
>> "parseGenericQuotedString(str, str, str, bool, str = '"', str = '"')
>> -> bool");
>>
>>
>> I'm not sure if this is fixed in a more recent release, but I thought
>> it worth mentioning...
>
> I doubt it has been fixed. I'll add it to the TODO list for the next release.
>
> Thanks,
> Phil


More information about the PyQt mailing list