[issue38436] Improved performance for list addition.

2019-10-16 Thread Brandt Bucher
Brandt Bucher added the comment: I'm going to go ahead and close this, since the payoff doesn't seem to be worth the effort. Thanks for the benchmarking and feedback! -- resolution: -> rejected stage: patch review -> resolved status: open -> closed

[issue34864] In Idle, Mac tabs make editor status line disappear.

2019-10-16 Thread Ned Deily
Ned Deily added the comment: Should be: "I did't *try* elsewhere.", not "see elsewhere". -- ___ Python tracker ___ ___

[issue34864] In Idle, Mac tabs make editor status line disappear.

2019-10-16 Thread Ned Deily
Ned Deily added the comment: FTR, Raymond reports in a tweet (https://twitter.com/raymondh/status/1184667350953447424) that it is possible to get logged out if you ignore the warning and try to open a file in IDLE when the System Preference is set to always open documents in tabs. I was

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Louis Huemiller
Louis Huemiller added the comment: Thank you for looking into the potential issue. Instead of getting Python3.8 from ppa:deadsnakes/ppa, I downloaded the source from: https://www.python.org/ftp/python/3.8.0/Python-3.8.0rc1.tgz Then did the following to build and install it: $ cd

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please open a new issue. It's getting little hard to track on this since it was closed and has 2 PRs merged. -- ___ Python tracker

[issue38493] os.CLD_KILLED should be implemented

2019-10-16 Thread Dong-hee Na
Dong-hee Na added the comment: > What about CLD_STOPPED? I think that it should be added also. I 've added the CLD_STOPPED on PR 16821. -- ___ Python tracker ___

[issue17123] Add OCSP support to ssl module

2019-10-16 Thread Daniel Kahn Gillmor
Daniel Kahn Gillmor added the comment: On Thu 2019-10-10 01:38:42 +, Benjamin Peterson wrote: > Considering OSCP has fallen out of favor relative to CT in recent > years, may be should simply reject this feature request. CT provides the possibility of a website operator to *detect* CA

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2019-10-16 Thread Paul Silisteanu
Paul Silisteanu added the comment: Same issue on Window 10 and macOS Catalina with Python 3.8.0. Here is the error I get on Windows 10: C:\Users\x>py -3.8 Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or

[issue33725] Python crashes on macOS after fork with no exec

2019-10-16 Thread Ryan May
Change by Ryan May : -- nosy: +Ryan May ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: On Windows, the threads reading pipes continue to run even after the direct child process exited. Problem: at Python exit (main process), Python hangs on calling threading._shutdown() which waits until all Python threads complete. One enhancement would be

[issue24302] Dead Code of Handler check in function faulthandler_fatal_error()

2019-10-16 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38502] regrtest: use process groups

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-12413 "make faulthandler dump traceback of child processes" which looks like a duplicate of bpo-18969. -- ___ Python tracker

[issue38502] regrtest: use process groups

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-18969: "test suite: enable faulthandler timeout in assert_python". This issue proposes to use killpg() to send a signal to all Python processes spawned by regrtest: trigger faulthandler to dump the Python traceback of all Python threads.

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

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-31447: "proc communicate not exiting on python subprocess timeout using PIPES". -- ___ Python tracker ___

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

2019-10-16 Thread STINNER Victor
Change by STINNER Victor : -- title: subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe -> subprocess: Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

[issue38502] regrtest: use process groups

2019-10-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16378 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16829 ___ Python tracker ___

[issue38502] regrtest: use process groups

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: Example of the problem: sometimes, interrupting a multiprocessing test hangs. regrtest fails to interrupt a TestWorkerProcess thread. $ ./python -m test test_multiprocessing_fork -j10 -F --timeout=60 --slowest 0:00:00 load avg: 1.09 Run tests in parallel

[issue38502] regrtest: use process groups

