Roy Williams added the comment:
Ignore my comment re: pathlib, it looks like PathLike is defined in `os` and
not `pathlib`.
--
___
Python tracker
<https://bugs.python.org/issue31
New submission from Roy Williams :
Repro:
```python
from pathlib import Path
import subprocess
subprocess.run([Path('/bin/ls')]) # Works Fine
subprocess.run(Path('/bin/ls')) # Fails
```
The problem seems to originate from here:
https://github.com/python/cpython/blob/mast
Changes by Roy Williams :
--
pull_requests: +2081
___
Python tracker
<http://bugs.python.org/issue30605>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roy Williams added the comment:
Repro:
```
import re
re.compile(br'^(.*?)$(?m)')
```
Results in
```
Traceback (most recent call last):
File "test_compile.py", line 2, in
re.compile(br'^(.*?)$(?m)')
File "/usr/lib/python3.6/re.py", line 233
New submission from Roy Williams:
import re
re.compile(br'^(.*?)$(?m)')
--
components: Regular Expressions
messages: 295473
nosy: Roy Williams, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: re.compile fails when compiling bytes under `-bb` mod
Roy Williams added the comment:
@arp11 sorry for the too-minimal repro :D - the issue is with FileInput
attempting to cast `files` to a tuple. Instead, if passed a PathLike object
FileInput should set `files` to a tuple just as it does with a str
Changes by Roy Williams :
--
pull_requests: +1822
___
Python tracker
<http://bugs.python.org/issue30432>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Roy Williams:
```
from fileinput import FileInput
from pathlib import Path
p = Path('.')
FileInput(p)
```
Results in:
Traceback (most recent call last):
File "", line 1, in
File
"/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/V
Changes by Roy Williams :
--
nosy: +Roy Williams
___
Python tracker
<http://bugs.python.org/issue22294>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roy Williams added the comment:
> What about PYTHON_OPT and allowing to pass any options via an environment > >
> variable? There is a number of precedences (gzip, less, etc).
>
>export PYTHON_OPT="-t -b -3"
I'd be open to this, but it seems like a much
Roy Williams added the comment:
Thanks for the feedback Berker! This is my first CPython patch :D.
Added in a note in pyporting. I actually did a much more detailed write up
here https://gist.github.com/rowillia/c0feed97c1863b2d8e5a3ed73712df65, but it
seems a bit verbose for this document
Roy Williams added the comment:
Thanks for the feedback Berker. I addressed your feedback, but unfortunately I
get a 500 from Rietveld when I try to attach a new patchset. I've uploaded the
new patchset here.
--
___
Python tracker
Changes by Roy Williams :
Added file: http://bugs.python.org/file44947/pythonenable3kwarningsflag.patch
___
Python tracker
<http://bugs.python.org/issue28288>
___
___
Roy Williams added the comment:
Thanks for your support! Here's a patch to enable the `PYTHON3WARNINGS`
environment variable.
--
keywords: +patch
Added file: http://bugs.python.org/file44894/pythonenable3kwarningsflag.patch
___
Python tr
Roy Williams added the comment:
@Brett @Berker In a similar vein, it'd be great to expose the `-b` flag in
Python 3 in a similar manner to test for invalid byte comparisons.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Roy Williams:
I'm finding the `-3` flag to be super useful, but it's quite a huge pain to
thread it through all of the places that spawn python subprocesses, sometimes
requiring forking of third party code.
This would be much simpler if, like PYTH
Changes by Roy Williams :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue28279>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Roy Williams:
Howdy,
I'm attempting to make a change to the mock package in Python (related to
http://bugs.python.org/issue28260), and it appears their CI is broken in Python
3.6 only. The problem appears to originate from setuptools, but this only fails
in Pytho
Roy Williams added the comment:
OK, let's close this issue and I'll ping the TIP thread/this issue again.
On Sun, Sep 25, 2016, 11:16 AM Ned Batchelder
wrote:
>
> Ned Batchelder added the comment:
>
> Roy, the code on GitHub isn't a literal copy of the Python
Roy Williams added the comment:
Hey Antti
My understanding is the version available on PyPi is now a strict backport
of what's in Python 3, so they suggested filling the bug in bugs.python.org
so it can be backported.
http://lists.idyll.org/pipermail/testing-in-python/2016-September/0
New submission from Roy Williams:
I'm finding the -3 flag to be super useful at identifying problems with code
when porting to Python 3. One of the most common failures, however, is
"DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x".
While impl
Changes by Roy Williams :
--
nosy: +Roy Williams
___
Python tracker
<http://bugs.python.org/issue26219>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Roy Williams :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue28260>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Roy Williams:
I am investigating a migration to Python 3, and to facilitate this we are using
the -3 flag as decribed here:
https://docs.python.org/3/howto/pyporting.html#prevent-compatibility-regressions
. When using this flag I encountered
some issues inside of mock
24 matches
Mail list logo