View Single Post
Old 01-15-2009, 07:27 PM   #88
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by mbovenka
Hm. That didn't work:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Program Files\calibre>calibre-debug -c "import wmi;print reduce(lambda x,y:x+
y, wmi.WMI().Win32_DiskDrive())"
Traceback (most recent call last):
File "debug.py", line 101, in <module>
File "debug.py", line 85, in main
File "<string>", line 1, in <module>
File "<string>", line 1, in <lambda>
TypeError: unsupported operand type(s) for +: 'instance' and 'instance'
Hm... is a good response. Try this:

Code:
calibre-debug -c "import wmi;print reduce(lambda x,y:repr(x)+repr(y), wmi.WMI().Win32_DiskDrive())"
user_none is offline   Reply With Quote