[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Ned Deily
Change by Ned Deily : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37407] Update imaplib.py to account for additional padding

2019-06-25 Thread Edward Smith
New submission from Edward Smith : Regex for imaplib should account for IMAP servers which return one or two whitespaces after the * in responses. For example when using davmail as an interpreter between exchange to IMAP Acceptable response is as follows: ``` 58:24.54 > PJJD3 EXAMINE

[issue37251] Mocking a MagicMock with a function spec results in an AsyncMock

2019-06-25 Thread Lisa Roach
Lisa Roach added the comment: Yes, sorry I wasn't clear, I was thinking about the functions and testing without your PR. I think removing the __code__ object (or working around it) is the correct way to go, but just removing it wouldn't solve this particular problem. "If I understand the

[issue13127] xml.dom.Attr.name is not labeled as read-only

2019-06-25 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: I took a quick look at `minidom.py` and `test_minidom.py`. It seems that you should always use `doc.renameNode(attr, namespace, new_name)` for renaming an attribute (or an element). When `doc.renameNode` is applied on an attribute node, it removes the

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-25 Thread Eryk Sun
Eryk Sun added the comment: > One issue on Linux is that the zombie process keeps the pid used until > the parent reads the child exit status, and Linux pids are limited to > 32768 by default. Windows allocates Process and Thread IDs out of a kernel handle table, which can grow to about

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
Brent Gardner added the comment: Correction, change caused by a30f6d45ac3e72761b96a8df0527182029eaee24 to cpython/Modules/socketmodule.c on Aug 28, 2017. -- ___ Python tracker

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
Brent Gardner added the comment: Changed caused by commit effc12f8e9e20d0951d2ba5883587666bd8218e3 to cpython/Modules/socketmodule.c on Sep 6, 2017. -- components: +Extension Modules ___ Python tracker

[issue29412] IndexError thrown on email.message.Message.get

2019-06-25 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +14201 pull_request: https://github.com/python/cpython/pull/14387 ___ Python tracker ___

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-25 Thread Steve Dower
Steve Dower added the comment: The handle can deliberately live beyond the process, but it does not have to. If it is closed early then the kernel object will be freed when no handles remain, which will be at process exit. So it's a classic __exit__/__del__ case, where both are needed if

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-06-25 Thread Daniel Hilst Selli
Change by Daniel Hilst Selli : -- nosy: +dhilst ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37406] Disable debug runtime checks in release mode

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset c6a2320e876354ee62cf8149b849bcff9492d38a by Victor Stinner in branch 'master': bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386) https://github.com/python/cpython/commit/c6a2320e876354ee62cf8149b849bcff9492d38a

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-25 Thread Anthony Sottile
Anthony Sottile added the comment: Hi! just stumbled on this as I was updating pytest's import hook. I notice in PEP 451 this is still marked as optional (then again, I don't know whether PEPs are supposed to be living standards or not, or if there was a PEP which supersedes that one with

[issue37406] Disable debug runtime checks in release mode

2019-06-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14200 pull_request: https://github.com/python/cpython/pull/14386 ___ Python tracker ___

[issue37388] unknown error handlers should be reported early

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: I compared ref (commit e1a63c4f21011a3ae77dff624196561070c83446) to patch (commit ed076ed467264b43ed01a8223ca65b133b590919). I ran bench.py using: # edit Makefile.pre.in to use: PROFILE_TASK=-m test.regrtest --pgo test_unicode test_codecs ./configure

[issue37388] unknown error handlers should be reported early

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: Ok, the encoding and errors are now checked in almost all cases if you enable the development mode using -X dev command line option. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue37388] unknown error handlers should be reported early

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset ed076ed467264b43ed01a8223ca65b133b590919 by Victor Stinner in branch 'master': bpo-37388: Add PyUnicode_Decode(str, 0) fast-path (GH-14385) https://github.com/python/cpython/commit/ed076ed467264b43ed01a8223ca65b133b590919 --

[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: My question was more for Zachary who proposed: "backporting GH-9901 to 2.7 would probably also be good even though it was solving a different issue". But as I wrote, I'm not comfortable to backport such change in Python 2.7. I prefer to avoid changes except

[issue37244] test_multiprocessing_forkserver: test_resource_tracker() failed on x86 Gentoo Refleaks 3.8

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks Pierre Glaser. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker

[issue37388] unknown error handlers should be reported early

2019-06-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14199 pull_request: https://github.com/python/cpython/pull/14385 ___ Python tracker ___

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37406] Disable debug runtime checks in release mode

2019-06-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14198 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14384 ___ Python tracker ___

[issue37406] Disable debug runtime checks in release mode

2019-06-25 Thread STINNER Victor
Change by STINNER Victor : -- title: Disable runtime checks in release mode -> Disable debug runtime checks in release mode ___ Python tracker ___

[issue37406] Disable runtime checks in release mode

2019-06-25 Thread STINNER Victor
New submission from STINNER Victor : A Python debug build is ABI compatible with a Python release build since Python 3.8 on most platforms (except Windows, Cygwin and Android): https://docs.python.org/3.8/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build It should now be way

[issue37388] unknown error handlers should be reported early

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22eb689cf3de7972a2789db3ad01a86949508ab7 by Victor Stinner in branch 'master': bpo-37388: Development mode check encoding and errors (GH-14341) https://github.com/python/cpython/commit/22eb689cf3de7972a2789db3ad01a86949508ab7 --

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: > See issue 36067 for a related discussion. The _active list and _cleanup > function are not required in Windows. When a process exits, it gets rundown > to free its handle table and virtual memory. Only the kernel object remains, > which is kept alive by

[issue37244] test_multiprocessing_forkserver: test_resource_tracker() failed on x86 Gentoo Refleaks 3.8

2019-06-25 Thread miss-islington
miss-islington added the comment: New changeset dd4edbc5ad4cdb47e051e7cc0801d31d3786588b by Miss Islington (bot) in branch '3.8': bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288) https://github.com/python/cpython/commit/dd4edbc5ad4cdb47e051e7cc0801d31d3786588b

[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-25 Thread Steve Dower
Steve Dower added the comment: > I suggest to close the issue and see if the bug comes back. You opened it, so sure :) -- stage: -> resolved status: open -> closed ___ Python tracker

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: All the pending work items are added to a call queue that the processes consume (_add_call_item_to_queue) and the status is set before adding it to said queue (by calling set_running_or_notify_cancel()). Notice that the fact that future.running() ==

[issue37244] test_multiprocessing_forkserver: test_resource_tracker() failed on x86 Gentoo Refleaks 3.8

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset e1a63c4f21011a3ae77dff624196561070c83446 by Victor Stinner (Pierre Glaser) in branch 'master': bpo-37244: Fix test_multiprocessing.test_resource_tracker() (GH-14288)

[issue37244] test_multiprocessing_forkserver: test_resource_tracker() failed on x86 Gentoo Refleaks 3.8

2019-06-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +14197 pull_request: https://github.com/python/cpython/pull/14383 ___ Python tracker ___

[issue36888] Create a way to check that the parent process is alive for deamonized processes

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks Pierre Glaser. Let's see if it's enough to make the test more reliable on buildbots ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-06-25 Thread Tyler Wince
Tyler Wince added the comment: Another example of the breaking change here is in the security linter `PyCQA/bandit`. It may be a simple addition of a check in the meta parser for the ast but I would tend to agree with Anthony around whether or not it is worth it. Anyone else have any

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread George Pantazes
George Pantazes added the comment: In case anyone would like to weigh in on the Homebrew side, I've filed the homebrew issue here: https://github.com/Homebrew/homebrew-core/issues/41338 . -- ___ Python tracker

[issue36888] Create a way to check that the parent process is alive for deamonized processes

2019-06-25 Thread miss-islington
miss-islington added the comment: New changeset 4adc38e79495bd06878355fd5270c3f84b77f528 by Miss Islington (bot) in branch '3.8': bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286) https://github.com/python/cpython/commit/4adc38e79495bd06878355fd5270c3f84b77f528

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
New submission from Brent Gardner : In Python 3.5.3, a socket with type AF_CAN returns a tuple in the form `(interface, )` from getsockname(). In Python 3.7.3, getsockname() returns a string (the name of the interface). The documentation states "a tuple is used for the AF_CAN address

[issue37405] socket.getsockname() returns string instead of tuple

2019-06-25 Thread Brent Gardner
Change by Brent Gardner : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36888] Create a way to check that the parent process is alive for deamonized processes

2019-06-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +14196 pull_request: https://github.com/python/cpython/pull/14382 ___ Python tracker ___

[issue36888] Create a way to check that the parent process is alive for deamonized processes

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 594d9b9f58e1ef0a60b5ce9e590e0f45cd684f26 by Victor Stinner (Pierre Glaser) in branch 'master': bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: I merged my fix. I close the issue and hope that the test will not fail again ;-) Python 2.7 is not affected: it doesn't have test_chown(). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d4b6ba19466aba0eb91c4ba01ba509acf18c723 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-37400: Fix test_os.test_chown() (GH-14374) (GH-14378) https://github.com/python/cpython/commit/1d4b6ba19466aba0eb91c4ba01ba509acf18c723

[issue37347] Reference-counting problem in sqlite

2019-06-25 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: I've pushed changes https://github.com/python/cpython/pull/14268/commits/bce7fdc952b14c23821e184e82b3944f6e10aaa9. Could I ask for clarification on callback and Py_DECREF(something)? -- ___ Python tracker

[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: Me: > Should PCbuild/pyproject.vcxproj explicitly import python.props which defines > it? Steve: > It already does :) Well, I was confused by the message. I just fixed the message. I suggest to close the issue and see if the bug comes back. --

[issue37384] Compiling Python 3.7.3 from source and getting all sorts of errors on Debian?

2019-06-25 Thread Ned Deily
Ned Deily added the comment: Glad it finally worked for you. It's hard to tell at this point what went wrong originally. Perhaps there was an "unclean" build as a result of trying to fix the uuid header issue? In any case, the most recent result you posted looks fine, so unless there is

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-25 Thread Christian Heimes
Christian Heimes added the comment: You can't use sock_recv() with a wrapped SSL socket. A SSLSocket behaves differently because there is user-level buffering. The connection operates on TLS frames and only hands off data after it has been decrypted and verified. asyncio uses wrap_bio().

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread Ned Deily
Ned Deily added the comment: As @willingc notes, it is a Homebrew build issue that should be addressed by Homebrew. That said, it is also possible that Homebrew builds have been affected by changes in Mojave as mentioned in Issue34956. I plan to look into that shortly to see if we can

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-25 Thread Akshay Takkar
New submission from Akshay Takkar : I'm working on a server that uses sock_recv from asyncio. await sock_recv(socket, n) never returns if socket is wrapped in ssl using the wrap_socket function from the ssl module. I think the problem stated in this stackoverflow question could be the reason:

[issue37403] Recommend .venv for virtual environment names

2019-06-25 Thread Brett Cannon
New submission from Brett Cannon : I've been asked enough times about what directory name to use for virtual environments I'm going to update https://docs.python.org/3/library/venv.html#module-venv to suggest `.venv` if you don't have a specific name (`.env` clashes with environment variable

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-25 Thread Géry
Géry added the comment: @Ned Deily Okay, I did not know if I had to list the potentially interested people (according to their Github contribution on the module for instance) or let them do it themselves. Thank you for clarifying. @Carol Willing The number of RUNNING futures is always

[issue33972] AttributeError in email.message.iter_attachments()

2019-06-25 Thread miss-islington
miss-islington added the comment: New changeset 01b23948038d35b119cededd149110231ecce00d by Miss Islington (bot) (Abhilash Raj) in branch '3.7': [3.7] bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119) (GH-14381)

[issue33972] AttributeError in email.message.iter_attachments()

2019-06-25 Thread miss-islington
miss-islington added the comment: New changeset c6e32824cf038386174fe2b9e7273e4779c9958c by Miss Islington (bot) (Abhilash Raj) in branch '3.8': [3.8] bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError (GH-14119) (GH-14380)

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread Carol Willing
Carol Willing added the comment: George, This is a Homebrew build issue (see additional notes on the Brew forum https://discourse.brew.sh/t/cannot-get-python-to-use-tcl-tk-version-8-6/3563. You may wish to try the suggestions found there. My recommendation would be to use the official

[issue33972] AttributeError in email.message.iter_attachments()

2019-06-25 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +14195 pull_request: https://github.com/python/cpython/pull/14381 ___ Python tracker ___

[issue33972] AttributeError in email.message.iter_attachments()

2019-06-25 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +14194 pull_request: https://github.com/python/cpython/pull/14380 ___ Python tracker ___

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-25 Thread Carol Willing
Carol Willing added the comment: I've run the code snippet several times on Mac 10.14.5 with Python 3.7.3. I'm not able to replicate your result for the `ProcessPoolExecutor` but can replicate results for `ThreadPoolExecutor`. Do you have another example where you are seeing this behavior?

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread George Pantazes
George Pantazes added the comment: Checked against the python.org installation. In that installation's IDLE, About IDLE > Tk version 8.6.8. So my question is: - Is it on me to fix this for my own machine because I should have gotten my own more-up-to-date TK before installing Python via

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread George Pantazes
George Pantazes added the comment: Alright folks, sorry there's going to be a lot of pasted blocks of output, so just look for where I @ your name to address your questions. @ned.deily, here is the output of those info commands. ``` ➜ python3 -m test.pythoninfo

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread Carol Willing
Carol Willing added the comment: Thanks for the additional information Rakesh. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +asyncio -Interpreter Core nosy: +asvetlov, yselivanov versions: +Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker ___

