[issue34013] Inconsistent SyntaxError for print

2018-06-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related issue that introduced the error message if you would like to take a look at the implementation : https://bugs.python.org/issue30597 Thanks -- nosy: +xtreak ___ Python tracker

[issue33986] asyncio: Typo in documentation: BaseSubprocessTransport -> SubprocessTransport

2018-06-30 Thread Bumsik Kim
Bumsik Kim added the comment: As a note, BaseSubprocessTransport is used for implementation of SubprocessTransport. BaseSubprocessTransport is not exposed outside of the module. -- ___ Python tracker _

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: I've updated the PR to match my current understanding of the situation with Debian 8 and Ubuntu 14.04. -- stage: needs patch -> commit review ___ Python tracker _

[issue34015] doc Add link to Descriptor HowTo Guide in Data Model

2018-06-30 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7647 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34015] doc Add link to Descriptor HowTo Guide in Data Model

2018-06-30 Thread Andrés Delfino
New submission from Andrés Delfino : IMHO, it would be useful to make the Descriptor HowTo Guide more discoverable. As far as I can see, we are not linking to it from anywhere except the HOWTO index. Section 3.3.2.2., "Implementing Descriptors", in "Data Model" seems to be the most appropriate

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
Viktor Kovtun added the comment: `ProcessPoolExecutor as executor is not so popular in real world` - as executor for asyncio -- ___ Python tracker ___ ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
Viktor Kovtun added the comment: What about to check instance of executor and depending on that propagate contextvars or not? As well to raise RuntimeError for ProcessPoolExecutor with provided context? I assume, that ProcessPoolExecutor as executor is not so popular in real world, but I ca

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Yury Selivanov
Yury Selivanov added the comment: As a workaround you can subclass the ThreadPoolExecutor and set it as a default executor. -- ___ Python tracker ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Yury Selivanov
Yury Selivanov added the comment: I considered enabling that, but in the end decided not to. The reason is that it's possible to use a ProcessPoolExecutor with run_in_execuror(), and context cars currently don't support pickling (and probably never will). We can't have a single api that some

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lorenz, welcome! Please sign CLA so we can review and merge this. -- ___ Python tracker ___ ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
Change by Viktor Kovtun : -- keywords: +patch pull_requests: +7645 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: f:\dev\3x>python -m test test_script_helper ... test_script_helper failed f:\dev\3x> git pr 8034 ... Switched to branch 'pr_8034' f:\dev\3x>python -m test test_script_helper ... == Tests result: SUCCESS == -- ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
New submission from Viktor Kovtun : PEP 567 supports copying context into another threads, but for asyncio users each call `run_in_executor` requires explicit context propagation For end users expected behavior that context is copied automatically -- components: asyncio messages: 3208

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Ned Deily
Ned Deily added the comment: nosying Julien -- nosy: +mdk, ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-30 Thread Błażej Michalik
Błażej Michalik added the comment: It was nearly 2 years ago when we needed it, and we avoided the issue by overriding get_names(). I'll have to find the code in which this was used to answer your question. I guess we could've modified the class definition, however weirdly would that look.

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Lorenz Mende
Lorenz Mende added the comment: I confirm the issue too. I am running the tests on a win 10 Ver 1709, clean build. Most likely the issue is caused by the changes from commit fa9a502a387a26ba116840d35ae4a30f672e78ad at test.support.script_helper The function in test was altered to support a di

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Lorenz Mende
Change by Lorenz Mende : -- keywords: +patch pull_requests: +7643 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change is also in 3.6.6, released the same day as 3.7.0. It was done intentionally, without, as far as I know, consulting Python doc users. Users were previously free to select the max line width they wanted. On https://github.com/python/python-docs-th

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2018-06-30 Thread paul j3
paul j3 added the comment: `parse_intermixed_args` was added in v 3.7. https://docs.python.org/3/library/argparse.html#intermixed-parsing https://stackoverflow.com/questions/50916124/allow-positional-command-line-arguments-with-nargs-to-be-seperated-by-a-flag --

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: > I want to deprecate chm because it uses legacy HTML ... Agreed, but not without a replacement. -- ___ Python tracker ___

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2018-06-30 Thread Eryk Sun
Eryk Sun added the comment: Sebastian, the problem in this case is that startupinfo.lpAttributeList['handle_list'] contains the duplicated standard-handle values from the previous call, which were closed and are no longer valid. subprocess.Popen has always modified STARTUPINFO in place, inc

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -7636 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg320777 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -7637 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg320779 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset 6dc57e2a20c5beb99e8bf5eb04cc836d53fa9aee by Tal Einat in branch 'master': bpo-31938: Convert selectmodule.c to Argument Clinic (GH-4265) https://github.com/python/cpython/commit/6dc57e2a20c5beb99e8bf5eb04cc836d53fa9aee -- _

[issue27477] IDLE: Switch search dialogs to ttk widgets, and other refinement

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: By adding 'and other refinements' to the title and discussing them here, I made this an index issue, with dependencies, for search. I am leaving this open as that. #33987 is about adding a ttk frame inside the top window. This is point 2 above. #33987 ha

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread miss-islington
miss-islington added the comment: New changeset e5153d0d404d58e83d802199bea1a8dd0ea5178e by Miss Islington (bot) in branch '3.6': bpo-25862: Fix several bugs in the _io module. (GH-8026) https://github.com/python/cpython/commit/e5153d0d404d58e83d802199bea1a8dd0ea5178e -- __

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread miss-islington
miss-islington added the comment: New changeset dedb28efd84314d899f795e821a3fc27d2f928e7 by Miss Islington (bot) in branch '3.7': bpo-25862: Fix several bugs in the _io module. (GH-8026) https://github.com/python/cpython/commit/dedb28efd84314d899f795e821a3fc27d2f928e7 -- __

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7642 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30660] Lossless Optimization of PNG files

2018-06-30 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +7641 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue30660] Lossless Optimization of PNG files

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: 03:19 $ find . -name '*.png' | xargs optipng -o7 03:20 $ ll **/*.png -rw-r--r-- 1 inada-n staff 2888 7 1 03:20 faq/python-video-icon.png -rw-r--r-- 1 inada-n staff 22058 7 1 03:20 howto/logging_flow.png -rw-r--r-- 1 inada-n staff 11146 7 1 03:20 li

[issue33987] IDLE: add ttk.Frame inside searchbaseToplevel

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The image could have been attached to #27477, but a new issue for a new PR is needed anyway. I will make this a dependency of that issue. I did not at first see the difference in the screen-capture images on my monitor in Firefox with the room lighting and

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: Hmm, I want to deprecate chm because it uses legacy HTML (doesn't support UTF-8!), hard to build, hard to confirm issues -- ___ Python tracker

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +7640 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +7639 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fdb5a50ef34f7951c3b01eb77b1359725a9ad670 by Serhiy Storchaka in branch 'master': bpo-25862: Fix several bugs in the _io module. (GH-8026) https://github.com/python/cpython/commit/fdb5a50ef34f7951c3b01eb77b1359725a9ad670 -- _

[issue34013] Inconsistent SyntaxError for print

2018-06-30 Thread Dong-hee Na
Change by Dong-hee Na : -- components: +Interpreter Core type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue34013] Inconsistent SyntaxError for print

2018-06-30 Thread Dong-hee Na
New submission from Dong-hee Na : Python 3.8.0a0 (heads/master-dirty:0cdf5f4289, Jul 1 2018, 02:30:31) [Clang 9.1.0 (clang-902.0.39.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print "hi" File "", line 1 print "hi" ^ SyntaxError: Mi

[issue30660] Lossless Optimization of PNG files

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: It seems PR author removed his repository and the PR can't be merge via conflict. In master branch: 02:18 $ ll **/*.png -rw-r--r-- 1 inada-n staff 3732 7 1 02:13 faq/python-video-icon.png -rwxr-xr-x 1 inada-n staff 49648 7 1 02:09 howto/logging_flow.

[issue17894] Edits to descriptor howto

