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

2019-10-17 Thread Tim Peters
Tim Peters added the comment: I'm in favor of adding all of this (covariance, coefficient, linear regression). It's still at the level of elementary statistics, and even taught in watered down "business statistics" classes. It's about the minimum that can be done beyond single-variable

[issue34508] return of non-parenthesized star-unpacking expression a SyntaxError

2019-10-17 Thread Guido van Rossum
Guido van Rossum added the comment: See: commit fd97d1f1af910a6222ea12aec42c456b64f9aee4 Author: David Cuthbert Date: Fri Sep 21 18:31:15 2018 bpo-32117: Allow tuple unpacking in return and yield statements (gh-4509) Iterable unpacking is now allowed without parentheses in

[issue34508] return of non-parenthesized star-unpacking expression a SyntaxError

2019-10-17 Thread Guido van Rossum
Guido van Rossum added the comment: Why is this still open? That feature appears already implemented. -- ___ Python tracker ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-17 Thread miss-islington
miss-islington added the comment: New changeset c615db608dbb36a5d10188f7d265dcec7bfcc3cf by Miss Islington (bot) in branch '3.8': bpo-33604: Raise TypeError on missing hmac arg. (GH-16805) https://github.com/python/cpython/commit/c615db608dbb36a5d10188f7d265dcec7bfcc3cf --

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset f33c57d5c780da1500619f548585792bb5b750ee by Gregory P. Smith in branch 'master': bpo-33604: Raise TypeError on missing hmac arg. (GH-16805) https://github.com/python/cpython/commit/f33c57d5c780da1500619f548585792bb5b750ee --

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +16380 pull_request: https://github.com/python/cpython/pull/16833 ___ Python tracker ___

[issue34508] return of non-parenthesized star-unpacking expression a SyntaxError

2019-10-17 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34977] Release Windows Store app containing Python

2019-10-17 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +16379 pull_request: https://github.com/python/cpython/pull/5812 ___ Python tracker ___

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-10-17 Thread PyScripter
PyScripter added the comment: To Steve: I want the embedded venv to have the same sys.path as if you were running the venv python interpreter. So my method takes into account for instance the include-system-site-packages option in pyvenv.cfg. Also my method sets sys.prefix in the same

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-10-17 Thread Steve Dower
Steve Dower added the comment: If you just want to be able to import modules from the venv, and you know the path to it, it's simpler to just do: import sys sys.path.append(r"path to venv\Lib\site-packages") Updating sys.executable is only necessary if you're going to use libraries

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-10-17 Thread PyScripter
PyScripter added the comment: Just in case this will be of help to anyone, I found a way to use venvs in embedded python. - You first need to Initialize python that is referred as home in pyvenv.cfg. - Then you execute the following script: import sys sys.executable = r"Path to the python

[issue37195] test_utime fails on MacOS Mojave (Kernel Version 18.6.0:)

2019-10-17 Thread Ned Deily
Ned Deily added the comment: @pablogsal, Is this still an issue for you? AFAIK, there have been no other reports of this behavior. -- ___ Python tracker ___

[issue38510] build python with --enable-shared with static linked python against libpython*.a

2019-10-17 Thread Chiu Speq
New submission from Chiu Speq : Build python with --enable-shared will create python binary linked against the shared library. You have LD_LIBRARY_PATH before using python binary if it is installed non-system wide. (ex. using gnu modules load). Changing BLDLIBRARY in configuration could make

[issue38504] Reduce the size of deb package

2019-10-17 Thread Ned Deily
Ned Deily added the comment: You might also want to try on StackOverflow or on an Ubuntu or Debian forum. We don't produce deb packages ourselves. -- nosy: +ned.deily resolution: -> third party stage: -> resolved status: open -> closed ___

[issue37839] makesetup Doesn't Handle Defines with Equal Sign

2019-10-17 Thread John Muth
John Muth added the comment: I ran into the same issue. This patch fixed it for me. diff --git a/Modules/makesetup b/Modules/makesetup index eac97ad134..0fbac03833 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -133,6 +133,7 @@ sed -e 's/[ ]*#.*//' -e '/^[]*$/d' |

[issue38509] Insufficient description of relative imports in docs.python.org

2019-10-17 Thread Aniruddha Bhattacharjee
New submission from Aniruddha Bhattacharjee : In the section "relative imports" of the documentation for "import system", the use of relative imports is explained with the use of an example, however if you try the exact same thing it gives an error. This is nicely explained in

[issue38508] Tracing events anomaly when creating a multi-line list

2019-10-17 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: If it's a feature and not a bug, seems ok to me (I reported mainly because I thought the behavior was odd, but I guess it makes sense). -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue38507] Improve the documentation of the nested list initialization

2019-10-17 Thread JUN-WEI SONG
JUN-WEI SONG added the comment: sorry that I did not notice it already documented -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue38507] Improve the documentation of the nested list initialization

2019-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is already documented. See note 2 at https://docs.python.org/3/library/stdtypes.html#common-sequence-operations. -- nosy: +serhiy.storchaka ___ Python tracker

[issue38508] Tracing events anomaly when creating a multi-line list

2019-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Considering the code as: x = { 1, 2 } It first gets constant 1. Then gets constant 2. Then build a set. Then assign it to the variable. Obviously that the variable is assigned at line 1, so you would get a backward line in any case. The set display is

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2019-10-17 Thread Steve Dower
Steve Dower added the comment: You're right that this will need fixing. But we don't really have to fix it any earlier than 3.10 - the launcher is backwards-compatible but not necessarily forwards-compatible. Still, we can take a fix whenever. Probably it should just change to using

[issue38508] Tracing events anomaly when creating a multi-line list

