This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kiilerix
Recipients kiilerix, pitrou
Date 2012-01-08.18:19:31
SpamBayes Score 1.1454754e-05
Marked as misclassified No
Message-id <4F09DE2F.4060304@kiilerich.com>
In-reply-to <1326044979.3374.27.camel@localhost.localdomain>
Content
> I'm a bit wary of API bloat here.

Yes, but explicit is better than magic ...

> Thanks. So fixing how getpeercert behaves and either raise a dedicated
> error or return None would improve things here, right?

Well ... that would at least make it theoretically possible to claim 
that it works as intended ;-)

A counter argument could be that retrieving the certificate that already 
has been used for negotiation isn't a socket operation. It would make 
sense to be able to look at it even after the socket has been closed. 
 From that point of view _sslobj should be kept "forever".

A return value of None would still not indicate if we had a working 
connection without certificate or a failed connection. That would be 
annoying.

My primary concern with my Mercurial hat on is to get the documentation 
updated so we know how to write code that works correctly also with 
previous Python versions.
History
Date User Action Args
2012-01-08 18:19:32kiilerixsetrecipients: + kiilerix, pitrou
2012-01-08 18:19:31kiilerixlinkissue13721 messages
2012-01-08 18:19:31kiilerixcreate