[issue38335] simplify overlaps function in ipaddress.py

Sanjay report at bugs.python.org
Sat Oct 5 08:25:55 EDT 2019


Sanjay <sanjay537 at gmail.com> added the comment:

the version in the patch is less code a or b or c or d becomes a or d

the version in PR is using the subnet_of, supernet_of function because overlap means either a is subnet_of or supernet_of b. So was trying to consolidate the implementation of overlap from 2 to 1.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38335>
_______________________________________


More information about the Python-bugs-list mailing list