[issue2742] example code does not work

2009-05-29 Thread Gordon Fogus
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

[issue2742] example code does not work

2008-05-11 Thread Georg Brandl
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

[issue2742] example code does not work

2008-05-10 Thread Simon Cross
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

[issue2742] example code does not work

2008-05-10 Thread Simon Cross
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

[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden
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,

[issue2742] example code does not work

2008-05-02 Thread Martin v. Löwis
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 __