[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-09-24 Thread Michael Felt
Michael Felt added the comment: Hi all, Now that I have finally noticed that the 3.8 branches are active for AIX bots I see something that I had always thought was in the 3.8 branch, but is not yet. https://github.com/python/cpython/pull/12202 Seems the backport never succeeded. Although, i

[issue38262] Mixins - super calls in bases of multiple-inheritance with different parameters

2019-09-24 Thread Arno-Can Uestuensoez
New submission from Arno-Can Uestuensoez : The attached examples evaluate inheritance by mixins with different arameters and in different orders. The 'super()' call propagates the call resolution by definition to the next level, and cares about multiple inheritance as well as mixins. Where mixi

[issue38203] regrtest fails to stop test_multiprocessing_spawn worker process

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: I worked around the issue, but see bpo-37531 for the root issue which is not fixed yet. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38212] test_multiprocessing_spawn: test_queue_feeder_donot_stop_onexc() failed on x86 Windows7 3.x

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +15925 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16348 ___ Python tracker ___ _

[issue37123] test_multiprocessing fails randomly on Windows

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +15926 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16349 ___ Python tracker ___ _

[issue30356] test_mymanager_context() of test_multiprocessing_spawn: manager._process.exitcode=-15 on x86 Windows7 3.x

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

[issue38263] [Windows] multiprocessing: DupHandle.detach() race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE)

2019-09-24 Thread STINNER Victor
New submission from STINNER Victor : On Windows, the multiprocessing DupHandle.detach() method has race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE). Error on duplicate(): Traceback (most recent call last): File "", line 1, in File "D:\cygwin\home\db3l\buildarea\3.x.bolen-window

[issue34513] test_multiprocessing_spawn fails on x86 Windows7 3.7 buildbot

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\multiprocessing\reduction.py", line 133, in detach self._access, False, _winapi.DUPLICATE_CLOSE_SOURCE) PermissionError: [WinError 5] Access is denied I created bpo-38263 "[Windows] multipr

[issue34714] timeout in test_multiprocessing_spawn x86 Windows7 3.x buildbot

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\multiprocessing\reduction.py", line 79, in duplicate return _winapi.DuplicateHandle( PermissionError: [WinError 5] Access is denied I created bpo-38263 "[Windows] multiprocessing: DupHandle

[issue26195] Windows frozen .exe multiprocessing.Queue access is denied exception

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: No activity since 2016 and Davin considers that we lack information to debug this issue, so I close this issue as out of date. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed _

[issue17101] __main__.py Multiprocessing on Windows

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: > Is it possible to backport the fix from #10845 to 2.7? Is it actually worth > doing? I close the issue, it has been done in 2015: commit 2a6c2c9baa4bef29d605438c3e2ada01a240bdc3 Author: Nick Coghlan Date: Thu Nov 19 12:59:39 2015 +1000 Close #1012

[issue36632] test_multiprocessing_forkserver: test_rapid_restart() leaked a dangling process on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: x86 Windows7 3.8: https://buildbot.python.org/all/#/builders/210/builds/308 test_level (test.test_multiprocessing_spawn.WithProcessesTestLogging) ... ok test_rapid_restart (test.test_multiprocessing_spawn.WithProcessesTestManagerRestart) ... ok Warning -- Dan

[issue38258] ctypes ignores when a DLL function is called with too many arguments

2019-09-24 Thread Sebastian Ernst
Sebastian Ernst added the comment: Thanks a lot for the clarification, Eryk. I did not notice that it was deprecated behavior. For the "too many arguments" case I guess this is not an issue. However, just for the symmetry of things, I also looked at calling a function with TOO FEW arguments

[issue36560] test_functools leaks randomly 1 memory block

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: Recent fail on AMD64 Fedora Rawhide Refleaks 3.x: https://buildbot.python.org/all/#builders/189/builds/162 test_functools leaked [1, 2, 1] memory blocks, sum=4 -- ___ Python tracker

