Hi all, 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: https://bitbucket.org/jonfoster/python-ipaddress/commits/all?page=3 The "Interface not inheriting from Address" patch is: https://bitbucket.org/jonfoster/python-ipaddress/commits/146d1ffa832fd0b7269... It depends on some refactoring, which I did in a separate commit: https://bitbucket.org/jonfoster/python-ipaddress/commits/af480dbe385f65da3cf... There are a few other ipaddress patches in that repository, too. I'd appreciate any feedback you have on these. Kind regards, Jon 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:
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.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas