[issue36863] argparse doesn't like options in the middle of arguments

2019-05-27 Thread paul j3
paul j3 added the comment: This is intended behavior of multi-nargs positionals. The 'one' string is consumed by the 'file' argument, and there's no positional argument left to consume the other strings. The topic was raised and discussed previously https://bugs.python.org/issue14191 -

[issue34993] asyncio.streams.FlowControlMixin should be part of the API

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: FlowControlMixing is a private API class. The class is not intended for the usage outside of asyncio. If you found it useful for you please feel free to copy-paste the class from asyncio sources into your project. The reason is: we want to keep freedom for ch

[issue34993] asyncio.streams.FlowControlMixin should be part of the API

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: #36889 deprecates using FlowXontrolMixin outside of asyncio -- ___ Python tracker ___ ___ Python-

[issue35040] [functools] provide an async-compatible version of functools.lru_cache

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Brett please elaborate. Do you want to incorporate async_lru library into CPython Core? -- ___ Python tracker ___ ___

[issue26270] Support for read()/write()/select() on asyncio

2019-05-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue35279] asyncio uses too many threads by default

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio uses bare concurrent.futures.ThreadPoolExecutor. Tha question is: should asyncio reduce the number of threads in the pool or concurrent.futures should change the default value? -- ___ Python tracker

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread Tal Einat
Tal Einat added the comment: To get the maximum available height, does Tk's wm_maxsize() not work? https://www.tcl.tk/man/tcl8.6/TkCmd/wm.htm#M54 Answering my own question above: No, it gives the total screen height, which doesn't ignore e.g. taskbars. The best way to get the actual availab

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread Andre Roberge
Andre Roberge added the comment: I volunteer to do some testing. In addition to the problem I noted on my computer where the status bar disappeared behind the task bar, I noticed that on my secondary 4k monitor (resolution: 3840 x 2160), clicking Zoom Height resulted in a window stretched only

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: I read again the issue. In short, the Path Configuration is a mess and unusable in some cases :-) I reopen the issue. Handling venv shouldn't be handled by the site module which is optional, but earlier. I guess that venv support was added to site because i

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2019-05-27 Thread Abhilash Raj
Change by Abhilash Raj : -- keywords: +patch pull_requests: +13505 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/13598 ___ Python tracker

[issue1230540] sys.excepthook doesn't work in threads

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset cd590a7cede156a4244e7cac61e4504e5344d842 by Victor Stinner in branch 'master': bpo-1230540: Add threading.excepthook() (GH-13515) https://github.com/python/cpython/commit/cd590a7cede156a4244e7cac61e4504e5344d842 -- ___

[issue2506] Add mechanism to disable optimizations

2019-05-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13506 pull_request: https://github.com/python/cpython/pull/13600 ___ Python tracker ___ __

