[issue32561] Add API to io objects for non-blocking reads/writes

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I suggest to close the issue and move the discussion to a place to discuss asynchronous ideas. I'm sorry, but I don't understand what it is proposed here. I understand that Nathaniel wants to add something like a new "asynchronous" mode in the io module

[issue38429] Failed to compile with --enable-framework on macOS on master

2019-10-10 Thread Haruka Ma
New submission from Haruka Ma : Since commit https://github.com/python/cpython/commit/c02b41b1fb115c87693530ea6a480b2e15460424 , some syntax errors are preventing cpython from compiling with --enable-framework on. Specifically, the errors are in Modules/getpath.c on line 1134 and 1165.

[issue32561] Add API to io objects for non-blocking reads/writes

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: The Linux kernel 5.1 also got a new "io_uring" for asynchronous I/O: "Ringing in a new asynchronous I/O API" https://lwn.net/Articles/776703/ Linux 5.2: "The io_uring mechanism has a new operation, IORING_OP_SYNC_FILE_RANGE, which performs the equivalent of

[issue38428] Can't gracefully ctrl+C multiprocessing pool on Python3 & Windows

2019-10-10 Thread Rebecca Fair
Rebecca Fair added the comment: Sorry, I didn't realise it wouldn't link to a commit automatically, the commit is here: https://github.com/python/cpython/commit/7c3e5773954009d65520eb063621cf7724da88e3 -- ___ Python tracker

[issue13322] The io module doesn't support non-blocking files

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: TextIOWrapper, and maybe also BufferedRead, may raise an exception if the underlying file descriptor is configured in non-blocking mode. It may require an additional syscall() to query the FD properties, which may slowdown the creation of file objects in

[issue38428] Can't gracefully ctrl+C multiprocessing pool on Python3 & Windows

2019-10-10 Thread Rebecca Fair
New submission from Rebecca Fair : I want to be able to Ctrl+C to exit a multiprocessing Pool.map gracefully, and have made a solution based on this Stack Overflow answer: https://stackoverflow.com/questions/11312525/catch-ctrlc-sigint-and-exit-multiprocesses-gracefully-in-python However,

[issue32561] Add API to io objects for non-blocking reads/writes

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: > Background: Doing I/O to files on disk has a hugely bimodal latency. If the > I/O happens to be in or going to cache (either user-space cache, like in > io.BufferedIOBase, or the OS's page cache), then the operation returns > instantly (~1 µs) without

[issue13322] The io module doesn't support non-blocking files

2019-10-10 Thread STINNER Victor
Change by STINNER Victor : -- components: -Documentation, IO title: buffered read() and write() does not raise BlockingIOError -> The io module doesn't support non-blocking files versions: +Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python

[issue13322] buffered read() and write() does not raise BlockingIOError

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-32561: Add API to io objects for non-blocking reads/writes. -- ___ Python tracker ___

[issue13322] buffered read() and write() does not raise BlockingIOError

2019-10-10 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13322] buffered read() and write() does not raise BlockingIOError

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-24560 as a duplicate of this issue: codecs.StreamReader doesn't work with nonblocking streams: TypeError: can't concat bytes to NoneType. -- ___ Python tracker

[issue24560] codecs.StreamReader doesn't work with nonblocking streams: TypeError: can't concat bytes to NoneType

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I close this issue as a duplicate of bpo-13322. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> buffered read() and write() does not raise BlockingIOError ___ Python tracker

[issue13322] buffered read() and write() does not raise BlockingIOError

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-26292 as a duplicate of this issue: Raw I/O writelines() broken for non-blocking I/O. -- ___ Python tracker ___

[issue26292] Raw I/O writelines() broken for non-blocking I/O

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I close this issue as duplicate of bpo-13322 which is older and has a longer history. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> buffered read() and write() does not raise BlockingIOError

[issue13322] buffered read() and write() does not raise BlockingIOError

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-35762 as a duplicate of this issue: subprocess.Popen with universal_newlines and nonblocking streams fails with "can't concat NoneType to bytes". -- nosy: +vstinner ___ Python tracker

