[issue38188] Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in multiprocessing.reduction.DupHandle

2019-09-17 Thread Eryk Sun
Eryk Sun added the comment: Let's make test_fd_transfer_windows a bit less hangy by polling for up to 60 seconds instead of simply trying to recv() and by terminating before trying to join(). @unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction") @unittest.skipIf

[issue38192] Fix invocation of EchoClientProtocol

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15820 pull_request: https://github.com/python/cpython/pull/16219 ___ Python tracker ___ __

[issue38192] Fix invocation of EchoClientProtocol

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset 5d359cc62e0244e1fd8d17146a4135079d6843bf by Miss Islington (bot) (Hrvoje Nikšić) in branch 'master': bpo-38192: Fix remaining passing of "loop" in the protocol examples (GH-16202) https://github.com/python/cpython/commit/5d359cc62e0244e1fd8d17146

[issue38192] Fix invocation of EchoClientProtocol

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15819 pull_request: https://github.com/python/cpython/pull/16218 ___ Python tracker ___ __

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15821 pull_request: https://github.com/python/cpython/pull/16220 ___ Python tracker ___ __

[issue38192] Fix invocation of EchoClientProtocol

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset facbd316b409f3775da2a74d0845938b4c7b88f0 by Miss Islington (bot) in branch '3.7': bpo-38192: Fix remaining passing of "loop" in the protocol examples (GH-16202) https://github.com/python/cpython/commit/facbd316b409f3775da2a74d0845938b4c7b88f0

[issue38192] Fix invocation of EchoClientProtocol

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset 1ba74719e3a213a2c473b92f3a79f8399e65f80a by Miss Islington (bot) in branch '3.8': bpo-38192: Fix remaining passing of "loop" in the protocol examples (GH-16202) https://github.com/python/cpython/commit/1ba74719e3a213a2c473b92f3a79f8399e65f80a

[issue38192] Fix invocation of EchoClientProtocol

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

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 46b0b81220a23bc4aee5ba3ba67e8cf1b5df7960 by Victor Stinner in branch 'master': bpo-37531: regrtest main process uses shorter timeout (GH-16220) https://github.com/python/cpython/commit/46b0b81220a23bc4aee5ba3ba67e8cf1b5df7960 -- _

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as a good case for positional-only parameters. But first passing these arguments by keyword should be deprecated. -- assignee: -> serhiy.storchaka nosy: +gvanrossum, levkivskyi, serhiy.storchaka ___ Python

