Ah! In my review, I was going to suggest you that:

   while (*quote_prefix)
      *p++ = *quote_prefix++;

-- Alexandre

On 10/8/07, Christian Heimes <[EMAIL PROTECTED]> 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
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to