Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62124

Re: [newbie] Saving binaries in a specific way

Newsgroups comp.lang.python
Date 2013-12-16 17:01 -0800
References <3dcea919-82ad-4e0a-a00a-fa04ba39b1dd@googlegroups.com> <mailman.4241.1387234067.18130.python-list@python.org> <fffa6a25-9477-4fba-b50c-c75cf0e35abb@googlegroups.com>
Message-ID <dec54cfc-d3ee-43b1-9aca-4b8409be869e@googlegroups.com> (permalink)
Subject Re: [newbie] Saving binaries in a specific way
From rusi <rustompmody@gmail.com>

Show all headers | View raw


On Tuesday, December 17, 2013 5:00:14 AM UTC+5:30, Djoser wrote:
> Basically I have a .dat file, so I get some numbers and make a different conversion.
> 
> I'll try this struct script. I'm not used to it, but it seems to do what I want.

Construct is a very powerful utility for binary parsing and building
https://pypi.python.org/pypi/construct
http://construct.readthedocs.org/en/latest/

Though for your currently stated purpose struct should be enough

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[newbie] Saving binaries in a specific way Djoser <pedrovg000@gmail.com> - 2013-12-16 14:19 -0800
  Re: [newbie] Saving binaries in a specific way Chris Kaynor <ckaynor@zindagigames.com> - 2013-12-16 14:28 -0800
    Re: [newbie] Saving binaries in a specific way Djoser <pedrovg000@gmail.com> - 2013-12-16 14:35 -0800
  Re: [newbie] Saving binaries in a specific way Tim Chase <python.list@tim.thechases.com> - 2013-12-16 16:48 -0600
    Re: [newbie] Saving binaries in a specific way Djoser <pedrovg000@gmail.com> - 2013-12-16 15:30 -0800
      Re: [newbie] Saving binaries in a specific way rusi <rustompmody@gmail.com> - 2013-12-16 17:01 -0800
  Re: [newbie] Saving binaries in a specific way Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-12-17 11:21 +0000
    Re: [newbie] Saving binaries in a specific way Djoser <pedrovg000@gmail.com> - 2013-12-17 10:54 -0800

csiph-web