2018-06-30 Thread Julian Berman
Julian Berman added the comment: This seems very very slightly overly conversational (specifically the "That's all there is to it" sentence), but overall like a pretty decent improvement here. Personally I'd axe that sentence but then seems like this should be merged as-is and any further i

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: You are exactly right Steve - that is very close to what I am seeing and it is often quite hard to read. For example, where function prototypes are displayed on two lines, it takes me a lot longer to parse and understand them when compared with a situation where th

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: It's pretty annoying when HTML Help doesn't properly handle your screen scaling settings (guessing my new screenshot looks like gladman's). I'd love to have a new HTML Help program for our docs that could handle this better, but there's nothing in the same clas

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: Let's try adding that screenshot again... -- Added file: https://bugs.python.org/file47662/NarrowCHM.png ___ Python tracker ___

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Błażej, why is there a need to attach a function to the cli instance rather than the MyCmd class (which would be the norm for Python)? from cmd import Cmd class MyCmd(Cmd): def do_documented_at_definition(self, arg): """ This o

[issue33991] lib2to3 should parse f-strings

2018-06-30 Thread skreft
skreft added the comment: Note also, that lib2to3 will parse invalid f-strings like f"hello {", whereas ast.parse will raise a SyntaxError exception. See below for reproduction cases: In [2]: lib2to3.tests.support.parse_string('f"hello {"') Out[2]: Node(file_input, [Node(simple_stmt, [Leaf(3

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: I think this is not only chm, but same to all HTML based (online, zipped html, maybe ePub). max-width was added for readability. https://github.com/python/python-docs-theme/issues/4 There are no absolute right answer and there are many personal preferences. But

[issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

2018-06-30 Thread Dong-hee Na
Dong-hee Na added the comment: @ronaldoussoren Hi, Ronald Can I take a look this issue? -- nosy: +corona10 ___ Python tracker ___ ___

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Joseph L. Casale
Change by Joseph L. Casale : -- nosy: +jcasale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34012] No option to include system headers in distutils.core.Extension

2018-06-30 Thread Dan Hemberger
Change by Dan Hemberger : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-30 Thread Błażej Michalik
Błażej Michalik added the comment: Yes, the proposed patch fixes all the problems that I pointed out in the last comment. -- ___ Python tracker ___ ___

[issue34012] No option to include system headers in distutils.core.Extension

2018-06-30 Thread Dan Hemberger
New submission from Dan Hemberger : The distutils.core.Extension class has a constructor argument `include_dirs`, which includes each directory with `-I`. However, it is sometimes desirable to include additional system headers using `-isystem`. Currently, this is only possible by manually con

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: Comparing the basic.css files for the 3.6.5 chm file and the 3.6.6 chm file shows that the latter has the following body style definition that the earlier versions don't have: /* -- general body styles - */ div.body { min-width: 450

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2018-06-30 Thread Sebastian Bank
Sebastian Bank added the comment: AFAIU, this change broke the following usage of subprocess on Windows (re-using a subprocess.STARTUPINFO instance to hide the command window): import os, subprocess STARTUPINFO = subprocess.STARTUPINFO() STARTUPINFO.dwFlags |= subprocess.STARTF_US

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: I agree. I don't think we deliberately changed anything here. Possibly the sphinx theme has some CSS that doesn't work well in IE, so that should be the starting point for someone to look. -- ___ Python tracker

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-30 Thread Steve Dower
Change by Steve Dower : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: I too much prefer the old behaviour since the fixed width is too narrow on my high resolution display -- nosy: +gladman ___ Python tracker ___

[issue33468] Add try-finally contextlib.contextmanager example

2018-06-30 Thread Tal Einat
Tal Einat added the comment: Nick's abstract example LGTM as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The assertion failure can be also caused by setting self->snapshot to NULL when Py_BuildValue() fails due to lack of memory. It is very difficult to reproduce this. PR 8026 fixes this and other difficulty reproducible refcount bugs in the _io module.

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7638 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset db7ac30ef52ce35a4ead1bc1b9f0dd5331ed9779 by Tal Einat in branch '3.6': [3.6] bpo-32568: make select.epoll() and its docs consistent (GH-7840) (GH-8025) https://github.com/python/cpython/commit/db7ac30ef52ce35a4ead1bc1b9f0dd5331ed9779 -- __

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset db7ac30ef52ce35a4ead1bc1b9f0dd5331ed9779 by Tal Einat in branch '3.6': [3.6] bpo-32568: make select.epoll() and its docs consistent (GH-7840) (GH-8025) https://github.com/python/cpython/commit/db7ac30ef52ce35a4ead1bc1b9f0dd5331ed9779 -- __

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset fd1c092bb9fee46d8d543710973c69a0e93a697a by Tal Einat (Miss Islington (bot)) in branch '3.7': bpo-32568: make select.epoll() and its docs consistent (GH-7840) (GH-8024) https://github.com/python/cpython/commit/fd1c092bb9fee46d8d543710973c69a0e93a697a

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset fd1c092bb9fee46d8d543710973c69a0e93a697a by Tal Einat (Miss Islington (bot)) in branch '3.7': bpo-32568: make select.epoll() and its docs consistent (GH-7840) (GH-8024) https://github.com/python/cpython/commit/fd1c092bb9fee46d8d543710973c69a0e93a697a

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +7637 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +7636 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +7635 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg320775 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -7634 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -7450 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +7633 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +7634 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset 0cdf5f42898350261c5ff65d96334e736130780f by Tal Einat in branch 'master': bpo-32568: make select.epoll() and its docs consistent (#7840) https://github.com/python/cpython/commit/0cdf5f42898350261c5ff65d96334e736130780f -- _

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset 0cdf5f42898350261c5ff65d96334e736130780f by Tal Einat in branch 'master': bpo-32568: make select.epoll() and its docs consistent (#7840) https://github.com/python/cpython/commit/0cdf5f42898350261c5ff65d96334e736130780f -- _

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: Removing 3.6 from the affected versions, since we re-arranged these docs a bit for 3.7 to make it clearer which functions could be called prior to initialization, as well as adding more tests for the actual pre-init functionality. Since 3.6 isn't going to cha

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-06-30 Thread Nick Coghlan
Change by Nick Coghlan : -- keywords: +patch pull_requests: +7632 stage: test needed -> patch review ___ Python tracker ___ ___ Pyth

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: At the very least, I think this calls for a documentation change, such that we make it clear that: 1. The expected calling pattern is to call Py_Main() *instead of* Py_Initialize(), since Py_Main() calls Py_Initialize(). 2. If you do call Py_Initialize() firs

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, I've asked Miro to try essentially that in https://bugzilla.redhat.com/show_bug.cgi?id=1595421#c12 My concern is that Py_Main used to keep a *lot* of state on the local C stack that we've now moved into the main interpreter config. So my suspicion is th

[issue33974] _stringify handles quoted strings incorrectly

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

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: Also adding Łukasz to the nosy list, since it was his comment from a few weeks ago on the Travis CI ticket that prompted my "dist: xenial" suggestion. -- nosy: +lukasz.langa ___ Python tracker

[issue33974] _stringify handles quoted strings incorrectly

2018-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9b84cc8771f52e9340ea5b676da9a15359c723b6 by Serhiy Storchaka in branch '2.7': [2.7] bpo-33974: Fix passing special characters to ttk widgets. (GH-7986) (GH-8021) https://github.com/python/cpython/commit/9b84cc8771f52e9340ea5b676da9a15359c723b

[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler

2018-06-30 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-06-30 Thread STINNER Victor
STINNER Victor added the comment: Even if it's ugly, calling Py_Main() after Py_Initialize() works in Python 3.6 by ignoring the new config of Py_Main(). I suggest to do nothing (just return) when Py_Initialize() is called again by Py_Main() in Python 3.7. It would fix the fontforge *regression

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: OK, given the above feedback, the PR I've created isn't right yet, but it at least shows where any information that we can provide on this point will end up. -- stage: patch review -> needs patch ___ Python tracker

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-06-30 Thread Nick Coghlan
Change by Nick Coghlan : -- keywords: +patch pull_requests: +7631 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyth

[issue34007] test_gdb fails in s390x SLES buildbots

2018-06-30 Thread STINNER Victor
STINNER Victor added the comment: In gdb source code, frame_unwind_pc(), I see: else if (this_frame->prev_pc.status == CC_NOT_SAVED) throw_error (OPTIMIZED_OUT_ERROR, _("PC not saved")); -- nosy: +vstinner ___ Python tracker

[issue34011] Default preference not given to venv DLL's

2018-06-30 Thread Jonathan
New submission from Jonathan : I don't know if this is a bug or an odd design decision or just something that hasn't been considered or maybe I'm missing something. On Windows and I create a venv with Python 3.6.3: > python -m venv venv This creates a subdirectory called /venv. Inside this,

[issue33974] _stringify handles quoted strings incorrectly

2018-06-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7629 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-06-30 Thread David MacIver
David MacIver added the comment: > According to > https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-395471575, > setting "dist: xenial" instead (giving Ubuntu 16.04) provides a testing > environment with a new enough OpenSSL for 3.7 to work. No, this doesn't work either. The x

[issue34010] tarfile stream read performance

2018-06-30 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +7628 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34010] tarfile stream read performance

2018-06-30 Thread hajoscher
New submission from hajoscher : Buffer read of large files in a compressed tarfile stream performs poorly. The buffered read in tarfile _Stream is extending a bytes object. It is much more efficient to use a list followed by a join. Using a list can mean seconds instead of minutes. This per

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-06-30 Thread Nick Coghlan
New submission from Nick Coghlan : As noted in https://github.com/travis-ci/travis-ci/issues/9069, Travis CI's Ubuntu 14.04 environment includes an OpenSSL that's too old to meet Python 3.7's security requirements. According to https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: Answering Eric's question about the flag variables though: * pymain_get_global_config copies the global variable flags to their respective struct entries * pymain_set_global_config copies the various struct entries to their respective global variable flags On

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-06-30 Thread Nick Coghlan
Change by Nick Coghlan : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34008] Do we support calling Py_Main() after Py_Initialize()?

2018-06-30 Thread Miro Hrončok
Miro Hrončok added the comment: This hits fontforge. See https://bugzilla.redhat.com/show_bug.cgi?id=1595421 An example of how it should be handled there if 3) is selected would be greatly appreciated. Thanks -- nosy: +hroncok ___ Python tracker

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: I filed https://bugs.python.org/issue34008 to cover the fact that "Py_Initialize(); Py_Main();" doesn't work in 3.7.0 whereas it used to sort of work (by only partially applying the settings read from the CLI and environment by the Py_Main() call). Since "Py_