After looking at ipaddress some more, I've got a few patches to suggest. I've pushed them all to a Mercurial repository which you can see here:
The "Interface not inheriting from Address" patch is:
It depends on some refactoring, which I did in a separate commit:
There are a few other ipaddress patches in that repository, too. I'd appreciate any feedback you have on these.
P.S. I have just signed a Contributor Agreement.
On 27/08/2013 14:18, Eric V. Smith wrote:
On 08/21/2013 06:55 PM, Jon Foster wrote:
I'd like to propose changing ipaddress.IPvInterface to not inherit from IPvAddress.
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.
Python-ideas mailing list Pythonemail@example.com http://mail.python.org/mailman/listinfo/python-ideas