Closed GoogleCodeExporter closed 9 years ago
thanks for reporting!
shedskin should give a warning here about unsupported usage of struct.unpack.
the following syntax avoids the problem, and is arguably nicer.. ;-)
lenght, = struct.unpack('<I', data)
offset, = struct.unpack('<H', stream[cursor:cursor+2])
I will see if I can add a warning message here.
Original comment by mark.duf...@gmail.com
on 9 Mar 2012 at 11:18
btw, note that you could use the multiprocessing module from 'outside', by
letting shedskin generate an extension module. there will be some copying
overhead then of course (see examples/pylot_main for an example of this
approach).
Original comment by mark.duf...@gmail.com
on 9 Mar 2012 at 11:21
Wow! You're so fast :D Thank you very much :)
Original comment by frap...@gmail.com
on 9 Mar 2012 at 11:26
actually it looks like there are already warning messages.. not sure why I
didn't see those, perhaps because of the other observed problems. attachment
leads to clear warning messages in any case, and after changing the code as
suggested in these warnings, things compile fine. I added some tests for these
warning messages in any case.. so I consider this issue to be fixed ;-) please
reopen if I missed anything.
Original comment by mark.duf...@gmail.com
on 28 Mar 2012 at 9:56
btw do you have or know of a pure-python lz4 compressor as well? I'd love to
add an lz4/snappy compressor to shedskin/examples..
Original comment by mark.duf...@gmail.com
on 28 Mar 2012 at 10:09
It would be great! :)
Actually not, I hope to finish it in next months (lz4-python project is an
hobby, while actually I've to develop a Django application for work).
Original comment by frap...@gmail.com
on 28 Mar 2012 at 10:21
Original issue reported on code.google.com by
frap...@gmail.com
on 9 Mar 2012 at 11:05Attachments: