[issue40275] test.support has way too many imports

2020-08-03 Thread hai shi
Change by hai shi : -- pull_requests: +20870 pull_request: https://github.com/python/cpython/pull/21727 ___ Python tracker ___ ___

[issue32623] Resize dict on del/pop

2020-08-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-08-03 Thread Ned Deily
Change by Ned Deily : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41440] os.cpu_count doesn't work on VxWorks RTOS

2020-08-03 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29269] test_socket failing in solaris

2020-08-03 Thread Brian Vandenberg
Brian Vandenberg added the comment: I accidentally hit submit too early. I tried changing the code in posixmodule.c to use lseek(), something like the following: offset = lseek( in, 0, SEEK_CUR ); do { ret = sendfile(...); } while( ... ); lseek( in, offset, SEEK_SET ); ... however, in

[issue41440] os.cpu_count doesn't work on VxWorks RTOS

2020-08-03 Thread Peixing Xin
Peixing Xin added the comment: I don't know who have VxWorks experience in core devs. VxWorks has not been officially supported so not listed there. I am from Wind River and Wind River can provide buildbot for VxWorks once it is supported and I also could take the maintainer role.

[issue41460] Translation Error in in Functional Programming HOWTO page

2020-08-03 Thread Ned Deily
Change by Ned Deily : -- assignee: -> docs@python components: +Documentation nosy: +cocoatomo, docs@python, mdk ___ Python tracker ___

[issue41469] Problem with serial communication

2020-08-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This tracker is for issues related to CPython. Please report issues at the relevant repo https://github.com/pyserial/pyserial. Closing it as third party. -- nosy: +xtreak resolution: -> third party stage: -> resolved status: open ->

[issue36982] Add support for extended color functions in ncurses 6.1

2020-08-03 Thread Ned Deily
Ned Deily added the comment: New changeset da4e09fff6b483fe858997da5599c25397107ca1 by Hans Petter Jansson in branch 'master': bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536) https://github.com/python/cpython/commit/da4e09fff6b483fe858997da5599c25397107ca1

[issue32623] Resize dict on del/pop

2020-08-03 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29269] test_socket failing in solaris

2020-08-03 Thread Brian Vandenberg
Brian Vandenberg added the comment: Christian, you did exactly what I needed. Thank you. I don't have the means to do a git bisect to find where it broke. It wasn't a problem around 3.3 timeframe and I'm not sure when this sendfile stuff was implemented. The man page for sendfile says

[issue41439] test_uuid.py and test_ssl.py failure on OSes without os.fork (VxWorks RTOS)

2020-08-03 Thread Peixing Xin
Peixing Xin added the comment: Terry, VxWorks has not been officially supported by community. Certainly no builtbot for VxWorks connected yet. I am porting cpython onto VxWorks RTOS now. Several issues you listed are the part of my porting effort. So I think we don't need to backport the

[issue41469] Problem with serial communication

2020-08-03 Thread Jose Gabriel
New submission from Jose Gabriel : I was doing a small serial communication system using pyserial. when I done the script on a .py file, it not worked. but when I opened the python console and writed line by line the same code of the .py file, it worked. the .py file: import serial ser =

[issue41004] [CVE-2020-14422] Hash collisions in IPv4Interface and IPv6Interface

2020-08-03 Thread Larry Hastings
Change by Larry Hastings : -- assignee: eric.smith -> status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41004] [CVE-2020-14422] Hash collisions in IPv4Interface and IPv6Interface

