[Python-ideas] ipaddress: Interface inheriting from Address

Eric V. Smith eric at trueblade.com
Tue Aug 27 15:18:53 CEST 2013


On 08/21/2013 06:55 PM, Jon Foster wrote:
> Hi all,
> 
> I'd like to propose changing ipaddress.IPv[46]Interface to not inherit
> from IPv[46]Address.

<stuff deleted>

I agree that it's odd that an [x]Interface would inherit from an
[x]Address. I think it should be a has-a relationship, as you describe
with the "ip" property.

> If there is interest in this idea, I'll try to put together a patch next
> week.

I'd review the patch.

Eric.




More information about the Python-ideas mailing list