[issue35762] subprocess.Popen with universal_newlines and nonblocking streams fails with "can't concat NoneType to bytes"

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I close this issue as a duplicate of bpo-13322 which is older and has a longer history. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> buffered read() and write() does not raise BlockingIOError

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou: "... I'm against this change ..." Martin Panter: "... But this seems unreasonable to me. ..." I close the issue. You can use asyncio for non-blocking networking code. Or have a look at Twisted, Tornado, eventlet, etc. If you really want to

[issue38417] Add support for settting umask in subprocess children

2019-10-10 Thread Christian Heimes
Christian Heimes added the comment: Changed in version 3.8: The preexec_fn parameter is no longer supported in subinterpreters. The use of the parameter in a subinterpreter raises RuntimeError. The new restriction may affect applications that are deployed in mod_wsgi, uWSGI, and other

[issue38417] Add support for settting umask in subprocess children

2019-10-10 Thread Christian Heimes
Christian Heimes added the comment: preexec_fn does not work in subinterpreters, which (amongst others) affects mod_wsgi and similar WSGI implementations. Therefore portable software must not use preexec_fn at all. -- ___ Python tracker

[issue38416] test_largefile.TestSocketSendfile.test_it() failed with 15 min timeout on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I changed AMD64 FreeBSD 10-STABLE timeout from 15 to 30 minutes. https://github.com/python/buildmaster-config/commit/c3fe0b1b65d94c1150521dda4daba02775dc -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue38425] Remove warning: ‘res’ may be used uninitialized in this function

2019-10-10 Thread miss-islington
miss-islington added the comment: New changeset d27a9b1695a1b46c81b3a83a7a35034791265d89 by Miss Islington (bot) in branch '3.7': bpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688) https://github.com/python/cpython/commit/d27a9b1695a1b46c81b3a83a7a35034791265d89 --

[issue38425] Remove warning: ‘res’ may be used uninitialized in this function

2019-10-10 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38417] Add support for settting umask in subprocess children

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: > We should not provide such an "run arbitrary python code before execing the > ultimate child" feature in the standard library. Do you want to modify _posixsubprocess to call umask() between fork() and exec()? As it has been done for uid, gid and groups:

[issue38425] Remove warning: ‘res’ may be used uninitialized in this function

2019-10-10 Thread miss-islington
miss-islington added the comment: New changeset 6b6935e563562c427d5bb1b2864d6a2fed0e74fa by Miss Islington (bot) in branch '3.8': bpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688) https://github.com/python/cpython/commit/6b6935e563562c427d5bb1b2864d6a2fed0e74fa --

[issue38417] Add support for settting umask in subprocess children

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: pylint emits a warning on subprocess.Popen(preexec_fn=func): W1509: Using preexec_fn keyword which may be unsafe in the presence of threads (subprocess-popen-preexec-fn) But not when using subprocess.run(preexec_fn=func). Maybe a check is missing in

[issue38416] test_largefile.TestSocketSendfile.test_it() failed with 15 min timeout on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-10-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Another approach is to change the timeout of 15 min for this super slow > buildbot. For example, set it to 20 min or 30 min. I think this makes more sense (set timeout to 25 min). -- ___ Python tracker

[issue38417] Add support for settting umask in subprocess children

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: > Another use of the deprecated unsafe preexec_fn was to call os.umask in the > child prior to exec. What do you mean by "deprecated"? The parameter doesn't seem to be deprecated in the documentation:

[issue37677] Seg Fault on OSX when multiprocessing

2019-10-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: Looking at the stack trace this is a similar issue as the "no_proxy" one, but in some sense worse because it happens when just calling a regular unix API (not an Apple framework API). The first few lines of the stack trace are for code in the "Network"

[issue38426] declare visit_validate in Py_DEBUG macro

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report. It's now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36339] test_ttk_guionly: test_traversal() fails randomly on AMD64 Windows8.1 Refleaks 2.7

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: Recent failure: The Buildbot has detected a failed build on builder AMD64 Windows8.1 Refleaks 2.7 while building Python. Full details are available at: https://buildbot.python.org/all/#builders/33/builds/726 --