2020-08-03 Thread Larry Hastings
Larry Hastings added the comment: New changeset 11d258ceafdf60ab3840f9a5700f2d0ad3e2e2d1 by Tapas Kundu in branch '3.5': [3.5] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033) (#21233)

[issue41326] Build failure in blurb-it repo: "Failed building wheel for yarl"

2020-08-03 Thread Inada Naoki
Inada Naoki added the comment: For the record, deprecation warning is just a waring. Build failure is coming from here: ``` yarl/_quoting.c:1245:23: error: lvalue required as left operand of assignment Py_SIZE(list) = len+1; ``` It is not relating PEP 623, and it has been fixed

[issue29778] [CVE-2020-15523] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-08-03 Thread Larry Hastings
Larry Hastings added the comment: New changeset f205f1000a2d7f8b044caf281041b3705f293480 by Steve Dower in branch '3.5': [3.5] bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) (#21377)

[issue41431] Optimize dict_merge for copy

2020-08-03 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> performance ___ Python tracker ___

[issue41431] Optimize dict_merge for copy

2020-08-03 Thread Inada Naoki
Inada Naoki added the comment: New changeset db6d9a50cee92c0ded7c5cb87331c5f0b1008698 by Inada Naoki in branch 'master': bpo-41431: Optimize dict_merge for copy (GH-21674) https://github.com/python/cpython/commit/db6d9a50cee92c0ded7c5cb87331c5f0b1008698 --

[issue41406] subprocess: Calling Popen.communicate() after Popen.stdout.read() returns an empty string

2020-08-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: A workaround should be pass bufsize=0. There might be performance consequences. That depends on your read patterns and child process. If this is to be supported and fixed, the selectors used in POpen._communicate on the POSIX side presumably don't

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread miss-islington
miss-islington added the comment: New changeset 1d16229f3f5b91f2389c7c5c6425c5524c413651 by Miss Islington (bot) in branch '3.9': bpo-41467: Fix asyncio recv_into() on Windows (GH-21720) https://github.com/python/cpython/commit/1d16229f3f5b91f2389c7c5c6425c5524c413651 --

[issue38156] input fucntion raises SystemError after specific input.

2020-08-03 Thread miss-islington
miss-islington added the comment: New changeset 46e448abbf35c051e5306a4695670d7ec7abc4e9 by Miss Islington (bot) in branch '3.8': bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721) https://github.com/python/cpython/commit/46e448abbf35c051e5306a4695670d7ec7abc4e9 --

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread miss-islington
miss-islington added the comment: New changeset b934d832d1e16bf235c536dcde3006faf29757fc by Miss Islington (bot) in branch '3.8': bpo-41467: Fix asyncio recv_into() on Windows (GH-21720) https://github.com/python/cpython/commit/b934d832d1e16bf235c536dcde3006faf29757fc --

[issue38156] input fucntion raises SystemError after specific input.

2020-08-03 Thread miss-islington
miss-islington added the comment: New changeset b6724be8047ac2404aab870d35d8f95bb0b7036a by Miss Islington (bot) in branch '3.9': bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721) https://github.com/python/cpython/commit/b6724be8047ac2404aab870d35d8f95bb0b7036a --

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +20869 pull_request: https://github.com/python/cpython/pull/21726 ___ Python tracker ___

[issue38156] input fucntion raises SystemError after specific input.

2020-08-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +20868 pull_request: https://github.com/python/cpython/pull/21725 ___ Python tracker ___

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20867 pull_request: https://github.com/python/cpython/pull/21724 ___ Python tracker

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 602a971a2af3a685d625c912c400cadd452718b1 by Victor Stinner in branch 'master': bpo-41467: Fix asyncio recv_into() on Windows (GH-21720) https://github.com/python/cpython/commit/602a971a2af3a685d625c912c400cadd452718b1 --

[issue38156] input fucntion raises SystemError after specific input.

2020-08-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +20866 pull_request: https://github.com/python/cpython/pull/21723 ___ Python tracker ___

[issue38156] input fucntion raises SystemError after specific input.

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset bde48fd8110cc5f128d5db44810d17811e328a24 by Victor Stinner in branch 'master': bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721) https://github.com/python/cpython/commit/bde48fd8110cc5f128d5db44810d17811e328a24 --

[issue41330] Inefficient error-handle for CJK encodings

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: (off topic) > If nothing happens, I also would like to write a zstd module for stdlib > before the end of the year, but I dare not promise this. I suggest you to publish it on PyPI. Once it will be mature, you can propose it on python-ideas. Last time

[issue41466] Windows installer: "Add to PATH" should be checked by default

2020-08-03 Thread Eryk Sun
Change by Eryk Sun : -- components: +Installation status: open -> versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___

[issue41330] Inefficient error-handle for CJK encodings

2020-08-03 Thread Ma Lin
Ma Lin added the comment: I'm working on issue41265. If nothing happens, I also would like to write a zstd module for stdlib before the end of the year, but I dare not promise this. If anyone wants to work on this issue, very grateful. -- ___

