Joseph Godbehere added the comment: Very good point, Serhiy.
Here is an alternative patch, which instead changes Message.is_multipart from a method to a property as per your suggestion. This way incorrect usage should fail noisily. This patch is against the relevant docs, tests, is_multipart and calls to is_multipart only. ---------- Added file: http://bugs.python.org/file36249/multipart_is_property.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21091> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com