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

2019-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, pairwise() is in the more-itertools module. A quick code search does show occasional use in the wild: https://github.com/search?q=language%3Apython+more_itertools.pairwise=Code In my own code, I've had some cases that almost fit but they

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

2019-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Greg, would you be willing to work on a PR that reverts pr15216 and pr15710 while preserving the efforts of pr15192 ? -- ___ Python tracker

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

2019-09-17 Thread Greg Price
Greg Price added the comment: > We're wasted a lot of dev time on something that never promised much value in > the first place. So, I'll revert and close this tracker issue OK, so be it. I'll certainly agree that this series of threads consumed a lot more time than I anticipated or

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

2019-09-17 Thread Ma Lin
Ma Lin added the comment: > I agree that both changes should be reverted. There is another commit after the two commits: https://github.com/python/cpython/commit/c6734ee7c55add5fdc2c821729ed5f67e237a096 It is troublesome to revert them. PR 16146 is on-going, maybe we can request the author

[issue38015] inline function generates slightly inefficient machine code

2019-09-17 Thread Greg Price
Greg Price added the comment: See followup at https://bugs.python.org/issue38205 and https://bugs.python.org/issue37812#msg352670 . The patch in GH-15710 had a side effect of introducing a call to `Py_UNREACHABLE` inside a comma-expression. A subsequent commit 3ab61473b changed

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

2019-09-17 Thread Greg Price
Greg Price added the comment: > if using a static inline function is causing issues Separately from whether there was or wasn't such an issue here, I think it's interesting to note that the build failure bpo-38205 is an example of exactly the opposite! It was caused by a combination of (a)

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

2019-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Greg, I know you're enthusiastic about this but I think both changes were a mistake. As the person who merged them, I've decided to revert them in favor of stable code (FWIW, I do care about Ma Lin's concerns in the other BPO and I don't want the

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

2019-09-17 Thread Ma Lin
Ma Lin added the comment: > It's not clear to me if anyone benchmarked to see if the > conversion to a macro had any measurable performance benefit. I tested on that day, also use this command: python.exe -m pyperf timeit -s "from collections import deque; consume = deque(maxlen=0).extend;

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

2019-09-17 Thread Greg Price
Greg Price added the comment: Thanks Victor for linking that issue back here. > A first change converted a macro to a static inline function. The second > change converted the static inline fnuction to a macro Not quite. The first change converted a macro `CHECK_SMALL_INT` to an equivalent

[issue36546] Add quantiles() to the statistics module

2019-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 31af1cce9d799475ba8c3dec3e239b4a75ce268f by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-36546: No longer a need to make "data" positional only (GH-16252) (GH-16253)

[issue36546] Add quantiles() to the statistics module

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

[issue36546] Add quantiles() to the statistics module

2019-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 272d0d017aef585acf84bb0af99a90a2a8582b2c by Raymond Hettinger in branch 'master': bpo-36546: No longer a need to make "data" positional only (GH-16252) https://github.com/python/cpython/commit/272d0d017aef585acf84bb0af99a90a2a8582b2c

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2019-09-17 Thread Greg Lindahl
Change by Greg Lindahl : -- nosy: +wumpus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36546] Add quantiles() to the statistics module

2019-09-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15847 pull_request: https://github.com/python/cpython/pull/16252 ___ Python tracker ___

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

2019-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, I agree that both changes should be reverted. We should avoid churning long stable, bug free code for minimal aesthetic value. -- ___ Python tracker

[issue37657] ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

2019-09-17 Thread Dima Tisnek
Dima Tisnek added the comment: I've nuked 3.8/.../site-packages and the problem is gone; confirmed by reinstalling 3.8 from scratch. It must've been something in the my environment, if/when I find what it was, I'll open a bug in the respective package. -- stage: -> resolved

[issue37657] ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

2019-09-17 Thread Dima Tisnek
Dima Tisnek added the comment: I've just got it again, when running `Install Certificates.command` after installing Python 3.8.0b4. Yes I do have Python 3.7 installed and had earlier 3.8 builds installed. Could it be referenced by `pip`? Or `certifi` itself? I can't find any references...

[issue38203] regrtest fails to stop test_multiprocessing_spawn worker process

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

[issue38203] regrtest fails to stop test_multiprocessing_spawn worker process

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

[issue38205] Python no longer compiles without small integer singletons

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: See https://bugs.python.org/issue37812#msg352670 and https://bugs.python.org/issue38015 -- ___ Python tracker ___

[issue38205] Python no longer compiles without small integer singletons

2019-09-17 Thread Ma Lin
Ma Lin added the comment: We can change Py_UNREACHABLE() to assert(0) in longobject.c Or remove the article in Py_UNREACHABLE() -- ___ Python tracker ___

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

2019-09-17 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +15844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16248 ___ Python tracker ___

[issue38205] Python no longer compiles without small integer singletons

2019-09-17 Thread Ma Lin
Ma Lin added the comment: This commit changed Py_UNREACHABLE() five days ago: https://github.com/python/cpython/commit/3ab61473ba7f3dca32d779ec2766a4faa0657923 If remove this change, it can be compiled successfully. -- nosy: +Ma Lin ___ Python

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

2019-09-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b9877cd2cc47b6f3512c171814c4f630286279b9 by Victor Stinner in branch 'master': bpo-37531: Skip test_regrtest.test_multiprocessing_timeout() on Windows (GH-16247) https://github.com/python/cpython/commit/b9877cd2cc47b6f3512c171814c4f630286279b9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[issue38204] Cannot compile on RPi with optimizations

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

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

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

[issue38205] Python no longer compiles without small integer singletons

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

[issue38204] Cannot compile on RPi with optimizations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[issue38203] regrtest fails to stop test_multiprocessing_spawn worker process

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

[issue38203] regrtest fails to stop test_multiprocessing_spawn worker process

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

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

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

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

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

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

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

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

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

[issue38202] A fatal error in test_dictviews

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

[issue38202] A fatal error in test_dictviews

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[issue37904] Suggested edit to Python Tutorial - Section 4

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

[issue37904] Suggested edit to Python Tutorial - Section 4

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

[issue37904] Suggested edit to Python Tutorial - Section 4

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

[issue37904] Suggested edit to Python Tutorial - Section 4

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

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

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

[issue38201] Anotation problem at flask_httpauth package

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

[issue36876] Global C variables are a problem.

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

[issue38201] Anotation problem at flask_httpauth package

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

[issue38201] Anotation problem at flask_httpauth package

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[issue38180] Test pyexpat fails on Fedora 30

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2019-09-17 Thread miss-islington
miss-islington added the comment: New changeset fc022f04b41a79cacdff380435c30c8042c82b99 by Miss Islington (bot) in branch '3.7': bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH-16070)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >