From 023ac5643de8f66bc6cc10e41676aee160f365da Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 27 Aug 2015 20:10:47 -0400 Subject: Helpful thing for seeing what platform.* gives me --- lab/show_platform.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lab/show_platform.py (limited to 'lab/show_platform.py') diff --git a/lab/show_platform.py b/lab/show_platform.py new file mode 100644 index 00000000..76122d58 --- /dev/null +++ b/lab/show_platform.py @@ -0,0 +1,16 @@ +import platform +import types + +for n in dir(platform): + if n.startswith("_"): + continue + v = getattr(platform, n) + if isinstance(v, types.ModuleType): + continue + if callable(v): + try: + v = v() + n += "()" + except: + continue + print "%30s: %r" % (n, v) -- cgit v1.2.1