request for advice: "PyString_FromStringAndSize(0, ..."?

Alex Martelli aleaxit at yahoo.com
Sat Oct 21 09:59:36 EDT 2000


"Andrew Kuchling" <akuchlin at mems-exchange.org> wrote in message
news:3dhf66l79s.fsf at kronos.cnri.reston.va.us...
    [snip]
> "Alex Martelli" <aleaxit at yahoo.com> writes:
> > the docs.  _Am_ I then allowed to "initialize" it (and if so
> > how -- getting at the buffer with PyString_AS_STRING, or,
> > how else...?) -- all the docs say is that "The data must not
> > be modified in any way".
>
> Since you've just created the string, no other part of the system can
> have a reference to it, therefore modifying the string's data is OK.

Thanks!  Excellent.  Just what I was hoping to hear.

Now, I'll do a little bug submission regarding the docs on this...
thanks again!


Alex






More information about the Python-list mailing list