[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread miss-islington
miss-islington added the comment: New changeset 0b4c87ef8f88a4c4c325e964fa4919cef3997605 by Miss Islington (bot) in branch '3.9': bpo-41193: Ignore OSError in readline write_history() (GH-21279) https://github.com/python/cpython/commit/0b4c87ef8f88a4c4c325e964fa4919cef3997605 --

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread STINNER Victor
STINNER Victor added the comment: Thanks Zbyszek for your bug report. It's now fixed in 3.8, 3.9 and master branches. -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41183] Workaround or fix for SSL "EE_KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: New changeset d565be84993a3d618add139cf21038e12c60a13e by Christian Heimes in branch '3.5': bpo-41183: Update test certs and keys (#21258) https://github.com/python/cpython/commit/d565be84993a3d618add139cf21038e12c60a13e --

[issue34542] [TLS] Update test certs to future proof settings

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: New changeset d565be84993a3d618add139cf21038e12c60a13e by Christian Heimes in branch '3.5': bpo-41183: Update test certs and keys (#21258) https://github.com/python/cpython/commit/d565be84993a3d618add139cf21038e12c60a13e -- nosy: +larry

[issue41183] Workaround or fix for SSL "EE_KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: Thanks for the backport! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34542] [TLS] Update test certs to future proof settings

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: I also needed a backport of this to 3.5. See #41183. Also, it looks like this issue should have been closed long ago, so I'll go ahead and do that. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Christian Heimes
Christian Heimes added the comment: I'm all in favor to remove deprecated things, but please set a tangible deadline first. A lot of these functions have been deprecated for like a decade. Users tend to forget about deprecations or assume that removal was never going to happen. For example

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: The 3.6 branch of python/cpython fails as well on this machine. Output attached. -- Added file: https://bugs.python.org/file49288/test_ssl_36_branch ___ Python tracker

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Inada Naoki
Inada Naoki added the comment: I don't propose adding DeprecationWarning in 3.9 in this issue. I don't propose removing functions that don't emit DeprecationWarning. My first message is just a starting point. I don't propose to remove them all. --

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Christian Heimes
Christian Heimes added the comment: test_ssl_36_branch just contains "1 test failed: test_ssl". Could you please attach a verbose run? The problems are caused by security policy. We had similar issues in Fedora. - Set OPENSSL_TLS_SECURITY_LEVEL=2 as compiled-in minimum security

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: ./python -m test -v test_ssl >& test_ssl_verbose_36_master -- Added file: https://bugs.python.org/file49290/test_ssl_verbose_36_master ___ Python tracker

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Inada Naoki
Inada Naoki added the comment: For the record, I noticed DeprecationWarning is not shown by unittest.runner by default. For example, https://travis-ci.org/github/necaris/python3-openid/jobs/703119609 So deprecated aliases should be not removed in 3.10. --

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +20427 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21278 ___ Python tracker ___

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: Gotcha. Thanks for looking into it for me. I don't think the world is super anxious about getting 3.5.10rc1 so it's not a big huge deal. But I will wait to hear back from you. Thanks! -- ___ Python tracker

[issue41043] Escape the literal part of the path for glob()

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be not exactly what you meant, but see issue38144. This issue actually was opened after I looked how that feature can be used in the stdlib and found that most of uses of glob() are vulnerable. -- ___

[issue41165] [Python 3.10] Remove APIs deprecated since Python 3.3

2020-07-02 Thread Inada Naoki
Inada Naoki added the comment: Unittest aliases are deprecated in #9424. Can we remove them in Python 3.10? -- ___ Python tracker ___

[issue9424] Deprecate assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals

2020-07-02 Thread Inada Naoki
Inada Naoki added the comment: Can we remove these aliases in Python 3.10? (See also #41165) -- nosy: +inada.naoki ___ Python tracker ___

[issue41165] [Python 3.10] Remove APIs deprecated since Python 3.3

2020-07-02 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20425 pull_request: https://github.com/python/cpython/pull/21276 ___ Python tracker ___

[issue41043] Escape the literal part of the path for glob()

2020-07-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +20424 pull_request: https://github.com/python/cpython/pull/21275 ___ Python tracker ___

[issue41192] Some audit events are undocumented

2020-07-02 Thread Saiyang Gou
Saiyang Gou added the comment: Update: `os.walk`, `os.fwalk`, `pathlib.Path.glob` and `pathlib.Path.rglob` are added and documented in 3.9. -- ___ Python tracker ___

[issue41043] Escape the literal part of the path for glob()

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ecfecc2d6ce88ae71c783f0465a508c6a1b2f2b6 by Serhiy Storchaka in branch '3.9': [3.9] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21275)

[issue41043] Escape the literal part of the path for glob()

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e73896241e55f452656fd8070eb79f344091bca0 by Serhiy Storchaka in branch '3.8': [3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21277)

[issue41043] Escape the literal part of the path for glob()

2020-07-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: Christian: Help! Again! I merged your PR, pulled a fresh copy, built it, and ran the test suite. I get seven failures in I think the same modules. Most of the failures are either "ssl.SSLError: [SSL] internal error (_ssl.c:728)", or some flavor of

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: Upgrading to release blocker. -- priority: high -> release blocker resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Christian Heimes
Christian Heimes added the comment: I'm testing with latest build of OpenSSL 1.1.1 and Fedora's DEFAULT crypto policy here. Your vendor may have configured OpenSSL with a more strict crypto policy. Could you please attach a full output of ./python -m test -v test_ssl? Does the 3.6 test

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: test_ssl was one of the seven modules that failed. But attached here is just the output of % ./python -m test -v test_ssl >& test_ssl_failure -- Added file: https://bugs.python.org/file49287/test_ssl_failure ___

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: I assume this is building against the system OpenSSL. On this machine, the "openssl", "libssl1.1", and "libssl-dev" packages are all version "1.1.1f-1ubuntu2". The OS is "Pop!_OS" version 20.04, which is a derivative of Ubuntu 20.04. It appears to be

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: Do you need a temporary login on one of my Pop!_OS computers, in order to test? -- ___ Python tracker ___

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Christian Heimes
Christian Heimes added the comment: GH-21278 takes care of test failures related to DH params. For the other test failures somebody has to backport df6ac7e2b82d921a6e9ff5571b40c6dbcf635581 to 3.6 and 3.5. I cannot promise that I'm able to find time to do the backport today. --

[issue41192] Some audit events are undocumented

2020-07-02 Thread Saiyang Gou
New submission from Saiyang Gou : Currently the following audit events are not documented on docs.python.org: - _winapi.CreateFile - _winapi.CreateJunction - _winapi.CreateNamedPipe - _winapi.CreatePipe - _winapi.CreateProcess - _winapi.OpenProcess - _winapi.TerminateProcess -

[issue41043] Escape the literal part of the path for glob()

2020-07-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +20426 pull_request: https://github.com/python/cpython/pull/21277 ___ Python tracker ___

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-02 Thread Stefan Behnel
Change by Stefan Behnel : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41165] [Python 3.10] Remove APIs deprecated since Python 3.3

2020-07-02 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Inada Naoki
Change by Inada Naoki : -- title: [Python 3.10] Remove APIs deprecated since Python 3.3 -> [Python 3.10] Remove APIs deprecated long enough ___ Python tracker ___

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: I can't seem to be able to attach a gziped coredump (7MB) -- ___ Python tracker ___ ___

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: @arcivanov what kind of input do you pass to the compile function which leads this crash? -- ___ Python tracker ___

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread STINNER Victor
STINNER Victor added the comment: Can you provide a script to reproduce the issue? -- nosy: +vstinner ___ Python tracker ___ ___

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: I'm right now rerunning the script with debug-level build of CPython and will report as soon as I have more data. Any word on limits for attaching core dump? -- ___ Python tracker

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: I can say that it is always reproduced, both in Travis environment (Ubuntu) and in Fedora. -- ___ Python tracker ___

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch nosy: +vstinner nosy_count: 2.0 -> 3.0 pull_requests: +20428 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21279 ___ Python tracker

[issue41162] Clear audit hooks after destructors

2020-07-02 Thread Frank
Change by Frank : -- nosy: +frankli ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18080] setting CC no longer overrides default linker for extension module builds on OS X

