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

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

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

2019-10-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: +Library (Lib) versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue38493] os.CLD_KILLED should be implemented

2019-10-15 Thread clintolsen
New submission from clintolsen : I was running some experiments with os.waitid() and noticed that os.CLD_KILLED is not listed in the documentation. However, if a process is killed by the system this (missing) value is returned from this function. It seems like possible constant values should

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

2019-10-15 Thread Louis Huemiller
Louis Huemiller added the comment: Each of the Python runs mentioned in the initial post took around 4 hours to execute. Although not as accurate, the issue can be demonstrated in less than 5 minutes through the use of: # If needed use the following to install Python3.8.0rc1 $ apt-get

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

2019-10-15 Thread Louis Huemiller
Louis Huemiller added the comment: Attached is a chart, which shows the results from the runs mentioned in the initial post. This chart was produced through the use of: ../permutations2x2_chart_results \ -f ./20191011b_chart.svg \

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-10-15 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 392a13bb9346331b087bcd8bb1b37072c126abee by Neil Schemenauer in branch 'master': bpo-38006: Add unit test for weakref clear bug (GH-16788) https://github.com/python/cpython/commit/392a13bb9346331b087bcd8bb1b37072c126abee --

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

2019-10-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: terry.reedy -> components: +Installation title: Microsoft Store app IDLE (Python 3.8) has dependency on msvcp140.dll -> Microsoft Store app IDLE (Python 3.8) needs msvcp140.dll type: crash -> behavior ___

[issue38492] Microsoft Store app IDLE (Python 3.8) has dependency on msvcp140.dll

2019-10-15 Thread evaldas
New submission from evaldas : OS: x64 Windows 10 Professional 1903 fresh installation (with latest updates) Python 3.8 app (final version 3.8.0, not RC) installation from Microsoft Store adds two shortcuts to the Start menu: - Python 3.8 - IDLE (Python 3.8) Clicking the "Python 3.8"

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16367 pull_request: https://github.com/python/cpython/pull/16816 ___ Python tracker ___

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

2019-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16368 pull_request: https://github.com/python/cpython/pull/16816 ___ Python tracker ___

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I just discovered that the assignment operator leaks variables > out of comprehensions. > ... > So it does not supersedes this optimization. That's a real bummer. IIRC, it was discussion of this proposal that motivated the creation of the walrus

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

