FWIW, that is also the way things are done in the pickle/cPickle
module. dump/dumps and load/loads to differentiate between the file
object and string ways of using that functionality.<br><br><div class="gmail_quote">On Sat, Apr 11, 2009 at 7:41 AM, Chris Withers <span dir="ltr">&lt;<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Nick Coghlan wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Barry Warsaw wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Of course, one could use message.header and message.bythdr and they&#39;d<br>
be the same length.<br>
</blockquote>
I was trying to figure out what  a &#39;thdr&#39; was that we&#39;d want to index<br>
&#39;by&#39; it. :)<br>
</blockquote>
<br>
In the discussions about os.environ, the suggested approach was to just<br>
tack a &#39;b&#39; onto the end of the name to get the bytes version (i.e.<br>
os.environb).<br>
<br>
That aligns nicely with the b&quot;&quot; prefix for bytes literals, and isn&#39;t<br>
much of a typing or reading burden when dealing with the bytes API<br>
instead of the text one.<br>
<br>
A similar naming scheme (i.e. msg.headers and msg.headersb) would<br>
probably work for email as well.<br>
</blockquote>
<br></div>
That just feels nasty though :-(<br>
<br>
Chris<br><font color="#888888">
<br>
-- <br>
Simplistix - Content Management, Zope &amp; Python Consulting<br>
           - <a href="http://www.simplistix.co.uk" target="_blank">http://www.simplistix.co.uk</a></font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/brian.curtin%40gmail.com" target="_blank">http://mail.python.org/mailman/options/python-dev/brian.curtin%40gmail.com</a><br>
</div></div></blockquote></div><br>