R. David Murray added the comment:

Well, that's why is_attachment exists.  I wouldn't be averse to adding 
get_content_disposition if nobody objects, though.

The attributes are on the headers because the data really is attributes of the 
parsed headers, but the more useful user API is the methods on the message 
object those headers are part of.  Originally I thought the header attributes 
could replace the message object methods, but the more I actually used that 
interface the less I liked it :).  So now I consider them more of an 
implementation or lower-level-of-the-model detail.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21079>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to