[pythran] Re: is there a way to work with binary data (read in from a a file)

  • From: "jo" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "etaoinbe" for DMARC)
  • To: "pythran@xxxxxxxxxxxxx" <pythran@xxxxxxxxxxxxx>
  • Date: Fri, 11 Dec 2015 06:51:24 +0000 (UTC)

On the target device I dont have python available. What would be the easiest
way to add the missing functions to the generator? Or should I first write a
python extension module in cpp?
From: serge guelton <sguelton@xxxxxxxxxxxxx>
To: pythran@xxxxxxxxxxxxx
Sent: Thursday, December 10, 2015 4:06 PM
Subject: [pythran] Re: is there a way to work with binary data (read in from a
a file)

On Thu, Dec 10, 2015 at 02:23:46PM +0000, jo wrote:


is there a way to work with binary data (read in from a a file)
i.e.

word = struct.unpack('>I', bytes)[0];
tx

Not within pythran. You're supposed to do tehd ata extraction / read /
in the Python side and only the data crunching in Pythran.



Other related posts: