Gordon Fogus gordon.fo...@gmail.com added the comment:
I am having this issue again with python code running under python 2.6.2
compiled from source on May 28, 2009 in CentOS 5.3. The patch in the
socketmodule.diff file does not seem to be applied to the socketmodule.c
file in the current 2.6.2
Georg Brandl [EMAIL PROTECTED] added the comment:
Applied the documentation patch in r63039. Thanks for your efforts!
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2742
Simon Cross [EMAIL PROTECTED] added the comment:
This also affects Python 2.4 and 2.6 on Linux systems. Bug
http://bugs.python.org/issue2763 is a duplicate of this one.
The issue is that socketmodule.c doesn't convert empty strings to NULLs
before passing hptr through to the underlying system
Simon Cross [EMAIL PROTECTED] added the comment:
Attached a patch to correct the getaddrinfo(...) documentation and the
code example in socket.rst.
--
keywords: +patch
Added file:
http://bugs.python.org/file10237/getaddrinfo-doesnt-treat-empty-string-as-none.diff
New submission from Mike MacFaden [EMAIL PROTECTED]:
the url
http://docs.python.org/lib/socket-example.html
gives an example that uses socket.getaddrinfo that has this code
HOST=''
...
for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
socket.SOCK_STREAM, 0,
Martin v. Löwis [EMAIL PROTECTED] added the comment:
What operating system are you using? It could be a bug in the operating
system as well.
--
nosy: +loewis
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2742
__