Closed GoogleCodeExporter closed 8 years ago
thanks.. :-) there are a few more functions that are not supported under
Windows. I guess CPython also throws an unimplemented exception here? we really
should try to follow CPython as closely as possible, so for example, if it
returns bogus values here, we should do that too.
Original comment by mark.duf...@gmail.com
on 10 Nov 2010 at 9:21
CPython on Cygwin returns
$ python testgetloadavg.py
Traceback (most recent call last):
File "testgetloadavg.py", line 2, in <module>
avgs = os.getloadavg()
AttributeError: 'module' object has no attribute 'getloadavg'
Same thing happens with CPython 2.6 on Windows, without Cygwin.
That's consistent with the documentation, which says "Availablity: UNIX".
It's not a very useful function. The problem is that importing the "os" module
produces a linker error on Cygwin, even if this function isn't being used. So
just making the definition of the function conditional on platform is
consistent.
Original comment by na...@animats.com
on 11 Nov 2010 at 6:12
this issue was marked as an 'easy task' in the wiki section.
Original comment by mark.duf...@gmail.com
on 14 Nov 2010 at 12:00
note that the new windows version for 0.7 (packaged with mingw) does not have
this problem.
Original comment by mark.duf...@gmail.com
on 11 Dec 2010 at 10:57
okay, decided to raise a NotImplementedError for cygwin here, as you suggest.
thanks!
Original comment by mark.duf...@gmail.com
on 22 Jul 2011 at 6:45
Original issue reported on code.google.com by
na...@animats.com
on 10 Nov 2010 at 3:46