A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-March/002787.html below:

[Python-Dev] Heads up: socket.connect() breakage ahead

[Python-Dev] Heads up: socket.connect() breakage aheadbwarsaw@cnri.reston.va.us bwarsaw@cnri.reston.va.us
Fri, 24 Mar 2000 16:53:01 -0500 (EST)
>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

    GvR> You probably meant:

    |   sock.connect(addr)
    |   sock.connect(host, port)
    |   sock.connect((host, port))

    GvR> since (host, port) is equivalent to (addr).

Doh, yes. :)

    GvR> Fred typically directs latex2html to break all sections
    GvR> apart.  It's in the previous section:

I know, I was being purposefully dense for effect :)  Fred, is there
some way to make the html contain a link to the previous section for
the "see above" text?  That would solve the problem I think.

    GvR> This also explains the reason for requiring a single
    GvR> argument: when using AF_UNIX, the second argument makes no
    GvR> sense!

    GvR> Frankly, I'm not sure what do here -- it's more correct to
    GvR> require a single address argument always, but it's more
    GvR> convenient to allow two sometimes.

    GvR> Note that sendto(data, addr) only accepts the tuple form: you
    GvR> cannot write sendto(data, host, port).

Hmm, that /does/ complicate things -- it makes explaining the API more
difficult.  Still, in this case I think I'd lean toward liberal
acceptance of input parameters. :)

-Barry



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4