Serhiy Storchaka added the comment: No, if *path* is not bytes, *userhome* shouldn't be converted to bytes. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue15275> _______________________________________