Re: [Numpy-discussion] py2/py3 pickling

2015-08-24 Thread Chris Laumann
Hi- Would it be possible then (in relatively short order) to create a py2 -> py3 numpy pickle converter? This would run in py2, np.load or unpickle a pickle in the usual way and then repickle and/or save using a pickler that uses an explicit pickle type for encoding the bytes associated with nu

Re: [Numpy-discussion] py2/py3 pickling

2015-08-24 Thread Nathaniel Smith
On Aug 24, 2015 9:29 AM, "Pauli Virtanen" wrote: > > 24.08.2015, 01:02, Chris Laumann kirjoitti: > [clip] > > Is there documentation about the limits and workarounds for py2/py3 > > pickle/np.save/load compatibility? I haven't found anything except > > developer bug tracking discussions (eg. #4879

Re: [Numpy-discussion] py2/py3 pickling

2015-08-24 Thread Pauli Virtanen
24.08.2015, 01:02, Chris Laumann kirjoitti: [clip] > Is there documentation about the limits and workarounds for py2/py3 > pickle/np.save/load compatibility? I haven't found anything except > developer bug tracking discussions (eg. #4879 in github numpy). Not sure if it's written down somewhere b

Re: [Numpy-discussion] Numpy helper function for __getitem__?

2015-08-24 Thread Sebastian Berg
On So, 2015-08-23 at 11:08 -0700, Stephan Hoyer wrote: > I don't think NumPy has a function like this (at least, not exposed to > Python), but I wrote one for xray, "expanded_indexer", that you are > welcome to borrow: > https://github.com/xray/xray/blob/v0.6.0/xray/core/indexing.py#L10 > > Yeah