R. David Murray added the comment:

I agree that this would be a good idea, but it is not a bug in the current 
implementation.  The only place imaplib itself uses the cached capabilities is 
*before* login, in the starttls method, and there it refreshes it after 
starttls succeeds.

Although it isn't documented any more than the 'capabilities' attribute is (and 
therefor neither are part of the public API currently), you can call the 
capability command yourself if you need the refreshed capabilities in your own 
code.

Good catch on the bug in the IDLE patch, though.

----------
nosy: +r.david.murray
stage:  -> needs patch
type: behavior -> enhancement
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 
3.5

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

Reply via email to