[issue38212] test_multiprocessing_spawn: test_queue_feeder_donot_stop_onexc() failed on x86 Windows7 3.x

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 99799c722065d0524f3ab0bc455e1938bb8dc60f by Victor Stinner in branch 'master': bpo-38212: Increase MP test_queue_feeder_donot_stop_onexc() timeout (GH-16348) https://github.com/python/cpython/commit/99799c722065d0524f3ab0bc455e1938bb8dc60f ---

[issue38212] test_multiprocessing_spawn: test_queue_feeder_donot_stop_onexc() failed on x86 Windows7 3.x

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

[issue38212] test_multiprocessing_spawn: test_queue_feeder_donot_stop_onexc() failed on x86 Windows7 3.x

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

[issue38212] test_multiprocessing_spawn: test_queue_feeder_donot_stop_onexc() failed on x86 Windows7 3.x

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset c13a4d6a94b5fab52422fcba612b3d1790aa3422 by Miss Islington (bot) in branch '3.7': bpo-38212: Increase MP test_queue_feeder_donot_stop_onexc() timeout (GH-16348) https://github.com/python/cpython/commit/c13a4d6a94b5fab52422fcba612b3d1790aa3422

[issue38212] test_multiprocessing_spawn: test_queue_feeder_donot_stop_onexc() failed on x86 Windows7 3.x

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset fea9ca1b0c6279f483a73f2040b068dd0e0d3acd by Miss Islington (bot) in branch '3.8': bpo-38212: Increase MP test_queue_feeder_donot_stop_onexc() timeout (GH-16348) https://github.com/python/cpython/commit/fea9ca1b0c6279f483a73f2040b068dd0e0d3acd

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue38262] Mixins - super calls in bases of multiple-inheritance with different parameters

2019-09-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Are your tests so huge that you need to gzip them before uploading? That makes them extremely difficult to read from the browser, and makes me extremely suspicious that this could be some form of zip bomb or other malware. Couldn't you upload a single .py f

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure about the difference between python 3.8-dev and nightly . The pipelines seem to have same configuration. The version on both pipelines is 3.8.0b4+ and the nightly build passes : https://travis-ci.org/pypa/bandersnatch/jobs/588664064 .

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: I suggest to wait one or two weeks, and if the bug doesn't reoccur: simply close the issue. -- ___ Python tracker ___ __

[issue37896] test_multiprocessing_fork hangs on an IPv6-only host

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2019-09-24 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue37338] test_multiprocessing_forkserver, SemLock: test_thousand() logged on AMD64 Ubuntu Shared 3.x: Exception ignored in:

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- title: test_multiprocessing_forkserver: test_thousand() logged on AMD64 Ubuntu Shared 3.x: Exception ignored in: -> test_multiprocessing_forkserver, SemLock: test_thousand() logged on AMD64 Ubuntu Shared 3.x: Exception ignored in:

[issue36342] test_venv failure when executed by test_multiprocessing and the platform lacks a functional sem_open()

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue has been fixed in the master branch. Reopen the issue if you consider that the fix should be backported. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-09-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Update, Some user of this function just complained on the merged pull requests here : https://github.com/python/cpython/pull/15315#issuecomment-534522962. Do we revert and deprecate ? cc @victor -- ___ Python tr

[issue34607] test_multiprocessing_forkserver is altering the environment on AMD64 FreeBSD 10.x Shared 3.7

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-24 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-09-24 Thread Wenzel Jakob
Wenzel Jakob added the comment: Hi, pybind11 developer here. A bit on context of our usage of this function: Pybind11 supports some advanced GIL-related tricks that *require* access this function. For instance, pybind11 can intercept a Python function call on the `main()` thread and delete

[issue37123] test_multiprocessing fails randomly on Windows

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0e1ae5f5430433766e023c1a6936aeba0f2b84e by Victor Stinner in branch 'master': bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) https://github.com/python/cpython/commit/b0e1ae5f5430433766e023c1a6936aeba0f2b84e --