[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-05-27 Thread STINNER Victor
New submission from STINNER Victor : Python 3.8 got 2 new hooks: sys.unraisablehook and threading.excepthook. It would be interesting to catch these exceptions and display them again in the test summary. I modified the io.IOBase destructor to log close() exception. There are still open issue

[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: References: * bpo-36829: sys.unraisablehook() * bpo-1230540: threading.excepthook() -- ___ Python tracker ___ __

[issue34222] Email message serialization enters an infinite loop when folding non-ASCII headers with long words

2019-05-27 Thread Abhilash Raj
Abhilash Raj added the comment: IMO, this is a duplicate of https://bugs.python.org/issue33529 (which was reported before this one was). I have tested that the fix for bpo-33529 does indeed fix the test case which has been provided above. The Pull Request for bpo-33529 has been merged, so

[issue1230540] sys.excepthook doesn't work in threads

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: It took 14 years, but this issue is now fixed ;-) I close it. Python 3.8 beta 1 will be released in a few days with threading.excepthook(): please test it to ensure that it works as you expected. As a follow-up, I created bpo-37069: "regrtest: log unraisable

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Ok, the initial issue has been fixed by adding a new sys.unraisablehook() function. You can kill the process with SIGABRT using the recipe I proposed there: https://bugs.python.org/issue36829#msg343201 As a follow-up, I created bpo-37069: "regrtest: log unra

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been fixed. As far as I know, all known issues have been fixed, so I close the issue. Thanks Miro for the help in reviews and tests! FYI waf is already fixed for the future Python 3.8 beta1! It now attempts to use --embed for its "pyemb

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Related issue: bpo-37054 "Ignored exceptions in test_memoryio". -- ___ Python tracker ___ ___ Pyt

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13601 ___ Python tracker ___ _

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Antoine: > Or to add `_buffer = None` at the class level. Ok, I wrote bpo-13601 to implement this idea and fix test_memoryio warnings. -- ___ Python tracker ___

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: All we need is `program = os.fspath(program)` in base_events.py subprocess_exec() method. Is anybody volunteered to make a patch (with test and docs update, sure)? -- ___ Python tracker

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset df9b032f47e4edaf306d95449370e565ee470018 by Terry Jan Reedy in branch 'master': bpo-37039: IDLE - zoomheight fixes (GH-13576) https://github.com/python/cpython/commit/df9b032f47e4edaf306d95449370e565ee470018 -- ___

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, please go ahead after updating your repository. I just merged PR 13576 after reverting the change from 72 to 114 that only works for me and adding Skip News. Include a blurb with your patch. It only needs to include something like "Fix zoom height cal

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +13508 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13602 ___ Python tracker ___ ___

[issue33725] Python crashes on macOS after fork with no exec

2019-05-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13509 pull_request: https://github.com/python/cpython/pull/13603 ___ Python tracker ___ __

[issue33725] Python crashes on macOS after fork with no exec

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: I don't see a clear consensus to switch to spawn on *all* platforms, so I wrote PR 13603 which is the minimum fix: switch to spawn by default, but only on macOS. If this PR is merged, I understand that it should be applied to 2.7 and 3.7 branches as well.

[issue36782] Add tests for the datetime C API

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Paul Ganssle is in favor of backporting new tests to Python 3.7: https://github.com/python/cpython/pull/13088#issuecomment-493591633 But automated backports failed with a conflict. If someone wants to backport it manually, please go ahead! In the meanwhile,

[issue33919] Expose _PyCoreConfig structure to Python

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: So far, there is no clear agreement to expose C PyConfig structure in Python, so I close the issue. My PEP 587 has been accepted. I chose to not expose PyConfig in Python in the PEP. But I'm open to revisit this idea later, especially to move towards PEP 43

[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: > time.clock() marked for removal in 3.8 – still there. Nope, it's now gone :-) I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36891] Additional startup plugin for vendors

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: I dislike the proposed feature. site already allows sitecustomize and usercustomize. If you distribute Python, you can modify site.py anyway. I suggest to close (reject) this feature. -- ___ Python tracker

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset a3568417c49f36860393075b21c93996a5f6799b by Victor Stinner in branch 'master': bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601) https://github.com/python/cpython/commit/a3568417c49f36860393075b21c93996a5f6799b -- _

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +13510 pull_request: https://github.com/python/cpython/pull/13604 ___ Python tracker ___ __

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2019-05-27 Thread Ryan Govostes
Ryan Govostes added the comment: Thanks Michael for all of the examples. After reading them all, I concur that "it can be hard to conceptualize what the exact behavior should be." A documentation change is warranted, at the least. However the argparse documentation, while great, is dense and

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread miss-islington
miss-islington added the comment: New changeset abdda3ae2a19326bb10bb6e54400c5d3a904b742 by Miss Islington (bot) in branch '3.7': bpo-37039: IDLE - zoomheight fixes (GH-13576) https://github.com/python/cpython/commit/abdda3ae2a19326bb10bb6e54400c5d3a904b742 -- nosy: +miss-islington

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: I looked at at recent PR. It's getting better. "Test code coverage (C)" fails with: == ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) ---

[issue36856] faulthandler._stack_overflow doesn't work on x86-linux with KPTI enabled

2019-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +13511 pull_request: https://github.com/python/cpython/pull/13605 ___ Python tracker ___ __

[issue34791] xml package does not obey sys.flags.ignore_environment

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: It's now fixed in all branches, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-27 Thread miss-islington
miss-islington added the comment: New changeset f0d4c64019ecf8a5f362aa5a478786241613e5c3 by Miss Islington (bot) (sbstp) in branch 'master': bpo-36686: Improve the documentation of the std* params in loop.subprocess_exec (GH-13586) https://github.com/python/cpython/commit/f0d4c64019ecf8a5f36

[issue36843] AIX build fails with failure to get random numbers

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. Maybe contact Michael Felt to get help to debug your issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError [now need unit test]

2019-05-27 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue36809] Crash for test test_importlib

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: > Hi Furzoom. Would you mind to provide more info about what you are trying to > do? What is your operating system? How did you download Python? How did you > compile Python? What is your operating system? Can you show the command that > you used to run test