[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-08-03 Thread Howard A. Landman
Howard A. Landman added the comment: OK, this has been filed against the spidev library: https://github.com/doceme/py-spidev/issues/107 Do you want it closed, or left open until that gets resolved? -- resolution: -> third party ___ Python tracker

[issue41466] Windows installer: "Add to PATH" should be checked by default

2020-08-03 Thread Eryk Sun
Eryk Sun added the comment: Managing multiple Python installations in PATH is problematic, so by default the installer doesn't modify PATH. Instead, the "py.exe" launcher [1] is made available, which can run any registered installation of Python. Using a launcher fits the Windows

[issue40989] [C API] Remove _Py_NewReference() and _Py_ForgetReference() from the public C API

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20865 pull_request: https://github.com/python/cpython/pull/21722 ___ Python tracker ___

[issue38156] input fucntion raises SystemError after specific input.

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 3.0 -> 4.0 pull_requests: +20864 pull_request: https://github.com/python/cpython/pull/21721 ___ Python tracker ___

[issue41326] Build failure in blurb-it repo: "Failed building wheel for yarl"

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: yarl is a third party project, you should report the issue to https://github.com/aio-libs/yarl/ > blurb-it imports aiohttp which imports yarl. It might be a duplicate of > https://github.com/aio-libs/yarl/issues/459 Andrew Svetlov wrote "yarl 1.5.0 will be

[issue41326] Build failure in blurb-it repo: "Failed building wheel for yarl"

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: > I'm not familiar with that part of codebase. If anyone has any insight, it > would be appreciated. Thanks. See PEP 623 if you're curious ;-) -- ___ Python tracker

[issue35247] test.test_socket.RDSTest.testPeek hangs indefinitely

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: I cannot debug this issue on Fedora 32, since RDS sockets are not supported: $ ./python -m test test_socket -m test.test_socket.RDSTest.testPeek -v (...) testPeek (test.test_socket.RDSTest) ... skipped 'RDS sockets required for this test.' (...) --

[issue41370] PEP 585 and ForwardRef

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41406] subprocess: Calling Popen.communicate() after Popen.stdout.read() returns an empty string

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: Calling proc.communicate() after proc.stdout.read() doesn't seem to be supported. What is your use case? Why not just calling communicate()? Why not only using stdout directly? -- components: -2to3 (2.x to 3.x conversion tool), IO nosy:

[issue41330] Inefficient error-handle for CJK encodings

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: Since CJK codecs have been implemented, unicodeobject.c got multiple optimizations: * _PyUnicodeWriter for decoder: API designed with efficiency and PEP 393 (compact string) in mind * _PyBytesWriter for encoders: in short, API to overallocate a buffer *

[issue41401] Using non-ascii that require UTF-8 breaks AIX testing

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29269] test_socket failing in solaris

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: > I am not sure how to get this bug fixed (...) Someone has to write a fix. You may contact Solaris vendor or a company using Solaris who wants to pay a developer to write a fix. -- ___ Python tracker

[issue41468] Unrecoverable server exiting

2020-08-03 Thread Albert Francis
New submission from Albert Francis : How to solve unrecoverable server exiting in IDLE -- assignee: terry.reedy components: IDLE messages: 374766 nosy: albertpython, terry.reedy priority: normal severity: normal status: open title: Unrecoverable server exiting type: behavior versions:

[issue41439] test_uuid.py and test_ssl.py failure on OSes without os.fork (VxWorks RTOS)

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- title: test_uuid.py and test_ssl.py failure on OSes without os.fork -> test_uuid.py and test_ssl.py failure on OSes without os.fork (VxWorks RTOS) ___ Python tracker

[issue41303] perf_counter result does not count system sleep time in Mac OS

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: perf_counter documentation says "It does include time elapsed during sleep and is system-wide." where "sleep" here means time.sleep(): https://docs.python.org/dev/library/time.html#time.perf_counter Python clock functions don't provide any warranty regarding

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: > This bug may be the root cause of bpo-38912 bug. Yeah, very likely. This bug makes asyncio inconsistent. A transport is "not closed" and "closed" at the same time... C:\vstinner\python\master\lib\asyncio\proactor_events.py:121: ResourceWarning: unclosed