[issue30356] test_mymanager_context() of test_multiprocessing_spawn: manager._process.exitcode=-15 on x86 Windows7 3.x

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0e1ae5f5430433766e023c1a6936aeba0f2b84e by Victor Stinner in branch 'master': bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) https://github.com/python/cpython/commit/b0e1ae5f5430433766e023c1a6936aeba0f2b84e --

[issue37123] test_multiprocessing fails randomly on Windows

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

[issue37123] test_multiprocessing fails randomly on Windows

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

[issue30356] test_mymanager_context() of test_multiprocessing_spawn: manager._process.exitcode=-15 on x86 Windows7 3.x

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

[issue30356] test_mymanager_context() of test_multiprocessing_spawn: manager._process.exitcode=-15 on x86 Windows7 3.x

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

[issue38212] test_multiprocessing_spawn: test_queue_feeder_donot_stop_onexc() failed on x86 Windows7 3.x

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

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

2019-09-24 Thread Tal Einat
Tal Einat added the comment: I can confirm that the crash from pasting these characters happens when trying to fetch the clipboard contents. We can override the built-in <> event, but then we have to get the clipboard's contents directly, and the only portable way to do that in the stdlib is

[issue38262] Mixins - super calls in bases of multiple-inheritance with different parameters

2019-09-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: I took the health of my PC into my hands *smiles* and unzipped your test cases. I don't know .sh scripts well, so I didn't run that (and Windows users won't be able to run it), but I looked at the Python scripts, and I think I have duplicated your test case

[issue37123] test_multiprocessing fails randomly on Windows

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset 46f6c566a888fb637913ef71fed28568180eafb4 by Miss Islington (bot) in branch '3.7': bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) https://github.com/python/cpython/commit/46f6c566a888fb637913ef71fed28568180eafb4

[issue30356] test_mymanager_context() of test_multiprocessing_spawn: manager._process.exitcode=-15 on x86 Windows7 3.x

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset 46f6c566a888fb637913ef71fed28568180eafb4 by Miss Islington (bot) in branch '3.7': bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) https://github.com/python/cpython/commit/46f6c566a888fb637913ef71fed28568180eafb4

[issue30356] test_mymanager_context() of test_multiprocessing_spawn: manager._process.exitcode=-15 on x86 Windows7 3.x

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset 081641fe520382d48ffead158ab528180f72017d by Miss Islington (bot) in branch '3.8': bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) https://github.com/python/cpython/commit/081641fe520382d48ffead158ab528180f72017d

[issue37123] test_multiprocessing fails randomly on Windows

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset 081641fe520382d48ffead158ab528180f72017d by Miss Islington (bot) in branch '3.8': bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) https://github.com/python/cpython/commit/081641fe520382d48ffead158ab528180f72017d

[issue37123] test_multiprocessing fails randomly on Windows

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.9 ___ Python tracker ___

[issue38140] Py_tp_dictoffset / Py_tp_finalize are unsettable in stable API

2019-09-24 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks for the feature! This still needs documentation, however. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ __

[issue38140] Py_tp_dictoffset / Py_tp_finalize are unsettable in stable API

2019-09-24 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +15934 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/16354 ___ Python tracker ___ ___

[issue38262] Mixins - super calls in bases of multiple-inheritance with different parameters

2019-09-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm not an expert on super and multiple inheritance, but let me see if I can explain what is going on. (Hopefully an expert will correct me if I get something wrong.) 1. The class C(A_With_Arg, B_With_Arg) is straight-forward: the super call inside A passe

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-24 Thread Cooper Lees
Cooper Lees added the comment: https://docs.travis-ci.com/user/languages/python/ make no mention of the difference between "3.8-dev" and "nightly". I'd expect it to be latest released 3.8 alpha/beta and Trunk (or possibly trunk on 3.8 branch) respectively. Have reached out via Twitter (unabl

[issue35540] dataclasses.asdict breaks with defaultdict fields

2019-09-24 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +15935 pull_request: https://github.com/python/cpython/pull/16356 ___ Python tracker ___

[issue35540] dataclasses.asdict breaks with defaultdict fields