[issue26423] Integer overflow in wrap_lenfunc() on 64-bit build of Windows with len > 2**31-1

2019-05-27 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +13512 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13606 ___ Python tracker ___

[issue2506] Add mechanism to disable optimizations

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 13600 which is based PR 9693, but more complete and up to date. -- ___ Python tracker ___ __

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread miss-islington
miss-islington added the comment: New changeset 0f352d44e7c14c1c93e3999402c85512b9d5a6ca by Miss Islington (bot) in branch '3.7': bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601) https://github.com/python/cpython/commit/0f352d44e7c14c1c93e3999402c85512b9d5a6ca --

[issue36856] faulthandler._stack_overflow doesn't work on x86-linux with KPTI enabled

2019-05-27 Thread miss-islington
miss-islington added the comment: New changeset 1062cf71faa14b90185cf159877083910df10f27 by Miss Islington (bot) in branch '3.7': bpo-36856: Handle possible overflow in faulthandler_stack_overflow (GH-13205) https://github.com/python/cpython/commit/1062cf71faa14b90185cf159877083910df10f27 -

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report Antoine. It is now fixed in 3.7 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36856] faulthandler._stack_overflow doesn't work on x86-linux with KPTI enabled

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks Xi Ruoyao, I applied your fix to 3.7 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-27 Thread Simon Bernier St-Pierre
Change by Simon Bernier St-Pierre : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue37070] Clean up f-string debug handling, including potential memory leaks

2019-05-27 Thread Eric V. Smith
New submission from Eric V. Smith : This addresses a few issues Serhiy found in the review for issue 37050 at https://github.com/python/cpython/pull/13597. Patch to follow. -- assignee: eric.smith components: Interpreter Core messages: 343722 nosy: eric.smith, serhiy.storchaka priority

[issue36891] Additional startup plugin for vendors

2019-05-27 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue36891] Additional startup plugin for vendors

2019-05-27 Thread Inada Naoki
Inada Naoki added the comment: I closed this because this proposal is not discussed well in conda community. See https://github.com/python/cpython/pull/13246#issuecomment-492447317 -- ___ Python tracker

[issue37070] Clean up f-string debug handling, including potential memory leaks

2019-05-27 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +13513 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13607 ___ Python tracker ___ __

[issue37003] ast unparse does not support f-string new debug format.

2019-05-27 Thread Eric V. Smith
Eric V. Smith added the comment: mbussonn: can you re-check this in light of the changes for issue37050? I'm not sure if there's still a problem that needs fixing or not. -- ___ Python tracker _

[issue37071] HTMLParser mistakenly inventing new tags while parsing

