<div dir="ltr">Last time I tried tofile and fromfile in Numpypy it was not implemented.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 7:01 AM, Eli Stevens (Gmail) <span dir="ltr"><<a href="mailto:wickedgrey@gmail.com" target="_blank">wickedgrey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No, since it's not *just* a numpy array I need to move around (dict<br>
with numpy values, in this case, more complicated objects in the<br>
future). Obviously I can kludge something manual together (assuming<br>
the tofile/fromfile functions work cross-interpreter, which I wouldn't<br>
take for granted at this point), but I'd rather be able to use pickle<br>
(easier to work with libraries that also expect pickles, etc.).<br>
<span class="HOEnZb"><font color="#888888"><br>
Eli<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Jun 23, 2016 at 7:54 PM, William ML Leslie<br>
<<a href="mailto:william.leslie.ttg@gmail.com">william.leslie.ttg@gmail.com</a>> wrote:<br>
> On 24 June 2016 at 12:14, Eli Stevens (Gmail) <<a href="mailto:wickedgrey@gmail.com">wickedgrey@gmail.com</a>> wrote:<br>
>> I'm trying to construct some data that includes numpy arrays in pypy,<br>
>> pickle it, then unpickle it in cpython (to use some<br>
>> non-pypy-compatible libs).<br>
>><br>
>> However, the actual class of the pickled array is _numpypy.multiarray,<br>
>> which cpython doesn't have.<br>
>><br>
>> Any suggestions?<br>
><br>
> Have you considered the tofile method and fromfile function?<br>
><br>
> <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.tofile.html#numpy.ndarray.tofile" rel="noreferrer" target="_blank">http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.tofile.html#numpy.ndarray.tofile</a><br>
><br>
> <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromfile.html#numpy.fromfile" rel="noreferrer" target="_blank">http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromfile.html#numpy.fromfile</a><br>
><br>
> --<br>
> William Leslie<br>
><br>
> Notice:<br>
> Likely much of this email is, by the nature of copyright, covered<br>
> under copyright law. You absolutely MAY reproduce any part of it in<br>
> accordance with the copyright law of the nation you are reading this<br>
> in. Any attempt to DENY YOU THOSE RIGHTS would be illegal without<br>
> prior contractual agreement.<br>
_______________________________________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pypy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/pypy-dev</a><br>
</div></div></blockquote></div><br></div>