Depends. pyaml is very forgiving in terms of what you feed to it, but json.dumps() only really seems to<div>accept list/dict without complaining.</div><div><br></div><div>I will keep refining this. One shortcoming is that it does not serialize Python classes (json.dumps() says they&#39;re not JSON serializable).</div>

<div>I will probably need to write a custom marshaller that uses a class&#39;s __dict__ to convert it to a dict (including traversing the whole<br>object graph).</div><div><br></div><div>XML does not work either yet, could not find a library that does dict/list/class conversion to XML. Will need to write one myself too.</div>

<div>But all the underlying plumbing in terms of content routing is there.</div><div><br></div><div>Once I am done with all of this I will have a serious look at AMPoule to get that out-of-the-box multi-core support.</div>

<div><br></div><div>So the next release 0.0.8 should finish all the content type stuff and then for 0.0.9 should start looking at AMPoule.</div><div><br></div><div>Jacek<br><br><div class="gmail_quote">On Thu, Sep 29, 2011 at 11:22 PM, Glyph Lefkowitz <span dir="ltr">&lt;<a href="mailto:glyph@twistedmatrix.com" target="_blank">glyph@twistedmatrix.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br><div><div>On Sep 29, 2011, at 5:49 PM, Jacek Furmankiewicz wrote:</div>
<br><blockquote type="cite"><span style="border-collapse:separate;font-family:Menlo;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">CorePost 0.0.7, the REST microframework built on top of twisted.web is out.</span><br>

</blockquote></div><br></div><div>Congrats on another quick release, Jacek!</div><div><br></div><div>It seems like your first example doesn&#39;t really need the &#39;dumps&#39; calls - your other features will automatically serialize those objects, right?</div>

<div><br></div><div>I love the automatic MIME-type negotiation on output.  Very cool.</div><div><br></div><font color="#888888"><div>-glyph</div></font></div><br>_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com" target="_blank">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
<br></blockquote></div><br></div>