2019-05-27 Thread Hoang Duy Tran
New submission from Hoang Duy Tran : I have been working with some 'difficult' HTML files generated by Sphinx's RST. The following block of text is the RST original content: Animation Playback Options == ``-a``

[issue37003] ast unparse does not support f-string new debug format.

2019-05-27 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I believe all is fine now. Thanks ! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue37072] PyNode_Compile() crashes in Python 3.8.

2019-05-27 Thread Graham Dumpleton
New submission from Graham Dumpleton : The code: #include int main(int argc, char *argv[]) { FILE *fp = NULL; PyObject *co = NULL; struct _node *n = NULL; const char * filename = "/dev/null"; Py_Initialize(); fprintf(stderr, "START\n"); fp = fopen(filename, "r")

[issue37072] PyNode_Compile() crashes in Python 3.8.

2019-05-27 Thread Graham Dumpleton
Graham Dumpleton added the comment: FWIW, this was occurring on macOS. Not been able to test on other platforms. -- type: -> crash ___ Python tracker ___

[issue36520] Email header folded incorrectly

2019-05-27 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +13514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13608 ___ Python tracker __

[issue36520] Email header folded incorrectly

2019-05-27 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- pull_requests: +13515 pull_request: https://github.com/python/cpython/pull/13610 ___ Python tracker ___ ___

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-27 Thread lilydjwg
lilydjwg added the comment: > All we need is `program = os.fspath(program)` in base_events.py > subprocess_exec() method. I don't think so. The arguments could be `pathlib.Path` too. We can update the `isinstance(arg, (str, bytes))` check so the args pass on to `subprocess.Popen`. It will w

[issue36520] Email header folded incorrectly

2019-05-27 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The pull request has been submitted with both the code fix and tests. -- ___ Python tracker ___ __

[issue36596] tarfile module considers anything starting with 512 bytes of zero bytes to be a valid tar file

2019-05-27 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I recommend closing this issue since the behavior is the same as the BSD and GNU tar utilities. -- type: -> behavior ___ Python tracker

[issue36839] Support the buffer protocol in code objects

2019-05-27 Thread Inada Naoki
Inada Naoki added the comment: I don't like this. It removes guarantee that code object is constant / immutable. > Because the code objects are on random pages and are ref counted the ref > counts can cause all of the code to not be shared across processes. These ref counts are not increment

[issue35070] test_posix fails on macOS 10.14 Mojave

2019-05-27 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35279] asyncio uses too many threads by default

2019-05-27 Thread Inada Naoki
Inada Naoki added the comment: Current default value is decided in here: https://bugs.python.org/review/21527/#ps11902 It seems there were no strong reason for current cpu_count * 5. I think cpu_count + 4 is better default value, because: * When people are using threadpool for CPU heavy job w

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-27 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37071] HTMLParser mistakenly inventing new tags while parsing

2019-05-27 Thread SilentGhost
Change by SilentGhost : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue37036] Iterating a text file by line should not implicitly disable tell

2019-05-27 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37029] PyObject_Free is O(N) where N = # of arenas

2019-05-27 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +13516 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13612 ___ Python tracker ___ _

[issue37029] PyObject_Free is O(N) where N = # of arenas

2019-05-27 Thread Tim Peters
Tim Peters added the comment: Created a PR and assigned myself to this bug. -- assignee: -> tim.peters ___ Python tracker ___ ___

[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2019-05-27 Thread Carl Meyer
Carl Meyer added the comment: Making `source_to_code` a staticmethod on the `InspectLoader` abc but not in the `importlib.machinery` implementation causes awkwardness for anyone trying to inherit `SourceFileLoader` and override `source_to_code` in typechecked code, since typeshed assumes tha

[issue37067] os.execl doesn't allow for empty string in mac

2019-05-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: Which exact python version did you test? The current codebase raises this exception on all platforms, not just macOS (see os_execv_impl in Modules/posixmodule.c) The behaviour of raising an exception was introduced in issue 28732 for Windows, not sure whe

<    1   2