<div class="gmail_quote">2012/1/19 Gregory P. Smith <span dir="ltr">&lt;<a href="mailto:greg@krypto.org">greg@krypto.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
str[-1] is not likely to work if you want to maintain ABI compatibility.  Appending it to the data after the terminating \0 is more likely to be possible, but if there is any possibility that existing compiled extension modules have somehow inlined code to do allocation of the str field even that is questionable (i don&#39;t think there are?).</blockquote>
</div><div><br></div>There are. Unfortunately.<br><a href="https://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/scalarapi.c#L710">https://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/scalarapi.c#L710</a><div>
<div><br></div>-- <br>Amaury Forgeot d&#39;Arc<br>
</div>