From 91a850b6d91e76c5450781b1e029c1611ef9f2e7 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Jul 2008 12:27:26 +0000 Subject: Next phase is to start converting all pure C functions returning `char *' and such to new Pythonized functions returning `PyObject *', to save from having to `PyString_FromString()' and similar, and more importantly, some functions return a long string that could better be represented by a PyDict, PyList etc. This is the first commit of many more to come, converting a `case XX:' at a time, making sure that each commit can actually compile and run. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@21 abc39116-655e-4be6-ad55-d661dc543056 --- example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example.py') diff --git a/example.py b/example.py index f39b2d1..d6f5669 100755 --- a/example.py +++ b/example.py @@ -10,8 +10,8 @@ def l(x): import dmidecode, time #print(dir(dmidecode)) -print "bios\n", l(dmidecode.bios()) -#print "proc\n", l(dmidecode.processor()) +print "bios\n", l(dmidecode.bios()['3.3.1']['data']) +print "proc\n", l(dmidecode.processor()) #print "sys\n", l(dmidecode.system()) #print "bios\n", l(dmidecode.bios()) -- cgit