socket in python 2.2 vs 2.1

Martin von Loewis loewis at informatik.hu-berlin.de
Thu Feb 21 10:43:31 EST 2002


Ivan Bykov <ivan at kupol.ru> writes:

> Python 2.1: '255.255.255.255' - valid address. And my application
> working is correct.

255.255.255.255 is not a valid IP number (even though Python 2.1
accepts it - it actually looks like a bug in the system's IP stack
which fails to reject this address). Your application works just
because the system fails to check your address correctly. Python 2.2
uses different code to check, thus detects the error.

Just remove the connect call.

Regards,
Martin



More information about the Python-list mailing list