Message269986
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. |
|
Date |
User |
Action |
Args |
2016-07-08 11:09:38 | socketpair | set | recipients:
+ socketpair, pmoody, docs@python, ThiefMaster |
2016-07-08 11:09:38 | socketpair | set | messageid: <1467976178.71.0.482056820263.issue27269@psf.upfronthosting.co.za> |
2016-07-08 11:09:38 | socketpair | link | issue27269 messages |
2016-07-08 11:09:38 | socketpair | create | |
|