2019-10-16 Thread STINNER Victor
New submission from STINNER Victor : Problem. When regrtest is interrupted by CTRL+c and regrtest multiprocessing code (-jN command line option) is used, regrtest randomly fails to stop come TestWorkerProcess threads. The problem is that only the direct child process is kill by SIGKILL. If

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

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset a661392f8fb5ac4fc095aa1845d1eb7a25c4e9be by Victor Stinner in branch 'master': bpo-37531: regrtest now catchs ProcessLookupError (GH-16827) https://github.com/python/cpython/commit/a661392f8fb5ac4fc095aa1845d1eb7a25c4e9be --

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

2019-10-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16377 pull_request: https://github.com/python/cpython/pull/16827 ___ Python tracker ___

[issue17393] stdlib import mistaken for local by import_fixer

2019-10-16 Thread Romuald Brunet
Change by Romuald Brunet : -- keywords: +patch pull_requests: +16376 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16826 ___ Python tracker ___

[issue35297] untokenize documentation is not correct

2019-10-16 Thread Zachary McCord
Zachary McCord added the comment: I think anyone using the tokenize module to programmatically edit python source wants to use and probably does use the undocumented behavior, which should then be documented. I ran into this issue because for me this manifested as a crash: $ python3 >>>

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-16 Thread Caris Moses
Caris Moses added the comment: I believe I have found another bug related to this issue. I can start a new issue if necessary. When I use some_mock.attach_mock(...) and make calls, the resulting some_mock.call_args is None while the some_mock.mock_calls list is not empty. The code below

[issue38494] Add assert_not_called_with

2019-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you know why there is assertRaises(), but there is no assertNotRaises()? Because assertNotRaises(Exception, callable, *args, **kwargs) would be equivalent to just callable(*args, **kwargs). Call the function, and if is raised an exception, the test

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2019-10-16 Thread Eric Larson
New submission from Eric Larson : The following code hangs on Python 3.8.0.rc0 on Ubuntu 19.10 when exiting the interpreter: from multiprocessing import Pool class A(object): def __init__(self): self.pool = Pool(processes=2) solver = A() When you eventually do ctrl-C, the

[issue38497] Wrong argument name in documentation for pipes.Template.open

2019-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Semantically mode makes sense to me though rw is correct and Template.open docstring has rw. There are docs like unittest where the keyword arguments are slightly different from the actual keyword arguments in the assert helpers. I guess it's

[issue38494] Add assert_not_called_with

2019-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: assert_called_with only checks against the last call. The docs were have been fixed with issue35946. So after multiple calls the you might get an assertion error in your proposed implementation leading to the conclusion that the call never

[issue38466] [Easy doc] threading.excepthook doc talks about "object"

2019-10-16 Thread Daniel Baskal
Daniel Baskal added the comment: Hi, as a newcomer I'd like to work on this! Though, I am uncertain about whether these two hooks (threading.excepthook and sys.unraisablehook) have similar behavior and wouldn't it be misleading to simply change mentions of "object" to "thread" in the docs?

[issue38194] Consistently add exist_ok / missing_ok parameters to directory creation/deletion functions

2019-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.mkdir() and os.rmdir() are wrappers around corresponding system calls. I do not think they should have additional parameters, especially for functionality which can be easily achieved by wrapping the call with the try/except block. For shutil.rmtree()

[issue38492] Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll

2019-10-16 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38492] Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll

2019-10-16 Thread miss-islington
miss-islington added the comment: New changeset 7773d391f8261a97af502ecfa74a2a588ee05f36 by Miss Islington (bot) in branch '3.8': bpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824) https://github.com/python/cpython/commit/7773d391f8261a97af502ecfa74a2a588ee05f36

[issue38194] Consistently add exist_ok / missing_ok parameters to directory creation/deletion functions

2019-10-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38492] Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll

2019-10-16 Thread Steve Dower
Steve Dower added the comment: New changeset 7aebbd1182bc818324656b2fb764679faf51fdff by Steve Dower in branch 'master': bpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824) https://github.com/python/cpython/commit/7aebbd1182bc818324656b2fb764679faf51fdff

[issue38492] Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll

2019-10-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +16375 pull_request: https://github.com/python/cpython/pull/16825 ___ Python tracker ___

[issue38499] Add rmtree() to pathlib.Path

2019-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur with Karthikeyan. pathlib.Path provides an object oriented interface to file path operations and to low-level filesystem operations. rmtree() is a high-level and complex operation. Instead of adding more and more complex operations to the Path

[issue38499] Add rmtree() to pathlib.Path

2019-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is shutil.rmtree that accepts path objects and is more high level. From the previous discussions with respect to expanding API it's recommended to change the functions already present to accept path objects which shutil.rmtree already does

[issue38492] Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll

2019-10-16 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +16374 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16824 ___ Python tracker ___

[issue38492] Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll

2019-10-16 Thread Steve Dower
Steve Dower added the comment: I know what this is - the fix that went into the console executable didn't make it into the windowed executable. -- assignee: -> steve.dower versions: +Python 3.9 ___ Python tracker

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-10-16 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : In CPython 3.7 it was possible to do: #include "pystate.h" ... PyThreadState *ts = PyThreadState_Get(); PyInterpreterState *interp = ts->interp; interp->eval_frame = my_frame_eval_func; This is no longer possible because in 3.8 the PyInterpreterState is

[issue38491] Can not build Python 3.8.0 on Linux - missing dependencies

2019-10-16 Thread Ned Deily
Ned Deily added the comment: The Python bug tracker is a place to report bugs, not provide user support. There are many other places to get that kind of help and it appears you have been receiving help elsewhere. Good luck! -- nosy: +ned.deily resolution: -> not a bug stage: ->

[issue17393] stdlib import mistaken for local by import_fixer

2019-10-16 Thread Romuald Brunet
Romuald Brunet added the comment: Confirming that this issue is still present on 3.8 (and working on a fix) -- ___ Python tracker ___

[issue17393] stdlib import mistaken for local by import_fixer

2019-10-16 Thread Romuald Brunet
Change by Romuald Brunet : -- nosy: +Romuald ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38194] Consistently add exist_ok / missing_ok parameters to directory creation/deletion functions

2019-10-16 Thread Alori
Alori added the comment: +1 Encountered the same issue today working with Path.rmdir(). Also see a somewhat related issue here: (https://bugs.python.org/issue38499) -- nosy: +valorien ___ Python tracker

[issue38499] Add rmtree() to pathlib.Path

2019-10-16 Thread Alori
New submission from Alori : pathlib.Path supports deletion of both files (Path.unlink()) and directories (Path.rmdir()). Unfortunately, Path.rmdir() does not allow deletion of non-empty directories which means users must use shutil.rmtree() when deleting such paths. Since pathlib.Path

[issue38493] os.CLD_KILLED should be implemented

2019-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about CLD_STOPPED? For reference, other CLD_* constants were added in issue10812. -- nosy: +rosslagerwall, serhiy.storchaka versions: +Python 3.9 -Python 3.7 ___ Python tracker

[issue38498] The expression '' in '' == '' is evaluated as True

2019-10-16 Thread Eric V. Smith
Eric V. Smith added the comment: For future reference: Specifically, note that: '' in '' == '' is equivalent to: ('' in '') and ('' == '') -- nosy: +eric.smith resolution: works for me -> not a bug ___ Python tracker

[issue38496] Python3 allows mixture of tabs and spaces for indentation

2019-10-16 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, Serhiy. This has been reported in 24260, so I'm closing this issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> TabError behavior doesn't match documentation type: -> behavior

[issue38496] Python3 allows mixture of tabs and spaces for indentation

2019-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems related issue24260 -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list

[issue38493] os.CLD_KILLED should be implemented

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

[issue38493] os.CLD_KILLED should be implemented

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

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: Buildbots are green on the 3.x branch. I backported my fix to 3.7 and 3.8. I close the issue. I hope that I will not have to reopen it again. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1bceb0e58905fd6d241d7d566e19ca78558973dd by Victor Stinner in branch '3.7': bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) (GH-16818) https://github.com/python/cpython/commit/1bceb0e58905fd6d241d7d566e19ca78558973dd