2020-07-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: In [pypa/distutils#1](https://github.com/pypa/distutils/pull/1), I learned that the test doesn't have the intended effect. Patching `get_config_var()` has no effect because the function under test calls `get_config_vars()`. In some environments, such as

[issue41192] Some audit events are undocumented

2020-07-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: trying to improve my knn algorithm

2020-07-02 Thread Peter Otten
kyroha...@gmail.com wrote: > This is another account but I am the op. Why do you mean normalize? Sorry > I’m new at this. Take three texts containing the words covid, vaccine, program, python Some preparatory imports because I'm using numpy: >>> from numpy import array >>> from numpy.linalg

EuroPython 2020: Our Keynotes

2020-07-02 Thread M.-A. Lemburg
We’re happy to announce our keynote lineup for EuroPython 2020. * EuroPython 2020 Keynotes * https://ep2020.europython.eu/events/keynotes/ Guido van Rossum - Q -- In this session, you’ll get a chance to get your questions answered by Guido

[issue18080] setting CC no longer overrides default linker for extension module builds on OS X

2020-07-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: For easy reference, the relevant commit is https://github.com/python/cpython/commit/97345680dc. -- ___ Python tracker ___

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Inada Naoki
Inada Naoki added the comment: I found most of deprecated items in my first comment are aliving by difficult reasons. I grepped top 4000 packages and found some candidates to deprecate. ## turtle * settiltangle is not used anywhere. * tiltangle is also deprecated by docstring, but not in

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > For the record, I noticed DeprecationWarning is not shown by unittest.runner > by default. There is an open issue for this but I think it's enabled by default https://bugs.python.org/issue39892 $ cat /tmp/test_bar.py import unittest import

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread Zbyszek Jędrzejewski-Szmek
New submission from Zbyszek Jędrzejewski-Szmek : [Originally reported as https://bugzilla.redhat.com/show_bug.cgi?id=1852941.] $ touch ~/foo touch: cannot touch '/home/fedora/foo': Read-only file system $ python Python 3.9.0b3 (default, Jun 10 2020, 00:00:00) [GCC 10.1.1 20200507 (Red Hat

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread Zbyszek Jędrzejewski-Szmek
Change by Zbyszek Jędrzejewski-Szmek : -- nosy: +asottile ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
New submission from Arcadiy Ivanov : Built with pyenv on Fedora 32. Discovered while testing PyBuilder for 3.9 compatibility. $ abrt gdb e6ad9db GNU gdb (GDB) Fedora 9.1-5.fc32 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

<    1   2