[issue33972] AttributeError in email.message.iter_attachments()

2019-06-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 02257012f6d3821d816cb6a7e8461a88a05b9a08 by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119)

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-25 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-25 Thread Steve Dower
Steve Dower added the comment: New changeset 2a99fd911ebeecedbb250a05667cd46eca4735b9 by Steve Dower in branch '3.7': bpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes (GH-14376)

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-25 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-25 Thread Ned Deily
Ned Deily added the comment: @maggyero, Please do not spam a list of people by add their names to issues; it will not speed a resolution. Let the people doing bug triage evaluate the issue and, if necessary, nosy the appropriate developers. --

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-25 Thread David K. Hess
David K. Hess added the comment: Thank you Steve! Nice to see this one make it across the finish line. -- ___ Python tracker ___

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread Ned Deily
Ned Deily added the comment: > It seems to be compiled using Tcl 8.5 that is installed with the system. Yes, and that is almost certainly the original poster's problem, as well. In fact, this same issue was reported in Issue10731 in 2010. The Tcl/Tk 8.5 supplied by Apple in macOS is

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread miss-islington
miss-islington added the comment: New changeset 12d174bed9960ded1d072035c57f82e10a89f0d6 by Miss Islington (bot) in branch '3.8': bpo-37400: Fix test_os.test_chown() (GH-14374) https://github.com/python/cpython/commit/12d174bed9960ded1d072035c57f82e10a89f0d6 -- nosy:

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-25 Thread Steve Dower
Steve Dower added the comment: New changeset 25fbe33b92cd938e809839feaa3fda97e6ad0980 by Steve Dower in branch '3.8': bpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes (GH-14375)

