Commit 4cf95695 authored by Fred Drake's avatar Fred Drake

Change the return value of the socket-address data type conversion so that

AF_UNIX addresses can be parsed even on Windows.
This requires code that uses the socket-address values to change.
parent 7d92c0f3
......@@ -382,12 +382,15 @@ The following datatypes are provided by the default type registry.
non-root users.
\term{socket-address}
An address for a socket. The converted value is a pair containing
the address family (\constant{AF_INET} or \constant{AF_UNIX}) in the
first part and the specific address in the second part. If the
family is \constant{AF_UNIX}, the specific address will be a
pathname; if the family is \constant{AF_INET}, the second part will
be the result of the \strong{inet-address} conversion.
An address for a socket. The converted value is an object providing
two attributes. \member{family} specifies the address family
(\constant{AF_INET} or \constant{AF_UNIX}), with \code{None} instead
of \constant{AF_UNIX} on platforms that don't support it. The
\member{address} attribute will be the address that should be passed
to the socket's \method{bind()} method. If the family is
\constant{AF_UNIX}, the specific address will be a pathname; if the
family is \constant{AF_INET}, the second part will be the result of
the \strong{inet-address} conversion.
\term{string}
Returns the input value as a string. If the source is a Unicode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment