[issue40860] Exception in multiprocessing/context.py under load

2020-06-03 Thread Arkady M
New submission from Arkady M : I am running an HTTP server (socketserver.ThreadingMixIn, http.server.HTTPServer) in a Docker container (FROM ubuntu:19.10) Occasionally I get an exception: Exception happened during processing of request from ('172.17.0.1', 35756) Traceback (most recent call

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread David Bolen
David Bolen added the comment: It appears the recent commit is causing a CRT exception dialog in test_close_stdin (test_repl.TestInteractiveInterpreter). The dialog can't get answered, which is what leads to the eventual timeout. The assertion is "_osfile(fh) & FOPEN" from osfinfo.cpp on

[issue40859] Update Windows build to use xz-5.2.5

2020-06-03 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +19847 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20622 ___ Python tracker ___

[issue40859] Update Windows build to use xz-5.2.5

2020-06-03 Thread Ma Lin
New submission from Ma Lin : The Windows build is using xz-5.2.2, it was released on 2015-09-29. xz-5.2.5 was released recently, maybe we can update this library. When preparing cpython-source-deps, don't forget to copy `xz-5.2.5\windows\vs2019\config.h` to `xz-5.2.5\windows\` folder.

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread David Bolen
David Bolen added the comment: I haven't had a chance to look too deeply, but the final set of commits (starting with fa7ab6aa) appear to be the common thread with all branches now failing with timeout exceptions in test_repl on the Windows 10 buildbot. The first instance was in the 3.x

[issue40840] lzma.h file not found building on macOS

2020-06-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: In [this latest routine](https://github.com/jaraco/jaraco.develop/blob/6469c7a61e7349b93f191df38eed6cd020dd79be/jaraco/develop/macos-build-python.py), on my macOS workstation with Homebrew installed locally, Python builds successfully with just a few

[issue40858] ntpath.realpath fails for broken symlinks with rooted target paths

2020-06-03 Thread Eryk Sun
New submission from Eryk Sun : ntpath.realpath fails to resolve the non-strict path of a broken relative symlink if the target is a rooted path. For example: >>> os.readlink('symlink') '\\broken\\link' >>> os.path.realpath('symlink') '\\broken\\link' >>>

[issue40857] tempfile.TemporaryDirectory() context manager can fail to propagate exceptions generated within its context

2020-06-03 Thread Tim Reid
New submission from Tim Reid : When an exception occurs within a tempfile.TemporaryDirectory() context and the directory cleanup fails, the _cleanup exception_ is propagated, not the original one. This effectively 'masks' the original exception, and makes it impossible to catch using a simple

[issue40856] IDLE line numbering should be light gray

2020-06-03 Thread Tal Einat
Tal Einat added the comment: I agree that the line numbers should be less prominent. Terry, why not change the the default? ISTM we should strive to have good default colors, they are what most users use and see. I also think we should improve the dark theme, but that's a separate issue.

[issue40855] statistics.stdev ignore xbar argument

2020-06-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Thanks Raymond, that is the intended effect, and your analysis seems plausible. -- ___ Python tracker ___

[issue40856] IDLE line numbering should be light gray

2020-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The line number sidebar colors are already user configurable. We expected preferences for this to be as diverse as for anything else. I changed them on my custom dark theme to dark blue on light blue, but I don't expect anyone else to like that.

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2020-06-03 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37483] Add PyObject_CallOneArg()

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: Oh, PyObject_CallOneArg() is missing in the What's New in Python 3.9: https://docs.python.org/dev/whatsnew/3.9.html#id1 Can someone please propose a PR to add it? I reopen the issue. -- resolution: fixed -> status: closed -> open

[issue25377] Mention octal format of mode argument of os.chmod

2020-06-03 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- keywords: +patch nosy: +amaajemyfren nosy_count: 4.0 -> 5.0 pull_requests: +19846 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20621 ___ Python tracker

[issue40855] statistics.stdev ignore xbar argument

2020-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Perhaps this would work: diff --git a/Lib/statistics.py b/Lib/statistics.py index c76a6ca519..93a4633464 100644 --- a/Lib/statistics.py +++ b/Lib/statistics.py @@ -682,8 +682,10 @@ def _ss(data, c=None): calculated from ``c`` as given. Use the second

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: Ok, I fixed bugs in the REPL on Linux and Windows in 3.8, 3.9 and master branches. I also modified PyOS_InterruptOccurred() to fail with a fatal error and a nice error message, rather than crashing with a core dump, if it's called with the GIL released. I

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6d62dc1ea4e191b8486e80a85ca0694215375424 by Victor Stinner in branch '3.9': [3.9] bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578) (GH-20618) https://github.com/python/cpython/commit/6d62dc1ea4e191b8486e80a85ca0694215375424

[issue40856] IDLE line numbering should be light gray

