Roundup Robot added the comment:
New changeset f776771ab0ee by Antoine Pitrou in branch 'default':
Issue #21068: The ssl.PROTOCOL* constants are now enum members.
http://hg.python.org/cpython/rev/f776771ab0ee
--
nosy: +python-dev
___
Python tracker
Antoine Pitrou added the comment:
Ok, since this is a low-risk change I've made it anyway.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Anyone else has an opinion on this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21068
___
___
Ethan Furman added the comment:
Looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21068
___
___
Python-bugs-list mailing list
Antoine Pitrou added the comment:
Possibly it should be done for all ssl APIs returning a constant. Are there
others?
There's SSLContext.verify_mode, but it simply mirrors the configuration chosen
by the user.
--
___
Python tracker
New submission from Antoine Pitrou:
Small patch to make PROTOCOL_SSLv23 and friends enum members. Not sure this is
useful.
--
components: Library (Lib)
files: sslproto_enum.patch
keywords: patch
messages: 214865
nosy: christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21068
___
___
Python-bugs-list
Donald Stufft added the comment:
I don't really feel real strongly one way or another about this patch fwiw. Not
sure it makes anything easier but I don't think it makes anything harder either.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
It may be useful in relation with issue20421, since we could then return one of
the enum values (not PROTOCOL_SSLv23, of course).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21068
Donald Stufft added the comment:
Ah, sure it'd probably be useful in that context.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21068
___
___
Giampaolo Rodola' added the comment:
I like this. Possibly it should be done for all ssl APIs returning a constant.
Are there others?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21068
11 matches
Mail list logo