Artifact 9f35f6020dcda8b901c825b95204a732b86aa8bd:
- File tests/langbench/hash.py — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 233) [annotate] [blame] [check-ins using]
import os import sys import re d = {} for a in sys.argv: f = open(a) for line in f: d[line] = 1 f.close p = re.compile("^Vm[RD]") f = open("/proc/%d/status" % os.getpid()) for line in f: m = p.match(line) if m: print line,