[issue39723] io.open_code should accept PathLike objects

2020-02-23 Thread Steve Dower


Steve Dower  added the comment:

Dup of issue39691

As per PEP 578, open_code only accepts an absolute path as a str. The other 
issue will be used to update the docstring.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> Allow passing Pathlike objects to io.open_code

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39723] io.open_code should accept PathLike objects

2020-02-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This seems to be a duplicate of https://bugs.python.org/issue39691

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39723] io.open_code should accept PathLike objects

2020-02-22 Thread SilentGhost


Change by SilentGhost :


--
nosy: +steve.dower
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39723] io.open_code should accept PathLike objects

2020-02-21 Thread Shantanu


Change by Shantanu :


--
keywords: +patch
pull_requests: +17969
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/18602

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39723] io.open_code should accept PathLike objects

2020-02-21 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39723] io.open_code should accept PathLike objects

2020-02-21 Thread Shantanu


New submission from Shantanu :

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')``.

https://github.com/python/cpython/blob/3.8/Modules/_io/_iomodule.c#L510

--
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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com