R. David Murray added the comment:

"Should" and "do" are different, though.  I wouldn't be at all surprised to 
find legacy code that did look at the text string part of the message.  
Particularly test code, which is a place that smtpd gets used commonly.

Which probably means that what we really need is a keyword argument to the 
SMTPServer constructor (analogous to data_size_limit) that indicates whether or 
not enhanced status codes are enabled, and have it be off by default.  If 
desired, we could then issue a warning that enhanced status codes will be 
enabled by default in 3.6.  That kind of process is our usual 
backward-compatibility dance.  In this particular instance we could go one step 
farther and add a deprecation warning in 3.6 that the ability to set enhanced 
status codes off will go away in 3.7.  If anybody remembers to carry through on 
it :)

----------
versions: +Python 3.5 -Python 3.4

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

Reply via email to