New submission from Tomas Ravinskas <tomas....@gmail.com>:
runpy accepts Path like objects but open_code seems to only accept strings, so calling open_code with Path object throws TypeError. I think runpy should call str() on all path passed to open_code. The relevant line is 232 in runpy.py in function _get_code_from_file. ---------- components: Library (Lib) messages: 361176 nosy: Tomas Ravinskas priority: normal severity: normal status: open title: runpy calls open_code with Path object type: crash versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39517> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com