2019-09-24 Thread Paul Ganssle
Paul Ganssle added the comment: Considering that `namedtuple` is special-cased, I think it's reasonable to special-case `defaultdict` as well, though it may be worth considering more general solutions that will also work for things other than the standard library. One would be to solve this

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-24 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: This change broke at least two projects: * Blender: access "interp->modules" but also "interp->builtins" * FreeCAD: access "interp->modules" It would be nice to document replacement solutions at: https://docs.python.org/dev/whatsnew/3.8.html#porting-to-python

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: Note: IMHO the "The PyInterpreterState struct has been moved into the “internal” header files (...)" entry should be documented in the "Changes in the C API" section, rather than in the "Changes in the Python API" section of: https://docs.python.org/dev/whatsn

[issue38234] The value of Py_SetPath is not used to populate the configuration

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

[issue38254] Pickle not deserializing an aiohttp ClientConnectorError exception as expected

2019-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A simplified example to reproduce the issue as below. It seems that the OSError instance passed to the constructor is pickled such that during unpickling the string part of OSError 'unittest' is passed to the constructor instead of the original OSE

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1ce152a42eaa917d7763bce93f1e1ca72530d7ca by Victor Stinner in branch 'master': bpo-38234: Py_SetPath() uses the program full path (GH-16357) https://github.com/python/cpython/commit/1ce152a42eaa917d7763bce93f1e1ca72530d7ca --

[issue36632] test_multiprocessing_forkserver: test_rapid_restart() leaked a dangling process on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-09-24 Thread Steve Dower
Steve Dower added the comment: Hey Davin - could this be related to the new tests/restart support we added at the sprints? -- nosy: +davin, steve.dower ___ Python tracker ___

[issue36632] test_multiprocessing_forkserver: test_rapid_restart() leaked a dangling process on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: > Hey Davin - could this be related to the new tests/restart support we added > at the sprints? I saw this issue for the first time last April, so it's unlikely to be a recent regression. -- ___ Python tracker <

[issue38234] The value of Py_SetPath is not used to populate the configuration

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

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset bb6bf7d342b4503a6227fd209fac934905b6a1aa by Victor Stinner in branch 'master': bpo-38234: Add tests for Python init path config (GH-16358) https://github.com/python/cpython/commit/bb6bf7d342b4503a6227fd209fac934905b6a1aa -- __

[issue38258] ctypes ignores when a DLL function is called with too many arguments

2019-09-24 Thread Eryk Sun
Eryk Sun added the comment: > Just out of curiosity, where is this data coming from? In general it's just random data on the stack. It's not worth investigating where this particular value comes from. It could be the low word of the address of a stack-allocated buffer, such as the buffer whe

[issue38254] Pickle not deserializing an aiohttp ClientConnectorError exception as expected

2019-09-24 Thread David Parks
David Parks added the comment: An answer came in over the stack overflow question. https://stackoverflow.com/questions/58019939/attributeerror-str-object-has-no-attribute-errno/58084380#58084380 The issue is that OSError implements a custom __reduce__ function which needs to be override by

[issue38254] Pickle not deserializing an aiohttp ClientConnectorError exception as expected

2019-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the clarification and the answer link. I was also just debugging along the similar lines around how OSError.__reduce__ treats the arguments something like. Custom __reduce__ for aiohttp works as explained in the SO answer. class SubOSE

[issue38242] Revert the new asyncio Streams API

2019-09-24 Thread Yury Selivanov
Yury Selivanov added the comment: I slept on this and discussed this issue privately with a few non-involved people who use asyncio daily. My final opinion on this issue: we must revert the new streaming API from asyncio and take our time to design it properly. I don't like what we have in

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

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

[issue36232] Improve error message on dbm.open

2019-09-24 Thread Dong-hee Na
Dong-hee Na added the comment: I think that this issue solved. Can we close this issue? -- nosy: +corona10 ___ Python tracker ___ _

[issue38264] Makefile appears broken - touching header causes no build

2019-09-24 Thread Vinay Sajip
New submission from Vinay Sajip : There appears to be a failure in the Makefile build logic. Steps to reproduce: 1. Make a fresh build using "make clean && make" 2. run "touch Modules/_io/_iomodule.h" 3. Run "make" again. Observed result: No related files get built. Expected result: The direct

