Serhiy Storchaka added the comment: If this issue is not yet closed, here are a patch with few edits: using int.to_bytes/from_bytes instead struct.pack/unpack and using enumerate() instead range(len()).
---------- Added file: http://bugs.python.org/file26620/ipaddress-modernize.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14814> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com