2019-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: These two functions are right on the boundary edge of what the statistics module is trying to do, """The module is not intended to be a competitor to third-party libraries such as NumPy, SciPy, or proprietary full-featured statistics packages aimed at

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

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: This change needs to be backported to 3.7 and 3.8, but I prefer to wait to see if buildbots like this new change, before doing the backport. -- ___ Python tracker

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

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

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

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: FYI "test_start_tls_server_1()" is failing since at least 2017-12-30: https://bugs.python.org/issue32458#msg309244 I hope that my latest fix will be the last to finally make the test stable. But I always write that, and the bug always strike me in my back.

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

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: > I also got access to Zachary Ware's Gentoo buildbot worker where I can also > easily reproduce the bug using "... -F -j2". FYI disabling TLSv1.3 works around the issue on this worker. (It doesn't fix the bug, only hides it.) --

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

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the bug on my laptop with the command: ./python -u -m test test_asyncio -m test.test_asyncio.test_sslproto.SelectorStartTLSTests.test_start_tls_server_1 -F -j100 It's a race condition in the test itself, not in asyncio. PR 16815 fix it. I

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

2019-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16366 pull_request: https://github.com/python/cpython/pull/16815 ___ Python tracker ___

[issue17123] Add OCSP support to ssl module

2019-10-15 Thread Shane Harvey
Change by Shane Harvey : -- nosy: +ShaneHarvey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-10-15 Thread devlocalca
New submission from devlocalca : I can not build the 3.8.0 source code on Linux due to missing dependencies that I cannot find. More information here: https://www.reddit.com/r/Python/comments/digewe/python_38_not_possible_to_install_on_linux_why/ Can someone please show me how to

[issue17123] Add OCSP support to ssl module

2019-10-15 Thread Bernie Hackett
Bernie Hackett added the comment: OCSP is the only way Let's Encrypt supports revocation. It would be really useful to have stapling verification supported in the standard library, even just the callback support PyOpenSSL supports. https://letsencrypt.org/docs/revoking/ -- nosy:

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Jim Carroll added the comment: I understand. btw; I did a deep dive on cpython codebase, and the only references to codecs.iterencode()/iterdecode() is in ./Lib/tests/test_codecs.py. I suspect functions are not used by many people. The patch I proposed was a three line change that would

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-10-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +16365 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16814 ___ Python tracker ___

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

2019-10-15 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16364 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16813 ___ Python tracker ___

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

2019-10-15 Thread Tymek Wołodźko
New submission from Tymek Wołodźko : Covariance and Pearson's correlation are one of the most basic bivariate statistics. https://en.wikipedia.org/wiki/Covariance https://en.wikipedia.org/wiki/Pearson_correlation_coefficient -- messages: 354754 nosy: Tymek Wołodźko priority: normal

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I just discovered that the assignment operator leaks variables out of comprehensions. >>> [(j:=i*i)+1/j for i in range(1, 3)] [2.0, 4.25] >>> j 4 >>> g = ((j:=i*i*i)+1/j for i in range(1, 3)) >>> list(g) [2.0, 8.125] >>> j 8 So it does not supersedes this

[issue38489] Python 3.7 documentation is unavailable for download

2019-10-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. The full documentation builds of the current state of the docs, including the downloadable packages, occur only once every 24 hours and the 3.7.5 just missed the last iteration. It looks like they should appear in about 4 or 5 hours.

[issue38489] Python 3.7 documentation is unavailable for download

2019-10-15 Thread Daniel Schlomer
New submission from Daniel Schlomer : All the download links at https://docs.python.org/3.7/download.html return a 404 error. -- messages: 354751 nosy: schlomer priority: normal severity: normal status: open title: Python 3.7 documentation is unavailable for download type: behavior

[issue38488] Update bundled pip to 19.3

2019-10-15 Thread Xavier Fernandez
Change by Xavier Fernandez : -- components: Library (Lib) nosy: Xavier Fernandez priority: normal pull_requests: 16363 severity: normal status: open title: Update bundled pip to 19.3 type: enhancement ___ Python tracker

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-10-15 Thread Ned Deily
Change by Ned Deily : -- keywords: +3.8regression nosy: +lukasz.langa versions: +Python 3.9 ___ Python tracker ___ ___

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

2019-10-15 Thread Caris Moses
Caris Moses added the comment: I see. Thanks for your help! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2019-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It needs to approved and merged by a core dev so that it will be available by 3.7.6 and 3.8.1. To clarify the calls are recorded in 3.7.5 and 3.8.0 in mock_calls. It's a problem with assert_has_calls and autospec. As a workaround you can turn off

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

2019-10-15 Thread Caris Moses
Caris Moses added the comment: Great, thanks so much. It works with the patch. So will this patch be included in the next released version of Python? -- ___ Python tracker

[issue38487] expat infinite loop

2019-10-15 Thread Marcos Dione
New submission from Marcos Dione : I'm trying to add external entities support to xmltodict[1]. For that I extended the handler to have a ExternalEntityRefHandler handler. After reading a couple of files, the script lock in a tight loop. I ran the script with gdb (!!) and found that expat

[issue36338] urlparse of urllib returns wrong hostname

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: I modified my PR 16780 to also fix bpo-33342: "urllib IPv6 parsing fails with special characters in passwords". -- ___ Python tracker ___

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: I modified my PR 16780 to also fix this issue, my PR was written for bpo-36338. -- ___ Python tracker ___

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

2019-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: BTW, if you want the type annotation that'd be used for this, 3.8 effectively removes the Optional[] from the one listed in: https://github.com/python/typeshed/blob/master/stdlib/2and3/hmac.pyi#L16 -- ___

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

2019-10-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the feedback. Better late than never. :) A default algorithm is a bad thing when it comes to authentication. Explicit is better than implicit. A default regularly becomes obsolete as math and cryptanalysis methods move forward and need to be

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

2019-10-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +16362 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/16805 ___ Python tracker ___

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

2019-10-15 Thread Christian Heimes
Christian Heimes added the comment: The weird argument style of a required digestmod with None as default is an unfortunate outcome of the old API. The msg and digestmod argument can be passed in as keyword and as positional argument. I studied existing code and have considered to make

[issue33342] urllib IPv6 parsing fails with special characters in passwords

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

[issue38486] Dead links in mailbox doc

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +email nosy: +barry, maxking, r.david.murray ___ Python tracker ___ ___

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: It turns out there is a similar precedent which was solved in the same way: issue18787. -- ___ Python tracker ___

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +16360 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16804 ___ Python tracker

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

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I left this on to the struct module maintainers. -- nosy: +mark.dickinson, meador.inge ___ Python tracker ___

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

2019-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the confirmation. You can download the patch for the PR by appending .diff/.patch to the PR URL. The patch can be applied to your source locally with "git apply patch_file" to run my example. Reverting patch would cause AttributeError

[issue38486] Dead links in mailbox doc

2019-10-15 Thread Inada Naoki
New submission from Inada Naoki : Reported on mailing list: https://mail.python.org/archives/list/d...@python.org/thread/NIXFQMWFNSNO6RXPINY56CQQ5L7QIRUV/ qmail.org is dead. The mailbox doc [1] contains two links to man pages in qmail.org. Can we just remove them? [1]

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

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was added as a replacement of locale aware isdigit(). It was initially used only for implementing bytes.isdigit() and in PyOS_ascii_strtod(). isdigit() is not used in Modules/_struct.c, so there is nothing to replace with Py_ISDIGIT(). Currently

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

2019-10-15 Thread Caris Moses
Caris Moses added the comment: I am having some trouble figuring out how to use CPython to get the exact PR you tested on since I've never used CPython before. However, when I just install Python 3.7.5RC1 and 3.8.0RC1 from the binaries and run your code I do get the AttributeError. And when

[issue38485] BUG Modules/_io/texio.c

2019-10-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +IO nosy: +benjamin.peterson, stutzbach type: -> behavior versions: +Python 2.7, Python 3.8, Python 3.9 ___ Python tracker ___

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

2019-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs still make it look like *digestmod* is an optional argument: https://docs.python.org/3/library/hmac.html#hmac.new The help output does as well: >>> help(hmac.new) Help on function new in module hmac: new(key, msg=None,

[issue38468] Refactor python-config.in - use getvar()

2019-10-15 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38485] BUG Modules/_io/texio.c

2019-10-15 Thread Jim Carroll
New submission from Jim Carroll : The io.TextIOWrapper class initializes a codec.IncrementalEncoder and uses it to encode str, but it never calls the encoder's encode('', final=True). According to the docs https://docs.python.org/3.5/library/codecs.html#codecs.IncrementalEncoder.encode:

[issue38468] Refactor python-config.in - use getvar()

2019-10-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 3cd21aa6a1467723ccc85e6411a6cbe7fa81ef76 by Joannah Nanjekye in branch 'master': bpo-38468 : Refactor python-config (#16749) https://github.com/python/cpython/commit/3cd21aa6a1467723ccc85e6411a6cbe7fa81ef76 --

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Walter Dörwald
Walter Dörwald added the comment: The documentation might be unclear here. But the argument iterator of iterdecode(iterator, encoding, errors='strict', **kwargs) *is* supposed to be an iterable over bytes objects. In fact iterencode() transforms an iterator over strings into an iterator

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

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like test_compileall now pass on the 4 Windows workers: * https://buildbot.python.org/all/#/builders/3 * https://buildbot.python.org/all/#/builders/12 * https://buildbot.python.org/all/#/builders/40 * https://buildbot.python.org/all/#/builders/58

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

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: > create_long_path isn't taking into account _write_atomic in > Lib/importlib/_bootstrap_external.py. Yeah, I found the same issue: https://github.com/python/cpython/pull/16778#issuecomment-541764285 I began to write a complex change to take _write_atomic()

[issue38112] Compileall improvements

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: Should be fixed by: New changeset eb1dda2b56f67f09352c303588c28880c471ae87 by Petr Viktorin (Victor Stinner) in branch 'master': bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789)

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-10-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: Zachary Ware commented the new failures on the x86 Gentoo worker: "My worker was updated to OpenSSL v1.1.1d with sslv3 disabled today, which seems like a likely source of these failures." -- ___ Python tracker

[issue6462] bsddb3 intermittent test failures

2019-10-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Time to die. -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue18734] Berkeley DB versions 4.4-4.9 are not discovered by setup.py

2019-10-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Time to die. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17477] update the bsddb module do build with db 5.x versions

2019-10-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Time to die. -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -16359 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37961] Tracemalloc traces do not include original stack trace length

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your contribution Julien, I merged your PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Cooper Lees
Change by Cooper Lees : -- pull_requests: +16359 pull_request: https://github.com/python/cpython/pull/168 ___ Python tracker ___

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Cooper Lees
Change by Cooper Lees : -- keywords: +patch pull_requests: +16358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16802 ___ Python tracker ___

[issue34688] Segfault in pandas that works fine on 3.7

2019-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This has an issue in GitHub and pandas is also tested with 3.8 from https://github.com/pandas-dev/pandas/pull/28730. I am closing this as third party. -- resolution: -> third party stage: -> resolved status: open -> closed

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

2019-10-15 Thread Dong-hee Na
Dong-hee Na added the comment: > What is the benefit of such change? I think that if an API is implemented for a specific purpose, it should be used. This will help us to maintain code quality. Especially in the case of pointed out logics, since Py_ISDIGIT is exactly what we want to do, By

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38484] HTMLParser.handle_starttag should mention that value can be None

2019-10-15 Thread Sebastian Rittau
New submission from Sebastian Rittau : The documentation for HTMLParser.handle_starttag (https://docs.python.org/3/library/html.parser.html#html.parser.HTMLParser.handle_starttag) should mention that the value of an attribute can be `None` for argument-less attributes. I can submit a PR if

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread miss-islington
miss-islington added the comment: New changeset f705f8e9b58955d0d9083e98d71ba01b2e69798c by Miss Islington (bot) in branch '3.8': bpo-38478: Correctly handle keyword argument with same name as positional-only parameter (GH-16800)

[issue37961] Tracemalloc traces do not include original stack trace length

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8d59eb1b66c51b2b918da9881c57d07d08df43b7 by Victor Stinner (Julien Danjou) in branch 'master': bpo-37961, tracemalloc: add Traceback.total_nframe (GH-15545) https://github.com/python/cpython/commit/8d59eb1b66c51b2b918da9881c57d07d08df43b7

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Jim Carroll added the comment: According to the documentation (https://docs.python.org/3.7/library/codecs.html#codecs.iterdecode), the first parameter is a bytes object to decode (not an iterable of bytes). Which is also consistent with it's companion iterencode() which accepts a str

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

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the benefit of such change? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +16357 pull_request: https://github.com/python/cpython/pull/16801 ___ Python tracker ___

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f3ef06a7cb347ab7bd3cc2b0b3dcebe4f9ff36f9 by Pablo Galindo in branch 'master': bpo-38478: Correctly handle keyword argument with same name as positional-only parameter (GH-16800)

[issue37759] Polish whatsnew for 3.8

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: What's New in Python 3.8: * functools.singledispatchmethod is missing https://docs.python.org/dev/library/functools.html#functools.singledispatchmethod * About "Added new multiprocessing.shared_memory module. (Contributed by Davin Potts in bpo-35813.)".

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Cooper Lees
New submission from Cooper Lees : I'd like to propose adding a run commands (.venvrc) file support to the venv library. File Location: `~/.venvrc` This file will support all current CLI arguments and override the defaults for each CLI if present in the file. I will also endeavour to add

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first argument of iterdecode() should be an iterable of bytes objects, not a bytes object. Try codecs.iterdecode([enc], 'utf-8') -- nosy: +serhiy.storchaka ___ Python tracker

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks, Brian for the report! I have a fix ready. When merged, this will be available in the next release. -- ___ Python tracker ___

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +16356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16800 ___ Python tracker

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-10-15 Thread Arnaud Diederen
Arnaud Diederen added the comment: Python 3.8 was released yesterday, but this issue was unfortunately not addressed, making it as an embedded runtime. Are there plans to fix this for a minor 3.8 release? Thanks! -- nosy: +Arnaud Diederen ___

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

2019-10-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset eb1dda2b56f67f09352c303588c28880c471ae87 by Petr Viktorin (Victor Stinner) in branch 'master': bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789)

[issue16575] ctypes: unions as arguments

2019-10-15 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +16355 pull_request: https://github.com/python/cpython/pull/16799 ___ Python tracker ___

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Change by Jim Carroll : Added file: https://bugs.python.org/file48662/codecs.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Change by Jim Carroll : Removed file: https://bugs.python.org/file48661/codecs.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
New submission from Jim Carroll : While working with codecs.iterdecode(), encountered "can't concat int to bytes". The source of the problem is BufferedIncrementalDecoder stores it's internal buffer as a bytes (ie: b""), but decode() can be passed either a byte string or in the case of

[issue38481] Class static property not static

2019-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: When you assign to self.num, you're creating an instance variable which hides the class variable. Instead, assign directly to the class variable: class D: num = 0 def __init__(self): D.num += 1 print('D num', self.num) for i in

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (fix also released in 3.7.5) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38368] Crash when subclassing ctypes.Union

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (fix released in 3.8.0 and 3.7.5) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (3.7.5 is released with this fix) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38481] Class static property not static

2019-10-15 Thread 楚艺
New submission from 楚艺 <1090217...@qq.com>: code: -- class D: num = 0 def __init__(self): self.num += 1 print('D num', self.num) for i in range(5): D()

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : >>> import resource >>> high = 300 * 1024 * 1024 >>> resource.setrlimit(resource.RLIMIT_MEMLOCK, (high, high)) Traceback (most recent call last): File "", line 1, in ValueError: not allowed to raise maximum limit >>>

[issue38235] Docs of logging module says argument is named "lvl". TypeError.

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 6eb554583218cda9a145982a41c30612968a942f by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-38235: Correct some arguments names in logging documentation (GH-16571) (GH-16577)

  1   2   >