Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.python Subject: Re: get_used_memory Date: Sun, 14 Jun 2026 01:28:40 -0700 Organization: A noiseless patient Spider Lines: 5 Message-ID: <87se6p7cg7.fsf@nightsong.com> References: <110fvf3$1tqe3$1@dont-email.me> <8733yq9qov.fsf@nightsong.com> <110kuvc$3a32m$7@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 14 Jun 2026 08:28:40 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3678967"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0bdPk+I4A+3OrmyCtRuyv"; posting-host="b195acac48372fb93617125398a9e5ae" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:iwVuTJUJJBJqXoDInEnHjr6lE2s= sha1:6A5tRRroZyNyPDHpEZ9qkcaUuiA= sha256:w5lEp4ahGycx9kNsXs+i4rG/rYsYQh4EA9PJbuFl+Y8= sha1:jKmwOr9ceHJcWWVHH5jJCCb2x1M= Xref: csiph.com comp.lang.python:197812 Lawrence D’Oliveiro writes: > KeyError: 'MemTotal' Yeah you have to use 'MemTotal:' as the key. But, you still have to convert the digit strings to integers.