[issue38264] Makefile appears broken - touching header causes no build

2019-09-24 Thread Vinay Sajip
Vinay Sajip added the comment: Problem also seems to occur in 3.8 and 3.7. -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue38265] Update os.pread to accept the length type as size_t

2019-09-24 Thread Dong-hee Na
New submission from Dong-hee Na : I've found this comments. // TODO length should be size_t! but Python doesn't support parsing size_t yet. (https://github.com/python/cpython/blob/279f44678c8b84a183f9eeb85e0b086228154497/Modules/posixmodule.c#L8830) I don't know when this comment was created.

[issue38265] Update os.pread to accept the length type as size_t

2019-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Length should be Py_ssize_t. Python does not support creating bytes objects larger than PY_SSIZE_T_MAX. -- ___ Python tracker ___

[issue38265] Update os.pread to accept the length type as size_t

2019-09-24 Thread Dong-hee Na
Dong-hee Na added the comment: Oh okay! Thanks for letting me know. Is it okay to switch it into Py_ssize_t? -- ___ Python tracker ___

[issue38265] Update os.pread to accept the length type as size_t

2019-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is okay. Just check that all platforms which support pread() (Linux, *BSD, macOS) pass the length as size_t instead of int. Windows does not always support length larger than 2 KiB, but it does not support pread() either. -- ___

[issue38265] Update os.pread to accept the length type as size_t

2019-09-24 Thread Dong-hee Na
Dong-hee Na added the comment: Linux: http://man7.org/linux/man-pages/man2/pread.2.html BSD: https://www.freebsd.org/cgi/man.cgi?pread(2) macOS: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pread.2.html All of them pass the length as size_

[issue13743] xml.dom.minidom.Document class is not documented

2019-09-24 Thread Alex Itkes
Alex Itkes added the comment: Although the Document, Element, etc. classes are well documented in online docs, it is sometimes easier to use pydoc to view the documentation. I think documentation strings should be included to these classes. Just created a PR adding some docstrings.

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset b5a7a4f0c20717a4c92c371583b5521b83f40f32 by Miss Islington (bot) (Samuel Freilich) in branch 'master': bpo-36871: Handle spec errors in assert_has_calls (GH-16005) https://github.com/python/cpython/commit/b5a7a4f0c20717a4c92c371583b5521b83f40f32

[issue13743] xml.dom.minidom.Document class is not documented

2019-09-24 Thread Alex Itkes
Change by Alex Itkes : -- pull_requests: -15938 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue13743] xml.dom.minidom.Document class is not documented

2019-09-24 Thread Alex Itkes
Change by Alex Itkes : -- pull_requests: +15939 pull_request: https://github.com/python/cpython/pull/16355 ___ Python tracker ___ __

[issue38266] Revert bpo-37878: Make PyThreadState_DeleteCurrent() Internal

2019-09-24 Thread Wenzel Jakob
New submission from Wenzel Jakob : A commit from a few days ago and discussed in issue #37878 removed an undocumented function PyThreadState_DeleteCurrent() from Python's public API. This function was exposed for good reasons and simply removing it because it is undocumented strikes me as a s

[issue38267] Add thread timeout for loop.shutdown_default_executor

2019-09-24 Thread Kyle Stanley
New submission from Kyle Stanley : Currently, for the recently added coroutine `loop.shutdown_default_executor()`, the executor shutdown can wait indefinitely for the threads to join. Under normal circumstances, waiting on the threads is appropriate, but there should be a timeout duration in

[issue35540] dataclasses.asdict breaks with defaultdict fields

2019-09-24 Thread Paul Ganssle
Paul Ganssle added the comment: I checked and it appears that `attrs` handles this by creating *all* dicts using the default dict_factory (similar to my original suggestion of just using `dict` instead of the specific type), if I'm reading this right: https://github.com/python-attrs/attrs/bl

[issue38266] Revert bpo-37878: Make PyThreadState_DeleteCurrent() Internal

