[Python-3000] PEP 3137 plan of attack
Alexandre Vassalotti
alexandre at peadrop.com
Tue Oct 9 01:55:13 CEST 2007
Ah! In my review, I was going to suggest you that:
while (*quote_prefix)
*p++ = *quote_prefix++;
-- Alexandre
On 10/8/07, Christian Heimes <lists at cheimes.de> wrote:
> I'm not happy with:
>
> static const char *quote_prefix = "buffer(b'";
> p = PyUnicode_AS_UNICODE(v);
> for (i=0; i<strlen(quote_prefix); i++) {
> *p++ = quote_prefix[i];
> }
>
> but I didn't know how to code it more elegant. It follows the previous
> version of the code and it's the fastest way I can think of without
More information about the Python-3000
mailing list