Jörn Heissler <launch...@joern.heissler.de> added the comment: > Maybe add a special purposed named constructor IPv4Address.from_bytes() that > will accept any objects supporting the buffer protocol?
That would work for me. I wonder if there should be something like ipaddress.ip_address_from_bytes too that can construct IPv4Adress or IPv6Address. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34465> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com