2020-06-03 Thread Raymond Hettinger
New submission from Raymond Hettinger : In live code demos, the visual weight of the line numbers is heavier than the code next to it. Instead, is should be light gray, just dark enough to easily locate a line of interest, and light enough to tune out while reading the line and surrounding

[issue40686] Compiler warnings in _zoneinfo.c on Windows build in 64-bit

2020-06-03 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20619 ___ Python tracker ___

[issue40850] Programming FAQ - variables local to the lambdas

2020-06-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40855] statistics.stdev ignore xbar argument

2020-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The relevant code is in the _ss() helper function: # The following sum should mathematically equal zero, but due to rounding # error may not. U, total2, count2 = _sum((x-c) for x in data) assert T == U and count == count2 total -=

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14073] allow per-thread atexit()

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36476] Runtime finalization assumes all other threads have exited.

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31517] MainThread association logic is fragile

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36724] Clear _PyRuntime at exit

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19844 pull_request: https://github.com/python/cpython/pull/20618 ___ Python tracker ___

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6f7346bb3983cd7a6aa97eeeafffb3cecd5292b8 by Victor Stinner in branch '3.8': [3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613) (GH-20616) https://github.com/python/cpython/commit/6f7346bb3983cd7a6aa97eeeafffb3cecd5292b8 --

[issue40855] statistics.stdev ignore xbar argument

2020-06-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Rob Taft
Rob Taft added the comment: I updated the test with 2 cases and the traceback is different for each when I expected them to be the same if this was purely a mock issue, the line throwing the error is the same. I can post this over with flask and see what they think. from unittest.mock

[issue37746] Provide Windows predefined access type constants

2020-06-03 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 5.0 -> 6.0 pull_requests: +19843 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20617 ___ Python tracker

[issue40853] "set() in set()" should raise TypeError: unhashable type: 'set'

2020-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > is it possible to make dict give consistent result? That is unlikely (there isn't much need, it would introduce a cross-type dependency, it would be awkward dicts which use keys in many more ways than sets do). For the time being, a user should

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19842 pull_request: https://github.com/python/cpython/pull/20616 ___ Python tracker ___

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5d2396c8cf68fba0a949c6ce474a505e3aba9c1f by Victor Stinner in branch '3.9': [3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613) https://github.com/python/cpython/commit/5d2396c8cf68fba0a949c6ce474a505e3aba9c1f --

[issue40679] show class name in method invocation TypeError

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19841 pull_request: https://github.com/python/cpython/pull/20615 ___ Python tracker ___

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Chris, I see no evidence in the *incomplete* traceback not posted here that there is a bug in mock. Mock calls "hasattr(obj, '__func__') and apparently flask, called via werkzeug, answers 'RuntimeError'. The overt bug is that calling

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19840 pull_request: https://github.com/python/cpython/pull/20613 ___ Python tracker ___

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Rob Taft
Change by Rob Taft : -- versions: +Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-06-03 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +19839 pull_request: https://github.com/python/cpython/pull/20611 ___ Python tracker ___

[issue40692] Adjust test_concurrent_futures to run more of its tests if multiprocessing.synchronize is missing

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: > Automated testing: In order to prevent regressions, I'm interested in hosting > a buildbot for at least one year, hopefully in perpetuity, on which we call > ./configure with ac_cv_posix_semaphores_enabled=no. Can't you tune an unit test to prevent

[issue39314] (readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all

2020-06-03 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Rob Taft
Rob Taft added the comment: I have confirmed that using unittest.mock instead of the 3rd party mock library in python 3.8.3 and 3.9-dev fails to patch flask.g. 3.7.7 works correctly. -- ___ Python tracker

[issue40471] Grammar typo in issubclass docstring

2020-06-03 Thread miss-islington
miss-islington added the comment: New changeset df773f8c5454acebe08c31e7308597fa5a8bf5df by Alex Povel in branch 'master': bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847) https://github.com/python/cpython/commit/df773f8c5454acebe08c31e7308597fa5a8bf5df -- nosy:

[issue40471] Grammar typo in issubclass docstring

2020-06-03 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.10, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 20610 to enhance the documentation explaining how to port existing to code to Py_SET_SIZE() & cie. -- ___ Python tracker ___

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue40837] email.utils.encode_rfc2231(string, None, None) returns broken value

2020-06-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: This will be a breaking change to the clients relying on current broken behavior, setting the fix version to 3.10 (current active). -- nosy: +orsenthil ___ Python tracker

[issue40837] email.utils.encode_rfc2231(string, None, None) returns broken value

