[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: Thank you @serhiy.storchaka and Kyle Stanley for the code review and approve. This issue is now solved. I close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

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

2019-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ad7736faf5b82a24374c601a72599adf29951080 by Serhiy Storchaka (Dong-hee Na) in branch 'master': bpo-38265: Update os.pread to accept the length type as Py_ssize_t. (GH-16359)

[issue36046] support dropping privileges when running subprocesses

2019-09-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

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

2019-09-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: i believe the issues surfaces in this are fixed at this point. of note, my mock_call_test.py example now passes. i'm not entirely sure that it _should_ pass though, but that depends on what we want create_autospec of a class to do. should that autospec'd

[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 4042e1afd252858de53e2b79d946a51a0182d1ba by Gregory P. Smith in branch '3.7': [3.7] bpo-36871: Handle spec errors in assert_has_calls (GH-16364) (GH-16374) https://github.com/python/cpython/commit/4042e1afd252858de53e2b79d946a51a0182d1ba

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-24 Thread Dong-hee Na
Dong-hee Na added the comment: I've proposed the patch on GitHub which escaping the server_title when the documenter.page is called. (It different point with msg353132. -- ___ Python tracker

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

2019-09-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +15954 pull_request: https://github.com/python/cpython/pull/16374 ___ Python tracker ___

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

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

[issue22273] abort when passing certain structs by value using ctypes

2019-09-24 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 16c0f6df62a39f9f7712b1c0577de4eefcb4c1bf by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-22273: Update ctypes to correctly handle arrays in small structur… (GH-15839) (GH-16369)

[issue22273] abort when passing certain structs by value using ctypes

2019-09-24 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset ce62dcc460cf88f663c34c4a0948c1ee1dc53f4d by Vinay Sajip (Miss Islington (bot)) in branch '3.8': bpo-22273: Update ctypes to correctly handle arrays in small structur… (GH-15839) (GH-16370)

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

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

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

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

[issue38255] Replace "method" with "attribute" in the description of super()

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

[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: Fix two typos in my previous post: #>>> This basic diamond structure represents the call signatures: I: for D II: for B and C III: for A #<<< and #>>> The current implementation changes the routed method calls to the following call

[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: Hi, first of all thank you both for the fast reply. The point is here, that the call routing and the parameter passing are intermixed. The MRO defines the call order, but does not define a signature change for the call within one inheritance layer.

[issue22273] abort when passing certain structs by value using ctypes

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

[issue22273] abort when passing certain structs by value using ctypes

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

[issue22273] abort when passing certain structs by value using ctypes

2019-09-24 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 12f209eccb1587e8c98057d9c5f865c21f4a16c1 by Vinay Sajip in branch 'master': bpo-22273: Update ctypes to correctly handle arrays in small structur… (GH-15839) https://github.com/python/cpython/commit/12f209eccb1587e8c98057d9c5f865c21f4a16c1

[issue36947] Fix 3.3.3.1 Metaclasses Documentation

2019-09-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: The existing documentation is correct, just hard to understand if you don't already understand the point of metaclasses (metaclasses are hard, the language to describe them will be inherently a little klunky). At some point, it might be nice to write a

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: I prefer rhettinger's PR to your proposed PR; while super() may be useful for things other than methods, the 99% use case is methods, and deemphasizing that is a bad idea. rhettinger's PR adds a note about other use cases without interfering with super()'s

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +15948 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16368 ___ Python tracker

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-24 Thread Dong-hee Na
Dong-hee Na added the comment: Looks like this issue can be solved by below code changed. @@ -833,7 +834,7 @@ class XMLRPCDocGenerator: def set_server_title(self, server_title): """Set the HTML title of the generated server documentation""" -self.server_title =

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-24 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-09-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The oddity I came around is the simple case of mixins with > different parameters, where both are derived from 'object'. > It is obvious, that such a class has to comply to the parents > call interface - here object - when to be used standalone. BUT

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +mdk, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: CSV reader ignore brackets

2019-09-24 Thread Cameron Simpson
On 24Sep2019 19:02, Skip Montanaro wrote: How about just replacing *\(([^)]*)\)* with *"\1"* in a wrapper class's line reading method? Will that work if the OP's (TEST1,TEST2) term itself contains quotes? Not that his example data did, but example data are usually incomplete :-) Also,

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

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: And on FreeBSD. AMD64 FreeBSD CURRENT Shared 3.x: https://buildbot.python.org/all/#/builders/168/builds/1510 == FAIL: test_init_pybuilddir (test.test_embed.InitConfigTests)

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

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: The new tests fail on macOS. x86-64 High Sierra 3.x: https://buildbot.python.org/all/#/builders/145/builds/2469 == FAIL: test_init_pybuilddir (test.test_embed.InitConfigTests)

[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 221fd84703c545408bbb4a6e0b58459651331f5c by Victor Stinner in branch 'master': bpo-38234: Cleanup getpath.c (GH-16367) https://github.com/python/cpython/commit/221fd84703c545408bbb4a6e0b58459651331f5c --

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

2019-09-24 Thread STINNER Victor
STINNER Victor added the comment: > Apparently this no longer works. Who understands these variables enough to > fix the issue? Some failures are LTO + PGO builds, but test_gdb also fails on LTO without PGO builds. The PGO_PROF_USE_FLAG check only checks for PGO. --

[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: +15947 pull_request: https://github.com/python/cpython/pull/16367 ___ Python tracker ___

[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

[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

[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 --

Re: CSV reader ignore brackets

2019-09-24 Thread Skip Montanaro
How about just replacing *\(([^)]*)\)* with *"\1"* in a wrapper class's line reading method? (I think I have the re syntax approximately right.) The csv reader will "just work". Again, nesting parens not allowed. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: CSV reader ignore brackets

2019-09-24 Thread MRAB
On 2019-09-25 00:09, Cameron Simpson wrote: On 24Sep2019 15:55, Mihir Kothari wrote: I am using python 3.4. I have a CSV file as below: ABC,PQR,(TEST1,TEST2) FQW,RTE,MDE Really? No quotes around the (TEST1,TEST2) column value? I would have said this is invalid data, but that does not help

[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 ___

[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

Re: CSV reader ignore brackets

2019-09-24 Thread Cameron Simpson
On 24Sep2019 15:55, Mihir Kothari wrote: I am using python 3.4. I have a CSV file as below: ABC,PQR,(TEST1,TEST2) FQW,RTE,MDE Really? No quotes around the (TEST1,TEST2) column value? I would have said this is invalid data, but that does not help you. Basically comma-separated rows, where

[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

[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:

[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:

[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 ___

[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 ___

[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 ___

[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)

[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

[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 ___

[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

[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

[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 ___

[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 ___

[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 ___

CSV reader ignore brackets

2019-09-24 Thread Mihir Kothari
Hi Team, I am using python 3.4. I have a CSV file as below: ABC,PQR,(TEST1,TEST2) FQW,RTE,MDE Basically comma-separated rows, where some rows have a data in column which is array like i.e. in brackets. So I need to read the file and treat such columns as one i.e. do not separate based on comma

[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:

[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

[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

[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 ___

[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:

[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)

[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.

[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

[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: 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: 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
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

[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 ___

[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

[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 ___

[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:

[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

[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

Tahoe-LAFS on Python 3 - Call for Porters

2019-09-24 Thread Jean-Paul Calderone
Hello Pythonistas, Earlier this year a number of Tahoe-LAFS community members began an effort to port Tahoe-LAFS from Python 2 to Python 3. Around five people are currently involved in a part-time capacity. We wish to accelerate the effort to ensure a

[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

[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

[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 --

[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 ___

[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

[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

[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 --

[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

Re: Exception

2019-09-24 Thread ast
Le 24/09/2019 à 15:51, אורי a écrit : https://stackoverflow.com/a/24752607/1412564 thank you for link. it's clear now -- https://mail.python.org/mailman/listinfo/python-list

[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 ___

[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:

[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:

ANN: SfePy 2019.3

2019-09-24 Thread Robert Cimrman
I am pleased to announce release 2019.3 of SfePy. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method or by the isogeometric analysis (limited support). It is distributed under

[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:

[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

[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 ___

Re: Exception

2019-09-24 Thread אורי
https://stackoverflow.com/a/24752607/1412564 אורי u...@speedy.net On Tue, Sep 24, 2019 at 4:07 PM ast wrote: > Hi > > It is not clear to me why the following code > generates 2 exceptions, ZeroDivisionError and > ArithmeticError. Since ZeroDivisionError is > catched, it shoud not bubble out. >

RE: Exception

2019-09-24 Thread David Raymond
I believe the idea is that previously, if you were handling an exception, and your handling code caused its own exception, then you would get no info about the original exception. So all useful information about the original problem would get lost because of an oopsie in the handling code. So

[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

Exception

2019-09-24 Thread ast
Hi It is not clear to me why the following code generates 2 exceptions, ZeroDivisionError and ArithmeticError. Since ZeroDivisionError is catched, it shoud not bubble out. Found here: https://www.pythonsheets.com/notes/python-new-py3.html >>> def func(): ... try: ... 1 / 0 ...

[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

[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 ___

[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 ___

[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 ___

[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

[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

  1   2   >