[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: > https://buildbot.python.org/all/#/builders/225/builds/239 I forgot to mention the buildbot name: AMD64 FreeBSD 10-STABLE Non-Debug 3.8. > It may be a regression caused by bpo-37531. > (...) > So main_process could be max(PROGRESS_UPDATE, PROGRESS_MIN_TIME)

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +15822 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16222 ___ Python tracker ___

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 16222 adds support for arbitrary keyword argument names in NamedTuple and TypedDict. Passing arguments like "typename", "_typename", "fields" and "_fields" by keyword is still supported, but deprecated. I'm going to backport this to 3.8 and 3.7 (to 3.7

[issue38185] Weird way of case-insensitive indexing of sqlite3.Row

2019-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: > I can restart the worker to create the environment that reproduces the issue > at any time to confirm the test passes, just let me know Running test_idle as an user different than root and with HOME=/root env var (or HOME=/) should be enough to reproduce t

[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-17 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Victor Yes. I restarted the worker to re-create reproduction conditions. It looks like default, 3.8 and 3.7 are OK now after Terry;s commits, with 2.7 failing (expected): https://buildbot.python.org/all/#/builders/169/builds/170 It would be nice to fix the

[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: > It would be nice to fix the bug in all supported branches until they are EoL Or just fix the buildbot which means less work to do :-) -- ___ Python tracker __

[issue38196] Bug fix in folderstats module

2019-09-17 Thread Arshdeep
New submission from Arshdeep : Issue : While using folderstats module in python3, the records are cascaded from all previous runs of folderstats for that specific session i.e. once the folderstats is run, it will provide the dataframe with all the files/directories in that directory, but if w

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15824 pull_request: https://github.com/python/cpython/pull/16224 ___ Python tracker ___ __

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15823 pull_request: https://github.com/python/cpython/pull/16223 ___ Python tracker ___ __

[issue38196] Bug fix in folderstats module

2019-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This tracker is for bugs in the C implementation of Python. "foldersize" is not a module from the standard Python library. Use the corresponding bug tracker for reporting a bug in third-party modules. -- nosy: +serhiy.storchaka resolution: -> thir

[issue38197] Meaning of tracebacklimit differs between sys.tracebacklimit and traceback module

2019-09-17 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : The meaning of sys.tracebacklimit seems to be different than the meaning of the various limit parameters in the traceback module. One shows the top n stack frames, the other the bottom n. Is this intentional, and if yes, is that difference doc

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15825 pull_request: https://github.com/python/cpython/pull/16227 ___ Python tracker ___

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2019-09-17 Thread Thomas Grainger
Change by Thomas Grainger : -- pull_requests: +15826 pull_request: https://github.com/python/cpython/pull/16228 ___ Python tracker ___ _

[issue37828] Fix default mock_name in unittest.mock.assert_called error message

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15827 pull_request: https://github.com/python/cpython/pull/16229 ___ Python tracker ___ __

[issue37828] Fix default mock_name in unittest.mock.assert_called error message

2019-09-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5f5f11faf9de0d8dcbe1a8a4eb35d2a4232d6eaa by Pablo Galindo (Abraham Toriz Cruz) in branch 'master': bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166) https://github.com/python/cpython/commit/5f5f11faf9de0d8dc

[issue38198] Attributes of pathlib classes are not indexed in Windows help file

2019-09-17 Thread Francesco Ricciardi
New submission from Francesco Ricciardi : Attributes of pathlib classes (e.g. 'stem' or 'root') cannot be searched for in Python Windows help file index. -- assignee: docs@python components: Documentation messages: 352630 nosy: docs@python, francescor priority: normal severity: normal

[issue37828] Fix default mock_name in unittest.mock.assert_called error message

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset f668d2b775da4bcd07e142c4bc5ebd88165fadf4 by Miss Islington (bot) in branch '3.8': bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166) https://github.com/python/cpython/commit/f668d2b775da4bcd07e142c4bc5ebd88165fadf4

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5f1590d5e679f4dd0b611ef54ae512f137e78f1b by Victor Stinner (Miss Islington (bot)) in branch '3.8': bpo-37531: regrtest main process uses shorter timeout (GH-16220) (GH-16224) https://github.com/python/cpython/commit/5f1590d5e679f4dd0b611ef54ae51

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6591b4bbb1c0b9c26b99e4b2dba1e5cc8546732d by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-37531: regrtest main process uses shorter timeout (GH-16220) (GH-16223) https://github.com/python/cpython/commit/6591b4bbb1c0b9c26b99e4b2dba1e

