[issue2353] Use of file.xreadlines() should raise a Py3K warning

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: I should note that test_normalization fails with or without the patch, so no change __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2353] Use of file.xreadlines() should raise a Py3K warning

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: Since file() is removed from 3k, this error message tries to be as generic as possible. We should also warn on any use of file() instead of open() Also, all tests have passed except test_normalization -- keywords: +patch Adde

[issue2353] Use of file.xreadlines() should raise a Py3K warning

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: I'm on it... -- nosy: +douglas __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2353> __ _

[issue2350] Warn against importing 'exceptions'

2008-03-17 Thread Douglas Mayle
Douglas Mayle <[EMAIL PROTECTED]> added the comment: I ran python through a debugger and found that the exceptions module is imported automatically at load time. Because of this, when "import exceptions" is parsed, the module is already loaded, and PyImport_Import is not call

[issue1958] IPv6 compiled getaddrinfo returns IPv6 address even if the system does not support IPv6

2008-01-28 Thread Douglas Mayle
Douglas Mayle added the comment: Martin's hypothesis is confirmed, removing ::1 from /etc/hosts removes the response __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1958] IPv6 compiled getaddrinfo returns IPv6 address even if the system does not support IPv6

2008-01-28 Thread Douglas Mayle
Douglas Mayle added the comment: Please close this as invalid, the system C library returns the same response... __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1958] IPv6 compiled getaddrinfo returns IPv6 address even if the system does not support IPv6

2008-01-28 Thread Douglas Mayle
New submission from Douglas Mayle: The following code calls getadddrinfo and returns invalid addresses (IPv6 addresses) when Python has been compiled with IPv6 support and the system kernel does not support IPv6. import socket for res in socket.getaddrinfo("localhost"