2019-10-17 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : When creating a multi-line list it seems that there's an additional line event that goes back to the start of the list. i.e.: considering the code as: [ 1, 2 ] when stepping through the list, a debugger would get a line event at the `1` then at `2` and

[issue38507] Improve the documentation of the nested list initialization

2019-10-17 Thread JUN-WEI SONG
New submission from JUN-WEI SONG : When I used the nested list, I need to initialize the nested list, so I used this expression: >>> nested_list = [[]] * 5 see also: https://stackoverflow.com/questions/12791501/python-initializing-a-list-of-lists So I later learned that such an expression

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2019-10-17 Thread ynyyn
New submission from ynyyn : I, for interest, read some of source code of Python launcher, and found it used string comparison function (`wcscmp()`, in function `compare_pythons()`) to sort Python version in descending order. It works well currently. But if Python 3.10 or Python 3.xx comes up

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

2019-10-17 Thread Tymek Wołodźko
Tymek Wołodźko added the comment: I expanded my PR to add simple linear regression. I also created documentation for the new functionalities. As about covariance, we can simply not expose it to the users, but I'm not convinced that there is any gain in keeping it hidden from the users. Tim

[issue38505] Mock.call_args and Mock.call_args_list not propagated to parent Mock

2019-10-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38505] Mock.call_args and Mock.call_args_list not propagated to parent Mock

2019-10-17 Thread Caris Moses
Change by Caris Moses : -- title: Mock.call_args and Mock.call_args_list -> Mock.call_args and Mock.call_args_list not propagated to parent Mock ___ Python tracker ___

[issue38505] Mock.call_args and Mock.call_args_list

2019-10-17 Thread Caris Moses
New submission from Caris Moses : 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 shows this in Python 3.7.5: from unittest import TestCase from unittest.mock import patch, Mock

[issue38358] ASSERTION ERROR WHILE USING TENSORFLOW

2019-10-17 Thread Puneet Bawa
New submission from Puneet Bawa : -is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: converting >: AssertionError: Bad argument number for Name: 3, expecting 4

[issue24260] TabError behavior doesn't match documentation

2019-10-17 Thread Mikko Rantalainen
Mikko Rantalainen added the comment: As I wrote in duplicate issue38496 (with emphasis added): I'd prefer python3 to require that *all whitespace* at the start of the all the lines is *tabs for the whole file*, or *spaces for the whole file*. And first indented line sets the preference for

[issue34953] Implement `mmap.mmap.__repr__`

2019-10-17 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset d8ca2354ed30c12b9ce37c4535222b700a727b32 by Xiang Zhang (Taine Zhao) in branch 'master': bpo-34953: Implement `mmap.mmap.__repr__` (GH-9891) https://github.com/python/cpython/commit/d8ca2354ed30c12b9ce37c4535222b700a727b32 --

[issue38504] Reduce the size of deb package

2019-10-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think python-dev or other forums would be of good help than the bug tracker given that it involves optimizing deb package. -- nosy: +xtreak ___ Python tracker

[issue34953] Implement `mmap.mmap.__repr__`

2019-10-17 Thread Xiang Zhang
Change by Xiang Zhang : -- components: +Extension Modules -Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Python tracker

[issue38493] os.CLD_KILLED and os.CLD_STOPPED should be implemented

2019-10-17 Thread Dong-hee Na
Change by Dong-hee Na : -- title: os.CLD_KILLED should be implemented -> os.CLD_KILLED and os.CLD_STOPPED should be implemented ___ Python tracker ___

[issue38504] Reduce the size of deb package

2019-10-17 Thread 刘家东
New submission from 刘家东 : I am not very good at python, but now I have a need, which is how to compile the source code into a deb package, so that the deb is minimal. The obtained deb package only need to meet the function of installing modules through pip and no extra features are needed.

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-17 Thread Walter Dörwald
Walter Dörwald added the comment: codecs.iterencode()/iterdecode() are just shallow 10-line wrappers around incremental codecs (which are used as the basis of io streams). Note that the doc string for iterencode() contains: Encodes the input strings from the iterator using an

[issue37587] JSON loads performance improvement for long strings

2019-10-17 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38503] bug: string search can find \n, but can NEVER find \r

2019-10-17 Thread Inada Naoki
Inada Naoki added the comment: It is "universal newline". See https://docs.python.org/3/library/functions.html#open and https://docs.python.org/3/glossary.html#term-universal-newlines -- nosy: +inada.naoki resolution: -> not a bug stage: -> resolved status: open -> closed

[issue38503] bug: string search can find \n, but can NEVER find \r

2019-10-17 Thread wang xuancong
New submission from wang xuancong : If I load a file which contains "\r" and "\n", I can find "\n", but not "\r". This behaviour is inconsistent in Python 3, but consistent in Python 2. >>> open('./3cjkxdnw/accessibilityLog/1570181896323.csv', >>> 'rb').read().count(b'\r') 88 >>>

[issue37587] JSON loads performance improvement for long strings

2019-10-17 Thread Inada Naoki
Inada Naoki added the comment: New changeset 9c11029bb41caab5576f354fbf808a5e91325bb0 by Inada Naoki in branch 'master': bpo-37587: json: Use _PyUnicodeWriter when scanning string. (GH-15591) https://github.com/python/cpython/commit/9c11029bb41caab5576f354fbf808a5e91325bb0 --

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

2019-10-17 Thread Louis Huemiller
Louis Huemiller added the comment: Reinstalled the server I'd been using for this issue, with Ubuntu 18.04.3 LTS Server amd64. This installation already came with Python3.6.8. Downloaded and installed Python3.7.3 and 3.8.0 from: https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz