rss.py for win32.

Wojtek Walczak gminick at hacker.pl
Sun Nov 24 07:49:07 EST 2002


Dnia 24 Nov 2002 12:24:35 GMT, Dave Pawson napisał(a):
>>> http://orchard.sourceforge.net/doc/RSS-parser.py
>>> Appears to be *nix only.
>> Why do you think that?  
> Traceback (most recent call last):
>   File "testrss.py", line 8, in ?
>     tc.parse("http://www.python.org/channews.rdf")
>   File "rss.py", line 207, in parse
>     signal.signal(signal.SIGALRM, self._timeout)
> AttributeError: 'module' object has no attribute 'SIGALRM'
> Looks very Un win32 like to me...
> Not dissimilar to *nix C code?

<QUOTATION>
 From: Guido van Rossum <guido at CNRI.Reston.Va.US>
 Subject: Re: Python SIGALRM on WINNT
 Date: 1998/07/17
 Message-ID: <199807171525.LAA24284 at eric.CNRI.Reston.Va.US>#1/1
 Sender: daemon at cwi.nl (0000-Admin(0000))
 References: <35AF471E.263514D0 at graburn.com>
 Organization: CWI, Amsterdam
 Newsgroups: comp.lang.python


> Why isn't SIGALRM supported on the WIN NT version of Python.  I thought
> NT is supposed to be POSIX compliant?

Ha, ha, ha.

There is a "POSIX subsystem" with very limited Posix compliance -- but
you have to choose *either* Posix or Win32 compliance -- guess which
one is more useful :-) For lots of money you can buy a much better 3rd
party Posix subsystem -- but it still has that same problem.

</QUOTATION>

BTW. take a look at asyncore module.

-- 
[ ] gminick (at) underground.org.pl  http://gminick.linuxsecurity.pl/ [ ]
[ "Po prostu lubie poranna samotnosc, bo wtedy kawa smakuje najlepiej." ]



More information about the Python-list mailing list