[New-bugs-announce] [issue39723] io.open_code should accept PathLike objects

Shantanu report at bugs.python.org
Sat Feb 22 00:43:48 EST 2020

New submission from Shantanu <hauntsaninja at gmail.com>:

Currently io.open_code (added in Python 3.8) only accepts str arguments. As per PEP 519, it should probably also accept PathLike. It might be worth extending it to accept bytes as well, both for convenience and because documentation claims it should be interchangeable with ``open(path, 'rb')``.


components: Library (Lib)
messages: 362446
nosy: hauntsaninja
priority: normal
severity: normal
status: open
title: io.open_code should accept PathLike objects
type: enhancement

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list