2020-06-03 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread miss-islington
miss-islington added the comment: New changeset 911c35d5d334b8c148202f2a7a32b511958032fc by Miss Islington (bot) in branch '3.7': bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382) https://github.com/python/cpython/commit/911c35d5d334b8c148202f2a7a32b511958032fc

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread miss-islington
miss-islington added the comment: New changeset 74a1fceeb61212a24608eab8266f64c6b22679a6 by Miss Islington (bot) in branch '3.9': bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382) https://github.com/python/cpython/commit/74a1fceeb61212a24608eab8266f64c6b22679a6

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread miss-islington
miss-islington added the comment: New changeset 5b8787ef191864cd2313015959bcc3e10711aaff by Miss Islington (bot) in branch '3.8': bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382) https://github.com/python/cpython/commit/5b8787ef191864cd2313015959bcc3e10711aaff

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19838 pull_request: https://github.com/python/cpython/pull/20610 ___ Python tracker ___

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: numpy fix defines Py_SET_TYPE() and Py_SET_SIZE() on old Python versions: * https://github.com/numpy/numpy/commit/a96b18e3d4d11be31a321999cda4b795ea9eccaa * https://github.com/numpy/numpy/pull/16417 In the whole numpy code base, only 5 lines have to be

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: Similar macro for Py_SET_TYPE: #if PY_VERSION_HEX < 0x030900A4 # define Py_SET_TYPE(obj, size) do { Py_TYPE(obj) = (size); } while (0) #endif -- ___ Python tracker

[issue40679] show class name in method invocation TypeError

2020-06-03 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot, Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +19837 pull_request: https://github.com/python/cpython/pull/20609 ___ Python tracker ___

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +19835 pull_request: https://github.com/python/cpython/pull/20607 ___ Python tracker ___

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +19836 pull_request: https://github.com/python/cpython/pull/20608 ___ Python tracker ___

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: To port code to Python 3.10, the following macro can be copied/pasted in your code. It defines Py_SET_SIZE() if it's not defined. #if PY_VERSION_HEX < 0x030900A4 # define Py_SET_SIZE(obj, size) do { Py_SIZE(obj) = (size); } while (0) #endif --

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-06-03 Thread miss-islington
miss-islington added the comment: New changeset c822efeda9a0afe87cf3429724732fc8e19a01fb by Jeremy Attali in branch 'master': bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382) https://github.com/python/cpython/commit/c822efeda9a0afe87cf3429724732fc8e19a01fb --

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset fa7ab6aa0f9a4f695e5525db5a113cd21fa93787 by Victor Stinner in branch 'master': bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599) https://github.com/python/cpython/commit/fa7ab6aa0f9a4f695e5525db5a113cd21fa93787 --

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 18a90248fdd92b27098cc4db773686a2d10a4d24 by Victor Stinner in branch 'master': bpo-32604: Fix reference leak in select module (GH-20600) https://github.com/python/cpython/commit/18a90248fdd92b27098cc4db773686a2d10a4d24 --

[issue40855] statistics.stdev ignore xbar argument

2020-06-03 Thread Matti
New submission from Matti : statistics.variance also has the same problem. >>> import statistics >>> statistics.stdev([1,2]) 0.7071067811865476 >>> statistics.stdev([1,2], 3) 0.7071067811865476 >>> statistics.stdev([1,2], 1.5) 0.7071067811865476 should be 0.7071067811865476 2.23606797749979

[issue40679] show class name in method invocation TypeError

2020-06-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19834 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/20606 ___ Python tracker ___

[issue40679] show class name in method invocation TypeError

2020-06-03 Thread STINNER Victor
STINNER Victor added the comment: > bpo-40679: Use the function's qualname in certain TypeErrors (GH-20236) This change introduced a regression. See this bug in Cython: https://github.com/cython/cython/issues/3641#issuecomment-638102096 I wrote a PR to use co->co_name if qualname is NULL

[issue40853] "set() in set()" should raise TypeError: unhashable type: 'set'

2020-06-03 Thread yesheng
yesheng added the comment: thanks, it sounds reasonable. is it possible to make dict give consistent result? {1,2} in {frozenset({1,2}):3} # to return True -- ___ Python tracker

[issue38905] venv python reports wrong sys.executable in a subprocess on Windows

2020-06-03 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: encountered what I believe is the same problem, so here are some more details I noticed, after checking what exactly that process name lookup does using ProcessMonitor: - when running my external process in a `venv` generated virtual environment, POpen()

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-03 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +19832 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20605 ___ Python tracker

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-03 Thread Sandro Mani
New submission from Sandro Mani : You can currently point the python interpreter to a different install say via export PYTHONHOME= export PYTHONPATH=/lib/python3.9 python3 With the newly added platlibdir [1], if python was configured with platlibdir=lib64, this will break because

[issue40853] "set() in set()" should raise TypeError: unhashable type: 'set'

2020-06-03 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is documented in https://docs.python.org/3.8/library/stdtypes.html#set-types-set-frozenset: Instances of set are compared to instances of frozenset based on their members. For example, set('abc') == frozenset('abc') returns True and so does set('abc')

