[Python-3000] Last minute C API fixes
M.-A. Lemburg
mal at egenix.com
Thu Aug 7 21:18:53 CEST 2008
On 2008-08-07 21:01, M.-A. Lemburg wrote:
> On 2008-08-07 21:00, Guido van Rossum wrote:
>> On Thu, Aug 7, 2008 at 11:57 AM, M.-A. Lemburg <mal at egenix.com> wrote:
>>> On 2008-08-07 19:09, Guido van Rossum wrote:
>>>> Sounds like a plan. Make sure it is prominently mentioned in Misc/NEWS.
>>> Committed as r65582.
>>
>> Thanks!
>>
>>> All tests pass except test_socket, but that appears to be related
>>> to some quirk on my machine:
>>>
>>> File "Lib/test/test_socket.py", line 365, in testGetServBy
>>> eq(socket.getservbyport(port2), service)
>>> socket.error: port/proto not found
>>
>> I saw this fail earlier today, but now I can't repro it. What
>> OS+hardware?
>
> x64 machine running openSUSE 10.3.
Here's a manual run:
>>> import socket
>>> socket.getservbyport(13)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
socket.error: port/proto not found
Looking at an strace, the socket C call is trying to access nscd.
Switching off nscd results in this:
>>> import socket
>>> socket.getservbyport(13)
'daytime'
So it's really not related to Python in any way.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Aug 07 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-3000
mailing list