Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment: This leaks one reference every time: os.write(123456, b"b") ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue10383> _______________________________________