Ma Lin <[email protected]> added the comment:
It seems that people usually use the socket module like this, I think it's safe
to respect this habit:
if hasattr(socket, "FLAG_NAME"):
do_something
If use PR19402, your program will have problem on the older version system, not
only "don't break existing code".
So I think delete-at-runtime is a suitable way.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40060>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com