[issue38912] test_asyncio altered the execution environment

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: File "C:\vstinner\python\master\lib\asyncio\proactor_events.py", line 293, in _loop_reading data = self._data[:length] TypeError: slice indices must be integers or None or have an __index__ method I created bpo-41467: asyncio: recv_into() must not return

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: The function was added in 2017 in bpo-31819, PR 4051: commit 525f40d231aba2c004619fc7a5207171ed65b0cb Author: Antoine Pitrou Date: Thu Oct 19 21:46:40 2017 +0200 bpo-31819: Add AbstractEventLoop.sock_recv_into() (#4051) --

[issue31819] Add sock_recv_into to AbstractEventLoop

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: Follow-up issue, bpo-41467: asyncio: recv_into() must not return b'' if the socket/pipe is closed. -- nosy: -giampaolo.rodola ___ Python tracker

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +20863 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21720 ___ Python tracker ___

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread STINNER Victor
New submission from STINNER Victor : The proactor event loop of asyncio returns b'' on recv_into() if the socket/pipe is closed: def recv_into(self, conn, buf, flags=0): ... try: ... except BrokenPipeError: return self._result(b'')

[issue38912] test_asyncio altered the execution environment

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: When I commented code to hide logs in the tests, I saw another bug. Local patch: diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 177a02cdcc..3095b1d987 100644 ---

[issue41303] perf_counter result does not count system sleep time in Mac OS

2020-08-03 Thread Rishav Kundu
Change by Rishav Kundu : -- keywords: +patch nosy: +xrisk nosy_count: 6.0 -> 7.0 pull_requests: +20862 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21719 ___ Python tracker

[issue38912] test_asyncio altered the execution environment

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: More info with my latest change. AMD64 Windows10 3.x: https://buildbot.python.org/all/#/builders/129/builds/1500 0:10:26 load avg: 3.17 [354/423/2] test_asyncio failed (env changed) (1 min 23 sec) -- running: test_capi (1 min 3 sec) Warning -- Unraisable

[issue41398] cgi module, parse_multipart fails

2020-08-03 Thread Guido van Rossum
Guido van Rossum added the comment: Could you submit a PR then? I don't think I've looked at that module in 20 years. -- ___ Python tracker ___

[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-08-03 Thread Howard A. Landman
Howard A. Landman added the comment: It appears to be in the spidev library xfer method, when used for reading. Calling that 107.4M times (using the same code as inside my read_regs24() method) causes the free() error. Breakpoint 1, malloc_printerr (str=0x76e028f8 "free(): invalid pointer")

[issue38912] test_asyncio altered the execution environment

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 701b63894fdb75b12865b9be6261ce4913da76f5 by Victor Stinner in branch 'master': bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) https://github.com/python/cpython/commit/701b63894fdb75b12865b9be6261ce4913da76f5

[issue29269] test_socket failing in solaris

2020-08-03 Thread Christian Heimes
Christian Heimes added the comment: What do you expect us to do? No Python core dev has access to a Solaris machine. We cannot debug the issue and have to rely on external contributions. We have not declared Solaris as unsupported yet because people are still contributing fixes. If you are

[issue41398] cgi module, parse_multipart fails

2020-08-03 Thread Magnus Johnsson
Magnus Johnsson added the comment: No, of course not. The request is completely valid. Python's cgi library parses it wrong. The 'resolution' that needs to be done is to fix it in python's source. That, and the libraries that depend on it, like twisted, probably needs to move away from using

[issue41466] Windows installer: "Add to PATH" should be checked by default

2020-08-03 Thread cotree
New submission from cotree : In the Windows installer, "Add Python 3.x to PATH" is unchecked by default: https://docs.python.org/3/_images/win_installer.png If it's unchecked, then "python", "pip", and any other commands from installed packages (like django-admin, etc) will not work, which

[issue41465] io.TextIOWrapper.errors not writable

2020-08-03 Thread Walter Dörwald
New submission from Walter Dörwald : PEP 293 states the following: """ For stream readers/writers the errors attribute must be changeable to be able to switch between different error handling methods during the lifetime of the stream reader/writer. This is currently the case for

[issue41459] pickle.load raises SystemError on malformed input

2020-08-03 Thread Guillaume
Guillaume added the comment: Hi Eric, I'm not aware of a practical problem caused by this. This was discovered via fuzzing. I reported it because the unexpected error suggest an internal issue within the pickle library. Just before reporting this, I browsed the bug tracker and noticed a

[issue41449] An article on Python 3 stdout and stderr output buffering

2020-08-03 Thread Guido van Rossum
Guido van Rossum added the comment: If you don't even know whether it's Python, Docker or Kubernetes you really need to ask somewhere else. Plenty of user groups around. Python detects tty using the standard UNIX isatty() function. To a tty we always get line buffering. To a file we use a

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think what Raymond proposes makes sense and it will certainly add value, especially given the mentioned expectations on what an implementation on the stdlib should have. The only think I would like to know is how much code/measured performance

[issue38628] Issue with ctypes in AIX

2020-08-03 Thread David Edelsohn
David Edelsohn added the comment: The example with memchr() never will be correct because it is invalid to call a function with an argument list that doesn't match the function signature. Your comment mentions that the AIX structure is size 16, but it looks like Python calculates the AIX

[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-08-03 Thread Howard A. Landman
Howard A. Landman added the comment: Getting closer to isolating this. A small program that does nothing but call read_regs24() over and over dies with the same error after about 107.4M iterations. So it seems to be definitely in that method. But that only takes a few hours, not half a day.

[issue41208] An exploitable segmentation fault in marshal module

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- resolution: not a bug -> duplicate superseder: -> Pickle crashes unpickling invalid NEWOBJ_EX opcode ___ Python tracker ___

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The existing math.prod() already has a separate code path for floats. The proposal is to add an overflow/underflow check to that existing path so that we don't get nonsense like 0.0, 1e+175, or Inf depending on the data ordering. That doesn't warrant a

[issue41464] Increase Code Coverage for operator.py

2020-08-03 Thread Irit Katriel
Irit Katriel added the comment: duplicates bpo-39664 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38912] test_asyncio altered the execution environment

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +20861 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21718 ___ Python tracker ___

[issue38912] test_asyncio altered the execution environment

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: Recent exmaple on AMD64 Windows10 3.x: https://buildbot.python.org/all/#/builders/129/builds/1498 0:14:19 load avg: 0.10 [418/423/1] test_asyncio failed (env changed) (1 min 10 sec) -- running: test_mmap (4 min 47 sec), test_io (3 min 41 sec) Warning --

[issue41464] Increase Code Coverage for operator.py

2020-08-03 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +20860 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21717 ___ Python tracker ___

[issue41464] Increase Code Coverage for operator.py

2020-08-03 Thread Irit Katriel
New submission from Irit Katriel : Lib\operator.py currently missing coverage for not_, index and error cases of length_hint and iconcat. -- components: Tests messages: 374742 nosy: iritkatriel priority: normal severity: normal status: open title: Increase Code Coverage for

[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-08-03 Thread E. Paine
E. Paine added the comment: For reference, I have opened https://core.tcl-lang.org/tk/tktview?name=81c3ef93148d17ff280d9a0b4c4edfce453b972f to report this to the Tk team and ask if this change in behaviour is intended. -- ___ Python tracker

[issue40275] test.support has way too many imports

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4660597b51b3d14ce6269d0ed865ab7e22c6ae1f by Hai Shi in branch 'master': bpo-40275: Use new test.support helper submodules in tests (GH-21448) https://github.com/python/cpython/commit/4660597b51b3d14ce6269d0ed865ab7e22c6ae1f --

[issue40275] test.support has way too many imports

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset bb0424b122e3d222a558bd4177ce37befd3e0347 by Hai Shi in branch 'master': bpo-40275: Use new test.support helper submodules in tests (GH-21451) https://github.com/python/cpython/commit/bb0424b122e3d222a558bd4177ce37befd3e0347 --

[issue40275] test.support has way too many imports

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7f5d93bb6906d0f999248b47295d3a59b130f4d by Hai Shi in branch 'master': bpo-40275: Use new test.support helper submodules in tests (GH-21449) https://github.com/python/cpython/commit/a7f5d93bb6906d0f999248b47295d3a59b130f4d --

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-03 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, fprod would be nice [though if you just want to avoid over/underflows, much easier solution is to first determine the sign, then sum the logarithms of absolute values, and exponentiate that]. But I agree with Tim that it should be a separate function. For

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-03 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/sphinx-doc/sphinx/pull/7905 has been merged and will be part of the next Sphinx 3.2 release. -- ___ Python tracker ___

[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-08-03 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +20859 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21715 ___ Python tracker

[issue41463] Avoid duplicating jump information from opcode.py in compile.c

2020-08-03 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +20858 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21714 ___ Python tracker ___

[issue41463] Avoid duplicating jump information from opcode.py in compile.c

2020-08-03 Thread Mark Shannon
New submission from Mark Shannon : opcode.py declares which jumps are relative and which are absolute. We duplicate that information in compile.c We should generate lookup tables in opcodes.h and to repeating that information in compile.c -- messages: 374735 nosy: Mark.Shannon

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-03 Thread Mark Dickinson
Mark Dickinson added the comment: This message from Tim, starting "I'd like to divorce `prod()` from floating-point complications", seems relevant here: https://bugs.python.org/issue35606#msg333090 -- ___ Python tracker

[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-08-03 Thread E. Paine
E. Paine added the comment: +1 this issue. I have encountered this problem lots when testing patches and almost always just end up deleting the test_from method to get test_tk to pass. I am not sure of a solution, though, as we *need* to keep test compatibility with Tk 8.6.8 while

[issue39017] [CVE-2019-20907] Infinite loop in the tarfile module

2020-08-03 Thread STINNER Victor
Change by STINNER Victor : -- title: Infinite loop in the tarfile module -> [CVE-2019-20907] Infinite loop in the tarfile module ___ Python tracker ___

[issue41462] os.set_blocking() raises OSError on VxWorks RTOS

2020-08-03 Thread Peixing Xin
Change by Peixing Xin : -- keywords: +patch pull_requests: +20857 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21713 ___ Python tracker ___

[issue41450] OSError is not documented in ssl library, but still can be thrown

2020-08-03 Thread Allan Chandler
Allan Chandler added the comment: If you look through the source for PyExc, you'll find items for (over and above OsError) ValueError, NotImplementedError, TypeError, OverflowError, AttributeError, MemoryError, UnicodeEncodeError, and RuntimeWarning. I don't think ANY of those are

[issue41462] os.set_blocking() raises OSError on VxWorks RTOS

2020-08-03 Thread Peixing Xin
New submission from Peixing Xin : os.set_blocking() always raise OSError exception on VxWorks RTOS. See below for details. [vxWorks *]# python3 -m unittest -v test.test_os.BlockingTests.test_blocking Launching process 'python3' ... Process 'python3' (process Id = 0x405808010) launched.

[issue38628] Issue with ctypes in AIX

2020-08-03 Thread Tony Reix
Tony Reix added the comment: After more investigations, we (Damien and I) think that there are several issues in Python 3.8.5 : 1) Documentation. a) AFAIK, the only place in the Python ctypes documentation where it talks about how arrays in a structure are managed appears at:

[issue41075] IDLE: Better support history navigation

2020-08-03 Thread E. Paine
E. Paine added the comment: > but not with binding to modifier-up/down. I cannot reproduce. I have tested on both Windows and Linux and found I could successfully change to (and use) the modifier-up/down bindings both through the Keys page of the configdialog and by editing the keys def.

[issue38628] Issue with ctypes in AIX

2020-08-03 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-08-03 Thread Julien Danjou
Julien Danjou added the comment: Adding to the thread object might be a good idea, but it does not work if you ever start threads with the low-level `_thread` API. It's also a different design from the existing `sys._current_frames`. Adding it on top of a frame is interesting though. I think

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be more useful to add a method to the Thread or frame object to obtain the topmost handled exception? Then you could iterate all threads or frames and obtain exceptions together with other useful information. Note also that it omits exceptions

[issue38628] Issue with ctypes in AIX

2020-08-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: Thanks for the code reference. I'm not a ctypes expert, but do maintain another project using libffi. The comment in stgdict.c is correct, and that code is used for all platforms. However, code to embed arrays into a struct (as described int the comment)

[issue41461] test_pathlib assumes underlying filesystem permits creation with world-write permissions

2020-08-03 Thread Michael Felt
New submission from Michael Felt : Two tests in test_pathlib test that the files created have mode o666 (rw-rw-rw). However, on a filesystem (in my case NFS) configured to never permit global write - the test will always fail. Is this something to be concerned about? I can think of a few