[issue38495] print built-in function docs bug

2019-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe just explain defaults in the text? Print *objects* to the text stream *file* (the standard output by default), separated by *sep* (a space by default) and followed by *end* (a newline by default). -- nosy: +serhiy.storchaka

[issue38496] Python3 allows mixture of tabs and spaces for indentation

2019-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Mikko. Yes, the heuristic used in Python 3 is unable to catch all inconsistencies in using tabs and spaces. Such bug was already reported early. There should be an open issue. -- nosy: +serhiy.storchaka

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-16 Thread Tymek Wołodźko
Tymek Wołodźko added the comment: In case there is agreement with Steven, I will add simple linear regression ( https://en.wikipedia.org/wiki/Simple_linear_regression ) in the same PR, since it is just: slope = correlation(x, y) * ( stdev(y) / stdev(x) ) intercept = mean(y) - slope * mean(x)

[issue36076] ssl.get_server_certificate should use SNI

2019-10-16 Thread Juho Vähä-Herttua
Change by Juho Vähä-Herttua : -- keywords: +patch pull_requests: +16372 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16820 ___ Python tracker

[issue38470] test_compileall fails in AMD64 Windows7 SP1 3.x

2019-10-16 Thread Juho Vähä-Herttua
Change by Juho Vähä-Herttua : -- pull_requests: +16371 pull_request: https://github.com/python/cpython/pull/16819 ___ Python tracker ___

[issue38495] print built-in function docs bug

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: https://github.com/sphinx-doc/sphinx/pull/6401/files Recent Sphinx uses . So we can add style like this: .sig-paren { font-family: monospace, sans-serif; font-style: normal; } -- ___ Python tracker

[issue38496] Python3 allows mixture of tabs and spaces for indentation

2019-10-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: I believe that the interpreter only requires that each block is consistent, not that all blocks in a module are consistent. -- nosy: +steven.daprano ___ Python tracker

[issue38498] The expression '' in '' == '' is evaluated as True

2019-10-16 Thread Weiliang Li
Weiliang Li added the comment: https://docs.python.org/3/reference/expressions.html#comparisons -- ___ Python tracker ___ ___

[issue38498] The expression '' in '' == '' is evaluated as True

2019-10-16 Thread Weiliang Li
Change by Weiliang Li : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38498] The expression '' in '' == '' is evaluated as True

2019-10-16 Thread Weiliang Li
Change by Weiliang Li : -- resolution: -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: I can't speak for other countries, but in Australia, secondary school mathematics teaches correlation coefficient and linear regression from Year 11 onwards (typically ages 16 or 17). Covariance is not itself taught, and as far as I can tell neither the

[issue38498] The expression '' in '' == '' is evaluated as True

2019-10-16 Thread Weiliang Li
New submission from Weiliang Li : In [1]: '' in '' == '' Out[1]: True In [2]: 'a' in 'a' == 'a' Out[2]:

[issue38498] The expression '' in '' == '' is evaluated as True

2019-10-16 Thread Weiliang Li
Change by Weiliang Li : -- nosy: kigawas priority: normal severity: normal status: open title: The expression '' in '' == '' is evaluated as True type: behavior versions: Python 3.7 ___ Python tracker

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-16 Thread miss-islington
miss-islington added the comment: New changeset afbcd9f26d1bf5390f56f18c9afbf753e48f230d by Miss Islington (bot) in branch '3.8': bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) https://github.com/python/cpython/commit/afbcd9f26d1bf5390f56f18c9afbf753e48f230d --

[issue38495] print built-in function docs bug

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: Space is not trimmed. You can confirm there is a space by copy it from rendered HTML. print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)¶ So this is caused by rendering sep=' '. I don't like , but I'm not sure this can be customized by theme.

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16370 pull_request: https://github.com/python/cpython/pull/16818 ___ Python tracker ___

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +16369 pull_request: https://github.com/python/cpython/pull/16817 ___ Python tracker ___

