Author Ma Lin
Recipients Dima.Tisnek, Ma Lin, Mariatta, ned.deily, njs, ronaldoussoren
Date 2020-04-07.14:45:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586270754.65.0.121620772153.issue40060@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-07 14:45:54Ma Linsetrecipients: + Ma Lin, ronaldoussoren, ned.deily, njs, Dima.Tisnek, Mariatta
2020-04-07 14:45:54Ma Linsetmessageid: <1586270754.65.0.121620772153.issue40060@roundup.psfhosted.org>
2020-04-07 14:45:54Ma Linlinkissue40060 messages
2020-04-07 14:45:54Ma Lincreate