[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15828 pull_request: https://github.com/python/cpython/pull/16231 ___ Python tracker ___ __

[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset c275312a6284bd319ea33c9abd7e15c230eca43f by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH-16070) https://github.com/python/cpython/commit/c275312a6284

[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15829 pull_request: https://github.com/python/cpython/pull/16232 ___ Python tracker ___ __

[issue37828] Fix default mock_name in unittest.mock.assert_called error message

2019-09-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I don't think 3.7 needs a backport of the fix. I am closing this as fixed since all PRs are merged. Please reopen if a backport is needed. Thanks @categulario. -- ___ Python tracker

[issue37828] Fix default mock_name in unittest.mock.assert_called error message

2019-09-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset fc022f04b41a79cacdff380435c30c8042c82b99 by Miss Islington (bot) in branch '3.7': bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH-16070) https://github.com/python/cpython/commit/fc022f04b41a79cacdff380435c30c80

[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset 3c1786f18b1542e71454f37e3f3ca1ef3eec0e5f by Miss Islington (bot) in branch '3.8': bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH-16070) https://github.com/python/cpython/commit/3c1786f18b1542e71454f37e3f3ca1ef

[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

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

[issue30367] Cannot build CPython3.6 with module “testcapimodule” statically

2019-09-17 Thread Paul Ganssle
Paul Ganssle added the comment: Is this issue only in Python 3.6? I believe Python 3.6 is only receiving security fixes at the moment, so this could only be fixed in 3.7, 3.8 and 3.9. -- nosy: +p-ganssle ___ Python tracker

[issue38199] python3.8-config --ldflags must not generate -L/usr/lib64

2019-09-17 Thread STINNER Victor
New submission from STINNER Victor : Example on Fedora 30: $ python3.8-config --ldflags -L/usr/lib64 -lcrypt -lpthread -ldl -lutil -lm -lm This command output must not generate "-L/usr/lib64". This bug report is based on this Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=

[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I thought a simple change to one file was enough, I thought to backport to 2.7. But given that I will not backport the followup changes that will affect users, I am not going to backport the more complicated changes. -- resolution: -> fixed st

[issue38183] test_idle should not access or modify user config directory

2019-09-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError -> test_idle should not access or modify user config directory ___ Python tracker

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +15830 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16233 ___ Python tracker __

[issue38180] Test pyexpat fails on Fedora 30

2019-09-17 Thread Diego Barriga
Diego Barriga added the comment: $ rpm -qa expat expat-2.2.7-1.fc30.x86_64 expat-2.2.7-1.fc30.i686 -- ___ Python tracker ___ ___ Py

[issue38200] Adding itertools.pairwise to the standard library?

2019-09-17 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : I use itertools.pairwise all the time and I wonder if the same happens to others. I'm thinking that others may be in the same situation, and having this simple recipe already included in the library would be definitely more convenient than copy/pasting

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-17 Thread Eryk Sun
Eryk Sun added the comment: Sorry, I mistakenly left out ERROR_BAD_NETPATH (53). It's at least used with mapped drives. For example, I have drive "M:" mapped to WebDAV "//live.sysinternals.com/tools", and I see this error if I disconnect the network: >>> try: nt._getfinalpathname('M:/')

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 6fbc924696b4b5097c273c06ca2d82662940e184 by Pablo Galindo in branch 'master': bpo-38187: Fix reference leak in test_tools (GH-16233) https://github.com/python/cpython/commit/6fbc924696b4b5097c273c06ca2d82662940e184 -- _

[issue38200] Adding itertools.pairwise to the standard library?

2019-09-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger type: -> enhancement versions: +Python 3.9 ___ Python tracker ___ ___ Pyt

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The original error is still present and ./python -m test test_tools -v -R 3:3 is still failing some times, but when it suceeds there are no leaks being reported. -- ___ Python tracker

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg352645 ___ Python tracker ___ ___ Python-bugs-list

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR 16233 fixes the reference leaks but the original error is still present and ./python -m test test_tools -v -R 3:3 is still failing (as in the test fails, instead of failing because there are leaks). --

[issue38179] Test subprocess fails on Fedora 30: test_group and test_extra_groups

2019-09-17 Thread Diego Barriga
Diego Barriga added the comment: That's right. The test result was success on latest master. Should i close this issue? -- ___ Python tracker ___

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2019-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg266115, Robert Collins suggested "add a different name and deprecate assertCountEqual". In msg266184, Gregory Smith said "not against adding a new name if it makes glorious sense, but we should not remove the old names from unittest as that causes un

[issue38201] Anotation problem at flask_httpauth package

2019-09-17 Thread Serkan
New submission from Serkan : if I use @auth.login_required anotation before @app.route, it is not working. It must be used after @app.route anotation. (flask_httpauth ) Sample:# from flask_httpauth import HTTPBasicAuth auth = HTTPBasicAuth() @auth.login_required @app.route('/api/v1.0/Scorin

[issue38201] Anotation problem at flask_httpauth package

2019-09-17 Thread Batuhan
Batuhan added the comment: I dont think this is a bug for cpython project. Extension modules category has a different meaning. -- nosy: +BTaskaya ___ Python tracker ___ _

[issue36876] Global C variables are a problem.

2019-09-17 Thread Vinay Sajip
Change by Vinay Sajip : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue38201] Anotation problem at flask_httpauth package

2019-09-17 Thread Ezio Melotti
Ezio Melotti added the comment: Please read the documentation for login_required at https://flask-login.readthedocs.io/en/latest/#flask_login.login_required and if you still think you have found a bug report it to the Flask bug tracker. -- nosy: +ezio.melotti resolution: -> not a bu

[issue38179] Test subprocess fails on Fedora 30: test_group and test_extra_groups

2019-09-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the confirmation. I am closing this as per issue36046. -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> support dropping privileges when running subprocesses _

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset b57481318e3e3cbacd398b898f9849ec8f2d7eec by Miss Islington (bot) (Diego Alberto Barriga Martínez) in branch 'master': bpo-37904: Edition on python tutorial - section 4 (GH-16169) https://github.com/python/cpython/commit/b57481318e3e3cbacd398b898f

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15831 pull_request: https://github.com/python/cpython/pull/16234 ___ Python tracker ___ __

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15832 pull_request: https://github.com/python/cpython/pull/16235 ___ Python tracker ___ __

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15833 pull_request: https://github.com/python/cpython/pull/16236 ___ Python tracker ___ __

[issue37449] Move ensurepip off of pkgutil and to importlib.resources

2019-09-17 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +15834 pull_request: https://github.com/python/cpython/pull/16237 ___ Python tracker ___ __

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2bf31ccab3d17f3f35b42dca97f99576dfe2fc7d by Serhiy Storchaka in branch 'master': bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). (GH-16222) https://github.com/python/cpython/commit/2bf31ccab3d17f3f35b42dca97f99576df

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15835 pull_request: https://github.com/python/cpython/pull/16238 ___ Python tracker ___

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset 54ba5f19d4a654768c785468d736ed0bd05947f5 by Miss Islington (bot) in branch '3.8': bpo-38191: Accept arbitrary keyword names in NamedTuple() and TypedDict(). (GH-16222) https://github.com/python/cpython/commit/54ba5f19d4a654768c785468d736ed0bd05

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15836 pull_request: https://github.com/python/cpython/pull/16239 ___ Python tracker ___

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15837 pull_request: https://github.com/python/cpython/pull/16240 ___ Python tracker ___

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, when backported to 3.7 I have found that TypedDict is new in 3.8. So I think it is better to get rid of deprecations in TypedDict(). -- ___ Python tracker ___

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 69b3718b183a698202bd67488639bffd64a488bc by Serhiy Storchaka in branch '3.7': [3.7] bpo-38191: Accept arbitrary keyword names in NamedTuple(). (GH-16222) (GH-16239) https://github.com/python/cpython/commit/69b3718b183a698202bd67488639bffd64a4

[issue38202] A fatal error in test_dictviews

2019-09-17 Thread Zackery Spytz
New submission from Zackery Spytz : When running test_dictviews, I sometimes encounter a fatal error. ./python -m test test_dictviews Run tests sequentially 0:00:00 load avg: 0.36 [1/1] test_dictviews python: Objects/typeobject.c:3125: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed. Fata

[issue38202] A fatal error in test_dictviews

2019-09-17 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +15838 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16241 ___ Python tracker ___ __

[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8fc5839a9def34c13b6025c291434ba5fb5d6442 by Serhiy Storchaka in branch 'master': bpo-38191: Turn warnings into errors in NamedTuple() and TypedDict(). (GH-16238) https://github.com/python/cpython/commit/8fc5839a9def34c13b6025c291434ba5fb5d6442

[issue38200] Adding itertools.pairwise to the standard library?

2019-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you show some examples of what you used it for? -- assignee: -> rhettinger ___ Python tracker ___ ___

[issue13153] IDLE 3.x on Windows exits when pasting non-BMP unicode

2019-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another report today on idle-dev that pasting emoji exits IDLE. Serhiy, I applied the _tkinter part of your...args_2.patch to a branch of current master -- see serhiy_tkinter.patch. (Could push branch if helpful.). After recompiling _tkinter.c, pasting 🐱 sti

[issue30367] Cannot build CPython3.6 with module “testcapimodule” statically

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue has been fixed in 3.8 and master branches (I didn't test Python 3.7): see below. I close the issue. Reopen/comment the issue if you consider that Python 3.7 should be fixed as well. I made this change: $ git diff diff --git a/Modu

[issue38203] regrtest fails to stop test_multiprocessing_spawn worker process

2019-09-17 Thread STINNER Victor
New submission from STINNER Victor : I ran tests locally on my laptop. Tests were running for 2 minutes. I interrupted the process by pressing CTRL+c: regrtest failed to stop immediately the worker . Then, regrtest main process hangs in threading._shutdown(). I had to press again CTRL+c to un

[issue38203] regrtest fails to stop test_multiprocessing_spawn worker process

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: Moreover, even after I stopped regrtest, two processes are still running in the background :-( 6535 pts/2Sl 0:00 /home/vstinner/python/master/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=4, pipe_handle=9) --multipro

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15839 pull_request: https://github.com/python/cpython/pull/16243 ___ Python tracker ___ __

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15840 pull_request: https://github.com/python/cpython/pull/16244 ___ Python tracker ___ __

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8fa3e1740b3f03ea65ddb68411c2238c5f98eec2 by Victor Stinner in branch 'master': bpo-38070: _Py_DumpTraceback() writes (GH-16244) https://github.com/python/cpython/commit/8fa3e1740b3f03ea65ddb68411c2238c5f98eec2 --

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b39afb78768418d9405c4b528c80fa968ccc974d by Victor Stinner in branch 'master': bpo-38070: Enhance _PyObject_Dump() (GH-16243) https://github.com/python/cpython/commit/b39afb78768418d9405c4b528c80fa968ccc974d -- ___

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15841 pull_request: https://github.com/python/cpython/pull/16245 ___ Python tracker ___ __

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset d3b904144e86e2442961de6a7dccecbe133d5c6d by Victor Stinner in branch 'master': bpo-38070: Add _PyRuntimeState.preinitializing (GH-16245) https://github.com/python/cpython/commit/d3b904144e86e2442961de6a7dccecbe133d5c6d --

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15842 pull_request: https://github.com/python/cpython/pull/16246 ___ Python tracker ___ __

[issue38204] Cannot compile on RPi with optimizations

2019-09-17 Thread Thomas Knox
New submission from Thomas Knox : Trying to compile 3.8.0b4 on an raspberry pi 3B+ and 4 running: pi@pi4b:~/Downloads/Python-3.8.0b4 $ uname -a Linux pi4b 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux Using arguments: ./configure --disable-shared --enable-optimizations

[issue38205] Python no longer compiles without small integer singletons

2019-09-17 Thread STINNER Victor
New submission from STINNER Victor : With the following change, Python no longer compiles. I'm sure that it compiled successfully 2 weeks ago. diff --git a/Objects/longobject.c b/Objects/longobject.c index 4cf2b0726e..0ad2609882 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: Sadly, GH-15710 was merged without mentioning the bpo-37812 (this issue) in the final commit message :-( commit 6b519985d23bd0f0bd072b5d5d5f2c60a81a19f2 Author: animalize Date: Fri Sep 6 14:00:56 2019 +0800 replace inline function `is_small_int` with

[issue38204] Cannot compile on RPi with optimizations

2019-09-17 Thread Ammar Askar
Ammar Askar added the comment: Could you provide the output of gcc --version and ld --version -- nosy: +ammar2 ___ Python tracker ___ _

[issue38206] Clarify that tp_dealloc must decref for heap allocated type

2019-09-17 Thread Ammar Askar
New submission from Ammar Askar : When dealing with a heap allocated type (https://docs.python.org/3/c-api/typeobj.html#Py_TPFLAGS_HEAPTYPE / PyType_FromSpec), if the type has a custom tp_dealloc function then it MUST decrement the references to the type object itself due to this code block:

[issue38207] subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-09-17 Thread STINNER Victor
New submission from STINNER Victor : On Windows, the communicate() method of subprocess.Popen is implemented with threads calling: def _readerthread(self, fh, buffer): buffer.append(fh.read()) fh.close() where fh is one the Popen pipes: popen.stdout or popen.stderr. For stdout=PIPE a

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-38207 "subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe". -- ___ Python tracker __

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15843 pull_request: https://github.com/python/cpython/pull/16247 ___ Python tracker ___ __

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1ce16fb0977283ae42a9f8917bbca5f44aa69324 by Victor Stinner in branch 'master': bpo-38070: Py_FatalError() logs runtime state (GH-16246) https://github.com/python/cpython/commit/1ce16fb0977283ae42a9f8917bbca5f44aa69324 -- _

[issue38070] visit_decref(): add an assertion to check that the object is not freed

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: msg351473 example with the new assertion and enhanced debug functions: --- Modules/gcmodule.c:379: visit_decref: Assertion "!_PyObject_IsFreed(op)" failed Fatal Python error: _PyObject_AssertFailed Python runtime state: finalizing (tstate=0x1d1c9b0) Current t

[issue29652] Fix evaluation order of keys/values in dict comprehensions

2019-09-17 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue38207] subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-37424 was has been fixed: "subprocess.run timeout does not function if shell=True and capture_output=True". -- ___ Python tracker _

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: > On Windows, the following pattern _can_ hang: (...) I created bpo-38207 "subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe" to track this issue. -- ___

[issue38207] subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-09-17 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

  1   2   >