diff options
author | root <root@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-25 12:27:26 +0000 |
---|---|---|
committer | root <root@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-25 12:27:26 +0000 |
commit | 91a850b6d91e76c5450781b1e029c1611ef9f2e7 (patch) | |
tree | 9f93174317fd89a756eda3b3a9b597a0bae1ace1 /example.py | |
parent | dfcf0bfff41f31fd7f75df43e37e2ba7db70b362 (diff) | |
download | python-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-x | example.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()) |