[issue38495] print built-in function docs bug

2019-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: In the sphinx source it's ' ' so maybe it's a problem with the rendering part. https://raw.githubusercontent.com/python/cpython/master/Doc/library/functions.rst .. function:: print(*objects, sep=' ', end='\\n', file=sys.stdout, flush=False)

[issue38497] Wrong argument name in documentation for pipes.Template.open

2019-10-16 Thread Ilaï
New submission from Ilaï : Documentation for the pipes module indicates that the second argument of open() is "mode", but it is actually "rw". Python 3.7.4 (default, Oct 4 2019, 06:57:26) [GCC 9.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from pipes

[issue38496] Python3 allows mixture of tabs and spaces for indentation

2019-10-16 Thread Eric V. Smith
Eric V. Smith added the comment: I can verify this on 3.7.4. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list

[issue38496] Python3 allows mixture of tabs and spaces for indentation

2019-10-16 Thread Mikko Rantalainen
New submission from Mikko Rantalainen : Contrary to PEP-8 (https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces) claiming "Python 3 disallows mixing the use of tabs and spaces for indentation", in reality Python 3 allows mixing tabs and spaces without warnings or errors. For example (with

[issue38373] List overallocation strategy

2019-10-16 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38495] print built-in function docs bug

2019-10-16 Thread Alex Mashianov
New submission from Alex Mashianov : Python docs says print() function default sep='': http://joxi.ru/EA44JnfonNwLAb.png While in reality sep=' ': http://joxi.ru/n2YXyRsbw6oYm6.png Probably it's a bug with space not being escaped in html to prevent trimming. -- assignee: docs@python

[issue38474] digit check logic can be replaced by Py_ISDIGIT on prepare_s

2019-10-16 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: If I compile my own 3.7.5 and 3.8.0 both with --enable-optimizations, I am unable to reproduce this. greg@zoonaut:~/sandbox/python/cpython/lh$ ../b37/python permutations2x2 --max_depth 6 | egrep "^# Total_Time" # Total_Time: 75.92

[issue38474] digit check logic can be replaced by Py_ISDIGIT on prepare_s

2019-10-16 Thread Dong-hee Na
Dong-hee Na added the comment: > I'm inclined to agree: the current code works and is efficient; there's no > strong reason to change it. Okay, then I will close the PR. I respect core developer's opinions. -- ___ Python tracker

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-16 Thread Tymek Wołodźko
Tymek Wołodźko added the comment: I think I see your point, that the module is intended for the most basic features, but I would argue that correlation is one of such "most basic" statistics. Correlation and covariance can be thought as equivalents for standard deviation and variance, but when

[issue38494] Add assert_not_called_with

2019-10-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord, xtreak versions: +Python 3.9 ___ Python tracker ___

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: Deadsneak Python 3.8: >>> sysconfig.get_config_var('CFLAGS') '-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security' Disco /usr/bin/python3.7: >>> sysconfig.get_config_var('CFLAGS')

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: Ah, my bad. I meant `perf stat python ...`. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: I can not confirm performance regression in 3.8.0. $ time ~/pyenv/versions/3.7.3/bin/python permutations2x2 --max_depth 6 | egrep "^# Total_Time" ; time ~/pyenv/versions/3.8.0/bin/python permutations2x2 --max_depth 6 | egrep "^# Total_Time" # Total_Time: 50.24

[issue38474] digit check logic can be replaced by Py_ISDIGIT on prepare_s

2019-10-16 Thread Mark Dickinson
Mark Dickinson added the comment: > Rewriting all this code just because we have Py_ISDIGIT() is a code churn. I'm inclined to agree: the current code works and is efficient; there's no strong reason to change it. -- ___ Python tracker

[issue38494] Add assert_not_called_with

2019-10-16 Thread valkheim
New submission from valkheim : This would be nice to integrate an assert_not_called_with feature. I had to implement it to test a publish/subscribe patterns where multiple subscibers got called but not with the same arguments. Here is my implementation: ``` def assert_not_called_with(self,