2019-09-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I am okay with the revert but @victor may still have some reservations on this. -- ___ Python tracker ___ _

[issue38265] Update os.pread to accept the length type as size_t

2019-09-24 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +15940 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16359 ___ Python tracker ___

[issue38267] Add thread timeout for loop.shutdown_default_executor

2019-09-24 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +patch pull_requests: +15941 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16360 ___ Python tracker ___ ___

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-24 Thread Samuel Freilich
Change by Samuel Freilich : -- keywords: +patch pull_requests: +15942 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/16361 ___ Python tracker _

[issue38262] Mixins - super calls in bases of multiple-inheritance with different parameters

2019-09-24 Thread Arno-Can Uestuensoez
Arno-Can Uestuensoez added the comment: Hey, first of all thank you for the fast reply. Your examples reinforce exactly my issue. I prefer the KISS principle in providing isolated use-cases for transparency without extras. Which is seperated reduced flat calls only. The other point is, I de

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

2019-09-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +15943 pull_request: https://github.com/python/cpython/pull/16363 ___ Python tracker ___ __

[issue36587] race in logging code when fork()

2019-09-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: i don't have context for what test was needed where anymore, but https://github.com/python/cpython/pull/12704 removed the _at_fork_acquire_release_weakset. -- resolution: -> out of date stage: -> resolved status: open -> closed _

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 2180f6b058effbf49ec819f7cedbe76ddd4b700c by Gregory P. Smith (Samuel Freilich) in branch 'master': bpo-36871: Avoid duplicated 'Actual:' in assertion message (GH-16361) https://github.com/python/cpython/commit/2180f6b058effbf49ec819f7cedbe76dd

[issue36871] Misleading error from unittest.mock's assert_has_calls

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

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

2019-09-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +15945 pull_request: https://github.com/python/cpython/pull/16365 ___ Python tracker ___ __

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: The test probably has a fragile regex. I don't spend time with gdb things much myself. -- ___ Python tracker ___

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue38262] Mixins - super calls in bases of multiple-inheritance with different parameters

2019-09-24 Thread ppperry
Change by ppperry : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-24 Thread Steve Dower
Steve Dower added the comment: Um, okay then. The test already includes this: if ((sysconfig.get_config_var('PGO_PROF_USE_FLAG') or 'xxx') in (sysconfig.get_config_var('PY_CORE_CFLAGS') or '')): raise unittest.SkipTest("test_gdb is not reliable on PGO builds") Apparently this no long

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

2019-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Recap: IDLE 3.x on Windows exits with UnicodeDecodeError when pasting into editor, grep, or shell window a non-BMP astral character such as 𐒢 '\U000104a2', 𝐇, 🐍 '\U0001F40D', or 🐱 '\U0001F431' UTF-8 b'\xf0\x9f\x90\xb1', UTF-16LI b'\x3d\xd8\x31\xdc'. Display

[issue38234] The value of Py_SetPath is not used to populate the configuration

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

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 52ad33abbfb6637d74932617c7013bae0ccf6e32 by Victor Stinner in branch 'master': bpo-38234: test_embed: test pyvenv.cfg and pybuilddir.txt (GH-16366) https://github.com/python/cpython/commit/52ad33abbfb6637d74932617c7013bae0ccf6e32 -- _

[issue38262] Mixins - super calls in bases of multiple-inheritance with different parameters

2019-09-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Apologies for the Python 2.7 incompatible syntax, I hadn't noticed that you had selected 2.7. But since 2.7 (and 3.8) are in feature freeze, any behavoural changes can only apply to 3.9 or later. I'm afraid that you haven't explained why you think the code

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-24 Thread miss-islington
miss-islington added the comment: New changeset 1a17a054f6314ce29cd2632c28aeed317a615360 by Miss Islington (bot) in branch '3.8': [3.8] bpo-36871: Handle spec errors in assert_has_calls (GH-16005) (GH-16364) https://github.com/python/cpython/commit/1a17a054f6314ce29cd2632c28aeed317a615360 -

  1   2   >