This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Neil Muller
Recipients Neil Muller, georg.brandl, hodgestar, loewis, mrm
Date 2008-05-10.11:34:57
SpamBayes Score 0.0019240744
Marked as misclassified No
Message-id <1210419299.55.0.16258029817.issue2742@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation says: 

For *host* and *port*, by passing either an empty string or ``None``,
you can pass ``NULL`` to the C API, so the documentation says it should
work.

This doesn't work because PyString_AsString retruns an empty string, not
NULL. The attached patch adds a check in socketmodule.c to fix this for
host and port.

It's highly debatable whether this is better than fixing the
documentation, though.
History
Date User Action Args
2008-05-10 11:34:59Neil Mullersetspambayes_score: 0.00192407 -> 0.0019240744
recipients: + Neil Muller, loewis, georg.brandl, mrm, hodgestar
2008-05-10 11:34:59Neil Mullersetspambayes_score: 0.00192407 -> 0.00192407
messageid: <1210419299.55.0.16258029817.issue2742@psf.upfronthosting.co.za>
2008-05-10 11:34:58Neil Mullerlinkissue2742 messages
2008-05-10 11:34:58Neil Mullercreate