[issue40853] "set() in set()" should raise TypeError: unhashable type: 'set'

2020-06-03 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- components: +Interpreter Core nosy: +rhettinger versions: +Python 3.10, Python 3.9 ___ Python tracker ___

[issue40853] "set() in set()" should raise TypeError: unhashable type: 'set'

2020-06-03 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The set is converted to a frozenset before the comparison so >>> {1,2} in {frozenset({1,2}), 3} is equivalent to >>> frozenset({1,2}) in {frozenset({1,2}), 3} This was introduced on purpose 17 years ago in 19c2d778 so it's unlikely to change. --

[issue40853] "set() in set()" should raise TypeError: unhashable type: 'set'

2020-06-03 Thread yesheng
New submission from yesheng : >>> set() in set() False # should raise TypeError >>> dict() in set() Traceback (most recent call last): File "", line 1, in TypeError: unhashable type: 'dict' >>> set() in dict() Traceback (most recent call last): File "", line 1, in TypeError: unhashable

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Chris Withers
Chris Withers added the comment: Rob, you're welcome to dump `mock` and use `unittest.mock`, and that might be best for now, but this will then likely come back to bite you when you end up on the version of Python, probably 3.9, where it is present ;-) --

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Chris Withers
Change by Chris Withers : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40805] Can no longer patch flask.g

2020-06-03 Thread Chris Withers
Chris Withers added the comment: Terry, mock is now a rolling backport of unittest.mock with all development taking place in cpython's repo. If issues are reported there, they need to be triaged here first, as it's most likely a bug in unittest.mock that needs fixing here. Rob, please can

[issue40403] pdb does not drop into debugger upon SyntaxError caused by ast.literal_eval

2020-06-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Perhaps we should should test whether the exception happened there and not > drop in the debugger in that case? The same kind of problem occurs for any post-mortem debugging raised by an uncaught exception in the user code: the backtrace displayed by the

[issue40836] logging.fatal() and logging.Logger.fatal() should raise a DeprecationWarning

2020-06-03 Thread Vinay Sajip
Vinay Sajip added the comment: Yes, they could have a docstring indicating that it is better to use critical(). Feel free to update the PR along that line. -- ___ Python tracker

[issue31861] add aiter() and anext() functions to operator module

2020-06-03 Thread Eric Wieser
Change by Eric Wieser : -- nosy: +Eric Wieser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40852] Dictionary created with dict.fromkeys have issues (all explained in the file)

2020-06-03 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard : This isn't an issue, `value` (that is, `{}` here) is shared among all keys. Since you've added a mutable value, when you mutate it this change is seen for all keys holding the value. This is documented in dict.fromkeys

[issue40846] Misleading line in documentation

2020-06-03 Thread J Arun Mani
J Arun Mani added the comment: Hi. Thanks for your follow-up. I created a PR, since I signed CLA today, the PR has some labels indicating it. :p Thanks -- nosy: -python-dev ___ Python tracker

[issue40846] Misleading line in documentation

2020-06-03 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +19831 pull_request: https://github.com/python/cpython/pull/20603 ___ Python tracker ___

[issue40852] Dictionary created with dict.fromkeys have issues (all explained in the file)

2020-06-03 Thread Christian Heimes
Christian Heimes added the comment: Yes, this is intended behavior. Thanks Jim! -- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue40222] "Zero cost" exception handling

2020-06-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The only observable changes will be changes in the code object: new attributes and constructor parameters, changed .pyc format, dis output, etc. -- ___ Python tracker

[issue40846] Misleading line in documentation

2020-06-03 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +19830 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20602 ___ Python tracker

[issue40852] Dictionary created with dict.fromkeys have issues (all explained in the file)

2020-06-03 Thread hung son luong
Change by hung son luong : -- components: ctypes files: issue_of_python_dict.py nosy: hung son luong priority: normal severity: normal status: open title: Dictionary created with dict.fromkeys have issues (all explained in the file) type: behavior versions: Python 3.6 Added file:

[issue40847] New parser considers empty line following a backslash to be a syntax error, old parser didn't

2020-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +gvanrossum, lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40848] compile() can compile a bare starred expression with `PyCF_ONLY_AST` flag with the old parser, but not the new one

2020-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, this is not a bug as Serhiy points out. Regarding the error message, we are currently working on trying to unify the error messages in the the parser as much as we can but there is also no promise that they will match 100%. Many grammar checks

[issue40222] "Zero cost" exception handling

2020-06-03 Thread Chris Jerdonek
Chris Jerdonek added the comment: To clarify, would there be any observable difference in behavior aside from speed? And would there be any limitations in when the speedup can be applied? -- nosy: +chris.jerdonek ___ Python tracker