Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
It is a bug in gitPython. As for adding a new feature, making TemporaryDirectory.__str__() returning just a name, I am not sure that it is needed, and it has drawbacks. If print() for TemporaryDirectory object will output just a directory name, it can create a false assumption that TemporaryDirectory() returns a string. Also, there are problems with bytes paths. You always can use the name attribute, str(td) is not better than td.name. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43039> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com