Re: [Numpy-discussion] py3k.os_fspath enforces inconsist rules with python3 os.fspath

2019-01-15 Thread Stuart Reynolds
Was recently already submitted: https://github.com/numpy/numpy/issues/12749 On Tue, Jan 15, 2019 at 8:08 AM Stuart Reynolds wrote: > Will do. > > On Mon, Jan 14, 2019 at 7:10 PM Eric Wieser > wrote: > >> This looks like a bug to me - can you file it on the issue tracker. >> >> Evidently I did n

Re: [Numpy-discussion] py3k.os_fspath enforces inconsist rules with python3 os.fspath

2019-01-15 Thread Stuart Reynolds
Will do. On Mon, Jan 14, 2019 at 7:10 PM Eric Wieser wrote: > This looks like a bug to me - can you file it on the issue tracker. > > Evidently I did not consider python 2 behavior when backporting > `os.fspath` from python 3. > > Eric > > On Mon, 14 Jan 2019 at 16:28 Stuart Reynolds > wrote: >

Re: [Numpy-discussion] py3k.os_fspath enforces inconsist rules with python3 os.fspath

2019-01-14 Thread Eric Wieser
This looks like a bug to me - can you file it on the issue tracker. Evidently I did not consider python 2 behavior when backporting `os.fspath` from python 3. Eric On Mon, 14 Jan 2019 at 16:28 Stuart Reynolds wrote: > After a recent upgrade of numpy (1.13.1 -> 1.6.0), my code is failing > wher

[Numpy-discussion] py3k.os_fspath enforces inconsist rules with python3 os.fspath

2019-01-14 Thread Stuart Reynolds
After a recent upgrade of numpy (1.13.1 -> 1.6.0), my code is failing where I provide unicode objects as filenames. Previously they were allowed. Now that are not, and I *must* provide a (py2) str or bytearray only. # str is OK $ python2.7 -c "from numpy.compat import py3k; print py3k.os_fspath('1