diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-01 23:14:17 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-01 23:14:17 +0000 |
commit | c10adcd728be238d8579bf98075a2468f0143cc2 (patch) | |
tree | 4fa1bce13ff08de36ff95023af9356fa29c4c5bd /example.py | |
parent | a7a5cb531b86a75265f106b91d7033e45d754612 (diff) | |
download | python-dmidecode-c10adcd728be238d8579bf98075a2468f0143cc2.tar.gz python-dmidecode-c10adcd728be238d8579bf98075a2468f0143cc2.tar.xz python-dmidecode-c10adcd728be238d8579bf98075a2468f0143cc2.zip |
Brought main() back into the python module and fixed malloc/free problems.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@7 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'example.py')
-rwxr-xr-x | example.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/example.py b/example.py new file mode 100755 index 0000000..c7f0056 --- /dev/null +++ b/example.py @@ -0,0 +1,14 @@ +#!/usr/bin/python + +def l(x): + return len(x) + +import dmidecode, time +print(dir(dmidecode)) + +print "proc", l(dmidecode.processor()) +print "sys", l(dmidecode.system()) +print "bios", l(dmidecode.bios()) +print "proc", l(dmidecode.processor()) +print "sys", l(dmidecode.system()) +print "bios", l(dmidecode.bios()) |