numpy-using-socket icon indicating copy to clipboard operation
numpy-using-socket copied to clipboard

minor cross platform issue macos to windows

Open amarco opened this issue 1 year ago • 1 comments

When using npsocket for cross platform transfers (i.e. between macos and windows or linux and windows) it is important to add the Indianess specfifier in teh pack and unpack routine. struct,pack("L"...) or struct.unpack("L",...) should have an indianess specficer infront of the L, for instance "!L" this will prevent the pickle problem of invalid loadkey..

amarco avatar Mar 17 '23 18:03 amarco

Hi @amarco , Thank you, mind sending a PR with a fix for this?

vaghawan avatar Mar 20 '23 12:03 vaghawan