[IPython-dev] msg_type moved to 'header'?

MinRK benjaminrk@gmail....
Fri Sep 2 13:57:58 CDT 2011


Paul, thanks for the catch.

After chatting with Brian, I am going to restore the msg_id/msg_type aliases
to the top-level of the msg dict.  They have always been in the header,
because the header/parent/content are the only things sent over the wire.
 But it still makes sense for msg_id/msg_type to be accessible in the top
level of the dict.

I'll make sure the docs reflect this as well.  We should definitely be more
careful changing published specs.

-MinRK

On Thu, Sep 1, 2011 at 18:49, Paul Ivanov <pivanov314@gmail.com> wrote:

> Hey there,
>
> I just updated trunk and had to spend some time tracking down why
> vim-ipython's shell wasn't working like it was in 0.11
>
> turns out that 'msg_type' moved from being just inside a messsage, to
> being inside a message's header, i.e. m['msg_type'] is now
> m['header']['msg_type']
>
> I made a pull request for a note about this backwards
> incompatible change to be included in development.txt - but
> wonder if this change is worth making. (ok, i see it is, figured
> it out as I wrote this)
>
> <naive me>
> I can imagine there might be folks out there writing ipython
> integrated applications using the messaging spec in 0.11, perhaps
> to interface with a text editor, that'll have to support both
> versions of the spec, but it's not clear what the win is of
> moving msg_type to the header.
>
> Do these hypothetical folks have to bite the bullet this time
> around, or might there be some recourse and a
> backwards-compatible reinstatement of 'msg_type' to top level.
> </naive me>
>
> oh, it looks like in 0.11 'msg_type' was replicated in both the
> top level and in the header, so the above all makes sense now,
> and top level removal is not that big of a deal.
>
> so consider this message being encouragement to document these
> type of changes as they're merged. :)
>
> best,
> --
> Paul Ivanov
> 314 address only used for lists,  off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAk5gNi4ACgkQe+cmRQ8+KPcNywCfa2h3aS1Hg2gUf3PUIQzP8aTT
> nsMAniczwNeuZ2tHwmlUuSXDhlQ8WxBh
> =di5j
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20110902/40d8bb31/attachment.html 


More information about the IPython-dev mailing list