[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: Aaaah, CIs are funny. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +14192 pull_request: https://github.com/python/cpython/pull/14377 ___ Python tracker ___

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +14193 pull_request: https://github.com/python/cpython/pull/14378 ___ Python tracker ___

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset d7c87d982d4ec4ba201bcee14324ae5e0e90581f by Victor Stinner in branch 'master': bpo-37400: Fix test_os.test_chown() (GH-14374) https://github.com/python/cpython/commit/d7c87d982d4ec4ba201bcee14324ae5e0e90581f --

[issue37393] Deprecation warnings in test_ntpath

2019-06-25 Thread Steve Dower
Steve Dower added the comment: We should also remove that deprecation warning, as PEP 528 (or was it PEP 529) undeprecated bytes paths. -- ___ Python tracker ___

[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-25 Thread Steve Dower
Steve Dower added the comment: > Should PCbuild/pyproject.vcxproj explicitly import python.props which defines > it? It already does :) This is more likely because the previous build on that buildbot crashed(?) or because it was aborted during test_multiprocessing:

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-25 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14190 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/14375 ___ Python tracker ___

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-25 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14191 pull_request: https://github.com/python/cpython/pull/14376 ___ Python tracker ___

[issue37276] Incorrect number of running calls in ProcessPoolExecutor

2019-06-25 Thread Géry
Géry added the comment: Initial post: https://stackoverflow.com/q/56587166/2326961 -- ___ Python tracker ___ ___ Python-bugs-list

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: I'm connected to the FreeBSD CURRENT buildbot as the user "haypo". I'm unable to reproduce the bug: CURRENT-amd64% id uid=1003(haypo) gid=1003(haypo) groups=1003(haypo) CURRENT-amd64% ./python -m test test_os -m test_chown (...) Tests result: SUCCESS

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14189 pull_request: https://github.com/python/cpython/pull/14374 ___ Python tracker ___

[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-25 Thread Rakesh Singh
Rakesh Singh added the comment: Same behaviour experienced here on Mojave Kernel Version 18.6.0. Homebrew Python 3.7.3 Python 3.7.3 (default, Jun 19 2019, 07:38:49) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license()" for more information. WARNING:

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: I merged my pythoninfo change, more complete pythoninfo from the buildbot: os.getgid: 1002 os.getgrouplist: 1002 os.getgroups: 1002 os.getuid: 1002 pwd.getpwuid(1002): pwd.struct_passwd(pw_name='buildbot', pw_passwd='*', pw_uid=1002, pw_gid=1002,

[issue31711] ssl.SSLSocket.send(b"") fails

2019-06-25 Thread Shivaram Lingamneni
Shivaram Lingamneni added the comment: Are there any possible next steps on this? This issue is very counterintuitive and challenging to debug --- it commonly presents as a nondeterministic edge case, and it appears to be a failed system call but doesn't show up in strace. Thanks for your

[issue20443] __code__. co_filename should always be an absolute path

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3939c321c90283b49eddde762656e4b1940e7150 by Victor Stinner in branch 'master': bpo-20443: _PyConfig_Read() gets the absolute path of run_filename (GH-14053) https://github.com/python/cpython/commit/3939c321c90283b49eddde762656e4b1940e7150

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Andreas Jung
Andreas Jung added the comment: Typical traceback: WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/demo10-jpg If renaming or importing please reindex!

[issue37401] pygrib install error

2019-06-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This tracker deals with issues in CPython. pygrib is not a part of the standard library. This could have better discussion at https://github.com/jswhit/pygrib. I am closing this as third party. -- nosy: +xtreak resolution: -> third party

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Andreas Jung
New submission from Andreas Jung : I am using Python 3.6 and 3.7 (always latest minor releases) with Plone 5.2 and I various issues with Fatal Python error: Cannot recover from stack overflow. and do not make much sense to me. Some related tracebacks are documented here

[issue37401] pygrib install error

2019-06-25 Thread Borja
New submission from Borja : Installing Pygrib with pip (pip install pygrib): Collecting pygrib Using cached https://files.pythonhosted.org/packages/f8/10/c0d22eafec62fb5413799a7034ac45f26bfa77405c8527c17869e4c3ee4d/pygrib-2.0.4.tar.gz Requirement already satisfied: numpy in

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread John Belmonte
John Belmonte added the comment: My use case is for a non-async context manager, and if we take track_entry_and_exit as an example that's non-async as well. The explicit approach (e.g. separate base class for decorators applied to sync vs. async functions) doesn't seem ideal, because it

[issue34606] Unable to read zip file with extra

2019-06-25 Thread Andreas Gäer
Andreas Gäer added the comment: I'm a little bit puzzled that this bug is closed as "not a bug" despite the fact that all versions of python allow the user to create "invalid" ZIP files and all version up to 3.7 are able to read those "invalid" files. Currently we're stuck with a lot of

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Got you. iscoroutinefunction() is not reliable: it detects async functions only but fails if we have a regular function that returns awaitable object. I think AsyncContextDecorator is needed here to explicitly point that you want to wrap async function.

[issue37392] Remove sys.setcheckinterval()

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 080b6b40fa6c6ddc79dcfcadab575bb1be3f47e9 by Victor Stinner (Xtreak) in branch 'master': bpo-37392: Update the dir(sys) in module tutorial (GH-14365) https://github.com/python/cpython/commit/080b6b40fa6c6ddc79dcfcadab575bb1be3f47e9 --

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9cb274114c844f9b1c13028f812926c987a7b4a7 by Victor Stinner in branch 'master': bpo-37400: pythoninfo logs getpwuid and getgrouplist (GH-14373) https://github.com/python/cpython/commit/9cb274114c844f9b1c13028f812926c987a7b4a7 --

[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 49032fa7e1cc1b6dc12b898daac24b75bae7572c by Victor Stinner in branch '2.7': bpo-37396, PCbuild: Include "_d" in "Killing any running ..." message (GH-14370) https://github.com/python/cpython/commit/49032fa7e1cc1b6dc12b898daac24b75bae7572c

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread John Belmonte
John Belmonte added the comment: PerfTimer is a reusable, non-reentrant context manager implemented as a class. There are already use cases of ContextDecorator described in the contextlib documentation, such as the track_entry_and_exit logger. What reason would you have for such context

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread Kubilay Kocak
Kubilay Kocak added the comment: And I just remembered that I had to restart the build worker service on that host (koobs-freebsd10) this morning as I was receiving messaging that the worker had gone missing. I ran `[koobs@10-STABLE-amd64:~] sudo /usr/local/etc/rc.d/buildslave restart`

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, I still have no idea what is the code for PerfTimer class. -- ___ Python tracker ___ ___

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread Kubilay Kocak
Kubilay Kocak added the comment: This looks like a reincarnation of #27838 -- nosy: +koobs ___ Python tracker ___ ___

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread John Belmonte
John Belmonte added the comment: I have a context manager used for timing sections of code or whole functions (when used as a decorator). It's aware of the Trio async/await scheduler and is able to exclude periods of time where the task is not executing. The context manager itself is not

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14188 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14373 ___ Python tracker ___

[issue37400] test_os: test_chown() started to fail on AMD64 FreeBSD 10-STABLE Non-Debug 3.* buildbots

2019-06-25 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/167/builds/1265 test_chown (test.test_os.ChownFileTests) ... ERROR == ERROR: test_chown (test.test_os.ChownFileTests)

  1   2   >