Message150889
> 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. |
|
Date |
User |
Action |
Args |
2012-01-08 18:19:32 | kiilerix | set | recipients:
+ kiilerix, pitrou |
2012-01-08 18:19:31 | kiilerix | link | issue13721 messages |
2012-01-08 18:19:31 | kiilerix | create | |
|