[IPython-User] write binary with struct.pack_into

palmeira palmeira@gmail....
Sat Oct 6 14:29:10 CDT 2012


Thanks for your help and sorry about the list messy

sds,

*Ronaldo Maia de Jesus Palmeira*
*Doutorando em Engenharia Oceânica *
*Grupo de Processos Oceânicos - GruPO*
*palmeira@gmail.com**  |  palmeira@ufrj.br
UFRJ | Universidade Federal do Rio de Janeiro*
*
*
*"A percepção do desconhecido é a mais fascinante das experiências. O homem
que não tem os olhos abertos para o misterioso passará pela vida sem ver
nada."*
*Albert Einstein*



On Sat, Oct 6, 2012 at 3:37 PM, Thomas Kluyver-2 [via Python] <
ml-node+s6n4991292h95@n6.nabble.com> wrote:

> Hi Ronaldo,
>
> This list is actually about IPython, an interactive Python shell. It
> sounds like your question is about using Python in general. In future,
> the programming Q&A site Stackoverflow is a good place for this kind
> of question: http://stackoverflow.com/questions/tagged/python
>
>
> On 6 October 2012 04:33, palmeira <[hidden email]<http://user/SendEmail.jtp?type=node&node=4991292&i=0>>
> wrote:
> > test=struct.pack_into(bloco,fb.write()[0*4:251*4])  # ERROR in this
> WRITE
>
> This is your problem, though. It should look more like:
> struct.pack_into(bloco, fb, 0, my_array)
>
> The docs are here:
> http://docs.python.org/library/struct.html#struct.pack_into
>
> Best wishes,
> Thomas
> _______________________________________________
> IPython-User mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4991292&i=1>
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://python.6.n6.nabble.com/write-binary-with-struct-pack-into-tp4991236p4991292.html
>  To start a new topic under IPython - User, email
> ml-node+s6n1657224h87@n6.nabble.com
> To unsubscribe from write binary with struct.pack_into, click here<http://python.6.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4991236&code=cGFsbWVpcmFAZ21haWwuY29tfDQ5OTEyMzZ8LTEzNzYzNDc0Ng==>
> .
> NAML<http://python.6.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://python.6.n6.nabble.com/write-binary-with-struct-pack-into-tp4991236p4991298.html
Sent from the IPython - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121006/61188ea6/attachment.html 


More information about the IPython-User mailing list