IPV6_MAX_STR_LEN variable
Longest an IPv6 address can be as text: 39 characters, from eight groups of four hex digits plus seven colons.
Signature:
IPV6_MAX_STR_LEN = 39
Remarks
A bound for buffer sizing and validation, not a formatting rule — a compressed address such as ::1 is far shorter, and this package's own output is compressed. It does not cover the IPv4-mapped form (::ffff:255.255.255.255, 45 characters), a scope-zone suffix, or a /prefix.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.