summaryrefslogtreecommitdiffstats
path: root/example.py
diff options
context:
space:
mode:
authorroot <root@abc39116-655e-4be6-ad55-d661dc543056>2008-07-25 12:27:26 +0000
committerroot <root@abc39116-655e-4be6-ad55-d661dc543056>2008-07-25 12:27:26 +0000
commit91a850b6d91e76c5450781b1e029c1611ef9f2e7 (patch)
tree9f93174317fd89a756eda3b3a9b597a0bae1ace1 /example.py
parentdfcf0bfff41f31fd7f75df43e37e2ba7db70b362 (diff)
downloadpython-dmidecode-91a850b6d91e76c5450781b1e029c1611ef9f2e7.tar.gz
python-dmidecode-91a850b6d91e76c5450781b1e029c1611ef9f2e7.tar.xz
python-dmidecode-91a850b6d91e76c5450781b1e029c1611ef9f2e7.zip
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
Diffstat (limited to 'example.py')
-rwxr-xr-xexample.py4
1 files changed, 2 insertions, 2 deletions
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())