[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2018-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure what parts of this PR should be backported if either. -- ___ Python tracker ___

[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

2018-11-25 Thread miss-islington
miss-islington added the comment: New changeset af009fbcdb00fffced653792eb7af6b72f2521e3 by Miss Islington (bot) in branch '3.6': bpo-32035: Fix words about strings and bytes in zipfile documentation. (GH-10592)

[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

2018-11-25 Thread miss-islington
miss-islington added the comment: New changeset 89a3087d40feed3ca78033319389437bb4b5bcd7 by Miss Islington (bot) in branch '3.7': bpo-32035: Fix words about strings and bytes in zipfile documentation. (GH-10592)

[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

2018-11-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-25 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9949 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-25 Thread Brian Maissy
Brian Maissy added the comment: I believe the offending line in the source is this break statement: https://github.com/python/cpython/blob/master/Modules/selectmodule.c#L339 -- ___ Python tracker

[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-25 Thread Mike Pagel
Change by Mike Pagel : -- nosy: +mpagel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: Created a PR based on this issue. See: https://github.com/python/cpython/pull/10699 -- nosy: +PedanticHacker ___ Python tracker ___

[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-25 Thread Brian Maissy
New submission from Brian Maissy : If a call to select.select() was interrupted by a signal and the select syscall set an errno of EINTR, then under PEP 475 the select call should be re-executed. If, however, there is a signal handler which takes enough time that the select's timeout

[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-25 Thread Oran Avraham
Change by Oran Avraham : -- keywords: +patch pull_requests: +9951 stage: -> patch review ___ Python tracker ___ ___

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Boštjan Mejak
Change by Boštjan Mejak : -- keywords: +patch pull_requests: +9952 stage: -> patch review ___ Python tracker ___ ___

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +9953 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +9954 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 158695817d736df8b18682866033c87e46252309 by Benjamin Peterson (Boštjan Mejak) in branch 'master': closes bpo-35309: cpath should be capath (GH-10699) https://github.com/python/cpython/commit/158695817d736df8b18682866033c87e46252309

[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-25 Thread Anthony Sottile
Anthony Sottile added the comment: `concurrent.futures` is affected as well: ``` import concurrent.futures class E(Exception): def __init__(self, a1, a2): Exception.__init__(self, '{}{}'.format(a1, a2)) def f(_): raise E(1, 2) with concurrent.futures.ProcessPoolExecutor(2)

[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9955 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35307] Command line help example is missing "--prompt" option

2018-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Would you like to propose a PR for this? I think this is an easy issue where the new help string for --help needs to be updated at https://github.com/python/cpython/blob/master/Doc/using/venv-create.inc -- nosy:

[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-25 Thread Anthony Sottile
New submission from Anthony Sottile : ``` import multiprocessing class E(Exception): def __init__(self, a1, a2): Exception.__init__(self, '{}{}'.format(a1, a2)) def f(_): raise E(1, 2) multiprocessing.Pool(1).map(f, (1,)) ``` Running this causes a hang: ``` $ python3.7

[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset ec13b9322d95a651606219469fc7b7e9c977f248 by Victor Stinner in branch 'master': bpo-35081: Add Include/internal/pycore_tupleobject.h (GH-10705) https://github.com/python/cpython/commit/ec13b9322d95a651606219469fc7b7e9c977f248 --

[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-25 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I noticed GCC related test always failing in Travis but it's optional and builds were always green. It's consistent and related to test_embed. It seems that the tests are ran from a virtual environment for GCC that causes some difference in the

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +9957 stage: -> patch review ___ Python tracker ___ ___

[issue35312] lib2to3.pgen2.parse.ParseError is not roundtrip pickleable

2018-11-25 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +9960 stage: -> patch review ___ Python tracker ___ ___

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset c7074007272f257a0efab76f03e6b400c30a51b4 by Raymond Hettinger (Miss Islington (bot)) in branch '3.7': bpo-35300: Add usage note to the lru_cache() docs (GH-10707) (GH-10708)

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6c12091ca67e8ec2960652ef7a763d0de772f799 by Raymond Hettinger (Miss Islington (bot)) in branch '3.6': bpo-35300: Add usage note to the lru_cache() docs (GH-10707) (GH-10709)

[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9956 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ac6539d85b481fc6b5e9145446b07e591b2caba by Victor Stinner in branch 'master': bpo-35081: Add _PyTuple_CAST() (GH-10704) https://github.com/python/cpython/commit/8ac6539d85b481fc6b5e9145446b07e591b2caba --

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread miss-islington
miss-islington added the comment: New changeset f0e0f2008d160cdd7e5bc02ea61c43f8c7b2b82f by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-35300: Add usage note to the lru_cache() docs (GH-10707)

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +9959 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +9958 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35312] lib2to3.pgen2.parse.ParseError is not roundtrip pickleable

2018-11-25 Thread Anthony Sottile
Change by Anthony Sottile : -- title: lib2to3.pgen2.parser.ParseError is not roundtrip pickleable -> lib2to3.pgen2.parse.ParseError is not roundtrip pickleable ___ Python tracker

[issue35312] lib2to3.pgen2.parser.ParseError is not roundtrip pickleable

2018-11-25 Thread Anthony Sottile
New submission from Anthony Sottile : related to https://bugs.python.org/issue35311 encountered here: https://gitlab.com/pycqa/flake8/issues/473 minimal reproduction: class TestPickleableException(unittest.TestCase): def test_ParseError(self): err = ParseError('msg', 2, None,

[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2018-11-25 Thread Robert Pollak
Robert Pollak added the comment: So my workaround is of course ``` table = pd.read_sql_query('select * from table', con) column_type = pd.read_sql_query('PRAGMA table_info("table")', con)['type'] datetimes = table.columns[column_type == 'DATETIME'] table.loc[:, datetimes] = table.loc[:,

[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists

2018-11-25 Thread Eryk Sun
Eryk Sun added the comment: Path.exists should ignore all OSError exceptions, as os.path.exists does. Barring that, I suppose for Windows we could add EINVAL to IGNORED_ERROS. The problem with ValueError was already addressed in issue 33721. -- components: +Windows nosy: +eryksun,

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 8c1592e53a8981451f59050198da34a584160b4e by Benjamin Peterson (Miss Islington (bot)) in branch '3.6': closes bpo-35309: cpath should be capath (GH-10702) https://github.com/python/cpython/commit/8c1592e53a8981451f59050198da34a584160b4e

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 6a528ccb4c09933c434be1011b2f5e148170d3a1 by Benjamin Peterson (Miss Islington (bot)) in branch '3.7': closes bpo-35309: cpath should be capath (GH-10701) https://github.com/python/cpython/commit/6a528ccb4c09933c434be1011b2f5e148170d3a1