[issue38425] Remove warning: ‘res’ may be used uninitialized in this function

2019-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +16279 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16693 ___ Python tracker ___

[issue38425] Remove warning: ‘res’ may be used uninitialized in this function

2019-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +16280 pull_request: https://github.com/python/cpython/pull/16694 ___ Python tracker ___

[issue38425] Remove warning: ‘res’ may be used uninitialized in this function

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset a05fcd3c7adf6e3a0944da8cf80a3346882e9b3b by Victor Stinner (Dong-hee Na) in branch 'master': bpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688) https://github.com/python/cpython/commit/a05fcd3c7adf6e3a0944da8cf80a3346882e9b3b

[issue38417] Add support for settting umask in subprocess children

2019-10-10 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38109] Missing constants in Lib/stat.py

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: Ronan Lamy: Hum, do you really need this change to land in Python 3.7 and 3.8? If not, I will close PR 16690 and PR 16691 backports. I don't think that it's worth it, since _stat should be always present in CPython. --

[issue38109] Missing constants in Lib/stat.py

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7bb14316b8ceddb813f31040a299af94a57ab339 by Victor Stinner (Ronan Lamy) in branch 'master': bpo-38109: Add missing constants to Lib/stat.py (GH-16665) https://github.com/python/cpython/commit/7bb14316b8ceddb813f31040a299af94a57ab339

[issue38109] Missing constants in Lib/stat.py

2019-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +16277 pull_request: https://github.com/python/cpython/pull/16690 ___ Python tracker ___

[issue38109] Missing constants in Lib/stat.py

2019-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +16278 pull_request: https://github.com/python/cpython/pull/16691 ___ Python tracker ___

[issue38392] Ensure that objects entering the GC are valid

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset a5447735c334a041ee2ffdeb5c7e13d7d4502ea2 by Victor Stinner in branch 'master': bpo-38392: Only declare visit_validate() if Py_DEBUG is defined (GH-16689) https://github.com/python/cpython/commit/a5447735c334a041ee2ffdeb5c7e13d7d4502ea2

[issue38426] declare visit_validate in Py_DEBUG macro

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset a5447735c334a041ee2ffdeb5c7e13d7d4502ea2 by Victor Stinner in branch 'master': bpo-38392: Only declare visit_validate() if Py_DEBUG is defined (GH-16689) https://github.com/python/cpython/commit/a5447735c334a041ee2ffdeb5c7e13d7d4502ea2

[issue38427] Issue URL on translated Python docs site is always pointed to English version

2019-10-10 Thread Shengjing Zhu
Shengjing Zhu added the comment: On https://docs.python.org/zh-cn/3/bugs.html we emphasis that translation bugs should be reported at GitHub. So that's why I want the footer link same as previous (link to translated bugs.html). -- ___ Python

[issue38427] Issue URL on translated Python docs site is always pointed to English version

2019-10-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are occasional reports of typo in translations that are opened in bugs.python.org and it would make sense to redirect to respective GitHub repos for the translations. -- nosy: +mdk, xtreak ___

[issue38426] declare visit_validate in Py_DEBUG macro

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 16689 to fix the warning. I added the function in bpo-38392. -- ___ Python tracker ___

[issue38426] declare visit_validate in Py_DEBUG macro

2019-10-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16276 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16689 ___ Python tracker ___

[issue38392] Ensure that objects entering the GC are valid

2019-10-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16275 pull_request: https://github.com/python/cpython/pull/16689 ___ Python tracker ___

[issue38427] Issue URL on translated Python docs site is always pointed to English version

2019-10-10 Thread Shengjing Zhu
New submission from Shengjing Zhu : On footer of https://docs.python.org/fr/3.8, "Found a bug?" links to https://docs.python.org/3/bugs.html It should be https://docs.python.org/fr/3.8/bugs.html as 3.7 version. -- assignee: docs@python components: Documentation messages: 354314 nosy:

<    1   2