socket module

Nils O. Selåsdal noselasd at frisurf.no
Mon Jul 9 07:52:03 EDT 2001


>"Martin Sjögren" <martin at strakt.com> wrote in message
news:mailman.994663214.5314.python-list at python.org...
>Is there ANY way to use the socket module from a Python module written
in
>C? I mean, sure I could use BSD sockets right away, but that's really
r>einventing the wheel since the Python socket module is a good,
portable
>module (AFAIK).
The socket functions reside in:
/usr/lib/python1.5/lib-dynload/socketmodule.so
Not, if you find and use the appropriate haederfiles, you might use
it..

However BSD sockets are farly portable on unixes, and the python
sockets
are not that diffrent from bsd sockets..

>So, is there any way short of doing a  s/static//g  in socketmodule.c?
No.






More information about the Python-list mailing list