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/002798.html below:

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

[Python-Dev] Heads up: socket.connect() breakage ahead [Python-Dev] Heads up: socket.connect() breakage aheadGordon McMillan gmcm@hypernet.com
Fri, 24 Mar 2000 17:50:12 -0500
[Guido]
> Someone noticed that socket.connect() and a few related functions
> (connect_ex() and bind()) take either a single (host, port) tuple or
> two separate arguments, but that only the tuple is documented.
> 
> Similar to append(), I'd like to close this gap, and I've made the
> necessary changes.  This will probably break lots of code.

This will indeed cause great wailing and gnashing of teeth. I've 
been criticized for using the tuple form in the Sockets 
HOWTO (in fact I foolishly changed it to demonstrate both 
forms).
 
> Similar to append(), I'd like people to fix their code rather than
> whine -- two-arg connect() has never been documented, although it's
> found in much code (even the socket module test code :-( ).
> 
> Similar to append(), I may revert the change if it is shown to cause
> too much pain during beta testing...

I say give 'em something to whine about.

put-sand-in-the-vaseline-ly y'rs

- Gordon



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