Varun Sharma added the comment:

I have added a patch and it's test case as per martin's suggestions. Now 
function close() resets the attributes :sock, default_port, ehlo_msg, 
ehlo_resp, helo_resp, source_address

But it does *not* reset : debuglevel, does_esmtp,esmtp_features, file, 
local_hostname

I think the attributes does_esmtp, esmtp_features and local_hostname are most 
probably not going to be changed even if someone uses the same object more than 
once.

----------
nosy: +varun
Added file: http://bugs.python.org/file34316/flag_reset_4142.patch

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

Reply via email to