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 socketpair
Recipients ThiefMaster, docs@python, pmoody, socketpair
Date 2016-07-08.11:09:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467976178.71.0.482056820263.issue27269@psf.upfronthosting.co.za>
In-reply-to
Content
Also, it should be marked explicitly, if cross-type lookup is safe. I mean code like that:

    some_net = ipaddress.ip_network(some_input1)
    some_addr = ipaddress.ip_address(some_input2)
    return some_addr in some_net

Is it safe to write such code? Docs say:

    21.28.2.3. Operators
    Address objects support some operators. Unless stated otherwise,
    operators can only be applied between compatible objects
    (i.e. IPv4 with IPv4, IPv6 with IPv6).

1. It is not said if exception will be raised if incompatible objects are used, and not said if result is defined.
2. "Unless stated otherwise" - Seem it is stated nowhere.
History
Date User Action Args
2016-07-08 11:09:38socketpairsetrecipients: + socketpair, pmoody, docs@python, ThiefMaster
2016-07-08 11:09:38socketpairsetmessageid: <1467976178.71.0.482056820263.issue27269@psf.upfronthosting.co.za>
2016-07-08 11:09:38socketpairlinkissue27269 messages
2016-07-08 11:09:38socketpaircreate