[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-23 Thread Jonathan Hsu
Jonathan Hsu added the comment: This exception is raised because astimezone() ends up calling time.localtime() to determine the appropriate time zone. If the datetime object has a pre-epoch value, it passes a negative timestamp to time.localtime(). On Windows, time.localtime() does not

[issue40051] Dead link in help(lib2to3)

2020-03-23 Thread wyz23x2
New submission from wyz23x2 : When typing this in shell: >>> import lib2to3 >>> help(lib2to3) The output contains this link: --snip-- MODULE REFERENCE https://docs.python.org/3.8/library/lib2to3 <-- The following documentation is automatically generated from the Python --snip--

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-23 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-23 Thread Manjusaka
Manjusaka added the comment: Actually, we already have some third party libs to support cgroup. But most of them get these questions 1. They are not std lib 2. They are just support cgroup1 But if we want to add a new std lib. Should we create a PEP? --

[issue40017] Please support CLOCK_TAI in the time module.

2020-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 687fe979705dc588a46a35da884cc0198c67 by Russell Owen in branch 'master': closes bpo-40017: Add CLOCK_TAI constant to the time module. (GH-19096) https://github.com/python/cpython/commit/687fe979705dc588a46a35da884cc0198c67

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Before commit 8334f30a74abcf7e469b901afc307887aa85a888, at the first _imp.create_builtin() calls, it calls _PyImport_FixupExtensionObject() which stores the created module in an internal "extensions" dictionary. PyInit__weakref() returns a module object.

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-03-23 Thread Derek Keeler
Change by Derek Keeler : -- keywords: +patch pull_requests: +18493 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19131 ___ Python tracker ___

[issue40034] cgi.parse() does not work with multipart POST requests.

2020-03-23 Thread San
Change by San : -- keywords: +patch pull_requests: +18492 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19130 ___ Python tracker ___

[issue40041] Typo in argparse ja-document wrong:'append', correct:'extend'

2020-03-23 Thread Yasunobu Imamura
Yasunobu Imamura added the comment: moved to https://github.com/python-doc-ja/python-doc-ja/issues/825 -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-23 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Still searching the issue and created a first draft PR. With it, tesT_ssl and test_imaplib pass now, urllib2_localnet still has issues. -- ___ Python tracker

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-23 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +18491 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19129 ___ Python tracker

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the leak with the following test, stored as Lib/test/test_leak.py: --- from test import support import unittest class Tests(unittest.TestCase): def test_import_fresh(self): support.import_fresh_module('importlib.machinery',

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 188078c39dec24aa5b3f2073bdc9a68ebaae42de by Victor Stinner in branch 'master': Revert "bpo-1635741: Port _weakref extension module to multiphase initialization (PEP 489) (GH-19084)" (#19128)

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 188078c39dec24aa5b3f2073bdc9a68ebaae42de by Victor Stinner in branch 'master': Revert "bpo-1635741: Port _weakref extension module to multiphase initialization (PEP 489) (GH-19084)" (#19128)

[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-23 Thread Jonathan Hsu
Jonathan Hsu added the comment: I'd like to take on this issue if no one else is working on it. -- ___ Python tracker ___ ___

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-03-23 Thread Brett Cannon
Brett Cannon added the comment: All sound reasonable, Derek. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-23 Thread Jonathan Hsu
Change by Jonathan Hsu : -- nosy: +Jonathan Hsu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18489 pull_request: https://github.com/python/cpython/pull/19128 ___ Python tracker ___

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18490 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19128 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: > The last merged pull request, GH-GH-19084, causes refleaks in importlib > tests. Stable buildbots are failing, I can reproduce on macOS Catalina. I expect that the bug is non-trivial, so I prefer to open a separated issue: bpo-40050 "test_importlib leaked

[issue40050] test_importlib leaked [6303, 6299, 6303] references

2020-03-23 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/206/builds/119 test_importlib leaked [6303, 6299, 6303] references, sum=18905 test_importlib leaked [2022, 2020, 2022] memory blocks, sum=6064 Issue reported at: https://bugs.python.org/issue1635741#msg364845 It

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: > Moreover, on Linux, getgrouplist() can also fail with -1 if the group list is > too small. In that case, ngroups is updated to the number of groups and so > can be used to enlarge the list! I tested by manually initializing ngroups to a value way lower

[issue36144] Dictionary union. (PEP 584)

2020-03-23 Thread Curtis Bucher
Change by Curtis Bucher : -- pull_requests: +18488 pull_request: https://github.com/python/cpython/pull/19127 ___ Python tracker ___

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18487 pull_request: https://github.com/python/cpython/pull/19126 ___ Python tracker ___

[issue38948] os.path.ismount() returns False for current working drive

2020-03-23 Thread Jonathan Hsu
Change by Jonathan Hsu : -- nosy: +Jonathan Hsu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2020-03-23 Thread paul j3
paul j3 added the comment: I think it can be closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-23 Thread Christian Heimes
Christian Heimes added the comment: I suggest that your provide a low solution that returns general information from cgroup v1 and unified cgroup v2 rather than a solution that focuses on CPU only. Then you can provide a high level interface that returns effective CPU cores. cgroup v2

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-23 Thread Keir Lawson
Change by Keir Lawson : -- nosy: -keirlawson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that it's a good idea to change os.cpucount(). I suggest to add a new function instead. os.cpu_count() iss documented as: "Return the number of CPUs in the system." https://docs.python.org/dev/library/os.html#os.cpu_count By the way, the

[issue36144] Dictionary union. (PEP 584)

2020-03-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 25e580a73c163f472fdeb5489bebef85da21655c by Curtis Bucher in branch 'master': bpo-36144: Add union operators to WeakKeyDictionary (#19106) https://github.com/python/cpython/commit/25e580a73c163f472fdeb5489bebef85da21655c --

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2020-03-23 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Thanks, will do as requested. I was planning on knocking it out yesterday, but some unexpected things came up so I might have to push it all the way to next weekend, but I'll get it done. -- ___ Python tracker

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-23 Thread Manjusaka
Manjusaka added the comment: I will make a PR in this week -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40036] Deleting duplicates in itertoolsmodule.c

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. I've applied it to the 3.9. Don't see any need to backport this because it is just a minor code cleanup. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue40036] Deleting duplicates in itertoolsmodule.c

2020-03-23 Thread Raymond Hettinger
New submission from Raymond Hettinger : New changeset 8dd1792c680caaf94a00cead82b238238f419172 by AlphaHot in branch 'master': bpo-40036: Deleting duplicates in itertoolsmodule.c (GH-18958) https://github.com/python/cpython/commit/8dd1792c680caaf94a00cead82b238238f419172 -- nosy:

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > In order to migrate from optparse to argparse we need to have > an ability to substitute anguments, e.g. remove and then create. It seems to me that the original use case is obsolete. Paul, do you think this issue should be closed? -- nosy:

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-03-23 Thread Manjusaka
Manjusaka added the comment: Hello Mike, thanks for your code. I think it's a good way I think if cpu.quota and cpu.shares are -1, just return the original value in os.cpu_count() is OK -- nosy: +vstinner ___ Python tracker

[issue40045] Make "dunder" method documentation easier to locate

2020-03-23 Thread Kyle Stanley
Kyle Stanley added the comment: > I vote for #2. It improves findability while also recognizing that "dunder" > isn't a formal term and lies somewhere between slang and jargon. Yeah, I suppose it is a bit more of a slang or jargon term rather than something with a formal definition, so

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2020-03-23 Thread Alexander Hirner
Alexander Hirner added the comment: @paul j3 FWIW, popping optionals from a cache that is maintained in addition to self._actions, makes special conflict handling unnecessary. i.e.: for option_string in a.option_strings: parser._option_string_actions.pop(option_string)

[issue40047] itertools.tee does not release resources during iteration?

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've just reviewed the code. The observed behavior is an intrinsic part of the design and was an expected behavior (noted in the comments). I don't see a non-invasive way of making the memory releases more aggressive. -- resolution: -> not a

[issue39533] Use `statx(2)` system call on Linux for extended `os.stat` information

2020-03-23 Thread ntninja
Change by ntninja : -- keywords: +patch pull_requests: +18486 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19125 ___ Python tracker ___

[issue39853] Segmentation fault with urllib.request.urlopen and threads

2020-03-23 Thread Manjusaka
Manjusaka added the comment: Hello Victor I have tried on both MacOS and Ubuntu 18.04 from 3.8.2 to the newest code in master, and can't reproduce this problem macOS-10.15.4-x86_64-i386-64bit Python 3.9.0a4+ (heads/master:9a81ab107a, Mar 24 2020, 02:06:30) [Clang 11.0.3

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
miss-islington added the comment: New changeset 1cdc61c7673f71f2cef57715e482c84efda6d9e0 by Miss Islington (bot) in branch '3.7': bpo-40014: Fix os.getgrouplist() on macOS (GH-19118) https://github.com/python/cpython/commit/1cdc61c7673f71f2cef57715e482c84efda6d9e0 --

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
miss-islington added the comment: New changeset 21bee0bd71e1ad270274499f9f58194ebb52e236 by Miss Islington (bot) in branch '3.8': bpo-40014: Fix os.getgrouplist() on macOS (GH-19118) https://github.com/python/cpython/commit/21bee0bd71e1ad270274499f9f58194ebb52e236 --

[issue36144] Dictionary union. (PEP 584)

2020-03-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset f393b2c588559162dc2e77f8079a42e48558870a by Curtis Bucher in branch 'master': bpo-36144: Add PEP 584 operators to collections.ChainMap (#18832) https://github.com/python/cpython/commit/f393b2c588559162dc2e77f8079a42e48558870a --

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +18484 pull_request: https://github.com/python/cpython/pull/19123 ___ Python tracker

[issue40047] itertools.tee does not release resources during iteration?

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Whats going on is that the implementation tracks blocks of 56 references at a time, freeing entire blocks at time. So the memory release does occur periodically, but not as aggressively as it could. This code shows what is going on: # Show the

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ec7370c89aa522602eb9604086ce9f09770953d by Victor Stinner in branch 'master': bpo-40014: Fix os.getgrouplist() on macOS (GH-19118) https://github.com/python/cpython/commit/8ec7370c89aa522602eb9604086ce9f09770953d --

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +18485 pull_request: https://github.com/python/cpython/pull/19124 ___ Python tracker ___

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: test.pythoninfo of the macOS job on the PR: os.getgrouplist: 20, 0, 12, 61, 79, 80, 81, 98, 264, 399, 701, 33, 100, 204, 250, 395, 398, 400 os.getgroups: 20, 0, 12, 61, 79, 80, 81, 98, 264, 399, 701, 33, 100, 204, 250, 395, 398, 400 So yeah, there are 18

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset bd409bb5b78e7ccac5fcda9ab4cec770552f3090 by Paulo Henrique Silva in branch 'master': bpo-1635741: Port time module to multiphase initialization (PEP 489) (GH-19107)

[issue39853] Segmentation fault with urllib.request.urlopen and threads

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Try to get the gdb traceback (C call stack). You may also try: python3 -X faulthandler urllib_segfault.py. But I expect a crash in Python finalization, where there is no Python frame and so empty traceback. --

[issue39853] Segmentation fault with urllib.request.urlopen and threads

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Python 3.7.3 is outdated. Can you please try on newer Python version? I failed to reproduce the crash on Fedora 31. I tested: vstinner@apu$ python3.7 -VV Python 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] vstinner@apu$

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: > Most likely this hasn't been an issue before is that 10.15 creates more > groups for system services than the earlier versions did. Aha, interesting. I updated my PR to remove mentions of the macOS version number. I just wrote "on macOS". Yeah, I wouldn't

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: > (This issue previously had "release blocker" priority before it was closed. > Now that it is re-opened does it still need that? I'm assuming not.) Techicanilly, it's a 3.9 regression but I don't think that it should be hold 3.9 release. So no, it's not a

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-23 Thread Ned Deily
Ned Deily added the comment: (This issue previously had "release blocker" priority before it was closed. Now that it is re-opened does it still need that? I'm assuming not.) -- nosy: +ned.deily priority: release blocker -> high versions: +Python 3.9 -Python 3.4

[issue40045] Make "dunder" method documentation easier to locate

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I vote for #2. It improves findability while also recognizing that "dunder" isn't a formal term and lies somewhere between slang and jargon. -- nosy: +rhettinger ___ Python tracker

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-23 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- pull_requests: +18483 pull_request: https://github.com/python/cpython/pull/19122 ___ Python tracker ___

[issue39853] Segmentation fault with urllib.request.urlopen and threads

2020-03-23 Thread Manjusaka
Manjusaka added the comment: use the same GCC 8.3.0 to recompile the Python 3.7.3 still no fault maybe we need the core dump to figure it out. -- ___ Python tracker ___

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Kjell Braden
Change by Kjell Braden : -- keywords: +patch pull_requests: +18482 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19121 ___ Python tracker ___

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking this as rejected. Nothing good would come from obfuscating the docs to note a minor implementation detail. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python

[issue40033] Just defined class missing from scope

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I assumed that Level1A should already be in scope while defining > the insides of Level1B. But it isn't. That analysis is correct. Class namespaces don't nest like functions do. The "enclosing" namespace is globals, not the surrounding class. This

[issue39853] Segmentation fault with urllib.request.urlopen and threads

2020-03-23 Thread Manjusaka
Manjusaka added the comment: I have tried it on Python 3.7.3 Ubuntu 18.04 Linux-4.15.0-1060-aws-x86_64-with-debian-buster-sid Python 3.7.3 (default, Mar 23 2020, 18:15:26) [GCC 7.5.0] there is no segmentation fault would you mind sharing the core dump to help us find more detail about the

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-23 Thread Tim Peters
Tim Peters added the comment: It's neither "bug" nor "feature" - it's an inherited quirk CPython maintains to avoid annoying users for no good reason. If you absolutely have to "do something", how about adding a mere footnote? The docs already imply the args have the same restrictions as

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-23 Thread hai shi
hai shi added the comment: > The last merged pull request, GH-GH-19084, causes refleaks in importlib > tests. Stable buildbots are failing, I can reproduce on macOS Catalina. thanks, Łukasz. I catched this problem in my vm of centos too. I don't the broken reason temporarily. --

[issue40014] os.getgrouplist() can fail on macOS if the user has more than 17 groups

2020-03-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR, Victor, it does address the problem. I went back and explicitly tested on macOS 10.14 and 10.13 by creating some more groups and adding the user to them and the same failure occurred there so this is not just a 10.15 issue. Most likely this

[issue34591] smtplib mixes RFC821 and RFC822 addresses

2020-03-23 Thread Manjusaka
Manjusaka added the comment: > This is a problem because not all RFC822 addresses are valid RFC821 addresses. Do you mean that we would add a verification before we send the command? -- nosy: +Manjusaka ___ Python tracker

[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-23 Thread Terry Davis
Terry Davis added the comment: It seems like using "noindex" to tell search engines not to look at Python 2 docs at all would have the side-effect of breaking Python 2 documentation searches. I have gotten into the habit of searching for "python 3" explicitly, which I think is a reasonable

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18481 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19120 ___ Python tracker ___

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Lib/multiprocessing/connection.py uses a challenge to authenticate the client. How do you connect to the server? Yes, it's known that pickle is not safe, there is a big red warning at the top of the doc: https://docs.python.org/dev/library/pickle.html But

[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-23 Thread SilentGhost
SilentGhost added the comment: Yes, I was also able to verify this issue on 3.8.2 on win10. Argument to astimezone is not required, and this happens for both naïve and aware objects. -- nosy: +belopolsky, p-ganssle resolution: duplicate -> stage: resolved -> test needed status:

[issue40048] _PyEval_EvalFrameDefault() doesn't reset tstate->frame if _PyCode_InitOpcache() fails

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Note: I found this issue with Pablo Galindo Galgado while investigating bpo-20526. -- nosy: +inada.naoki, pablogsal ___ Python tracker ___

[issue40014] os.getgrouplist() fails on macOS 10.15 (Catalina) if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Python 3.7 and 3.8 are also affected on macOS 10.15 (Catalina). -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue40024] Add _PyModule_AddType private helper function

2020-03-23 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +18480 pull_request: https://github.com/python/cpython/pull/19119 ___ Python tracker ___

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-03-23 Thread Derek Keeler
Derek Keeler added the comment: Where would we like to put this information? My proposal would be to add this in a combination of places: 1. Add a further note near the symlinks on Windows comment in this document: `Doc\using\venv-create.inc` 2. Add a blurb in the Activate.ps1 script

[issue40014] os.getgrouplist() fails on macOS 10.15 (Catalina) if the user has more than 17 groups

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- title: os.getgrouplist() can fail on macOS -> os.getgrouplist() fails on macOS 10.15 (Catalina) if the user has more than 17 groups ___ Python tracker

[issue40014] os.getgrouplist() can fail on macOS

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: tl; dr os.getgrouplist() is limited to 17 groups and fails with a random OSError if the request user has more groups. PR 19118 fix the issue. -- On macOS-10.15.1-x86_64-i386-64bit (python -m platform), os.getgrouplist() fails with my user name and group

[issue40014] os.getgrouplist() can fail on macOS

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18479 pull_request: https://github.com/python/cpython/pull/19118 ___ Python tracker ___

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Steve Dower
Steve Dower added the comment: Main thing we need is a PR (straightforward) and confirming that the relevant tests all run. We can use the buildbot fleet to make sure that all supported platforms have the necessary APIs, but it wouldn't surprise me if there's some weird edge cases here.

[issue40014] os.getgrouplist() can fail on macOS

2020-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18478 pull_request: https://github.com/python/cpython/pull/19117 ___ Python tracker ___

[issue40049] tarfile cannot extract from stdin

2020-03-23 Thread Danijel
New submission from Danijel : Hi, I have the following code: ``` import tarfile import sys tar = tarfile.open(fileobj=sys.stdin.buffer, mode='r|*') tar.extractall("tarout") tar.close() ``` then doing the following on a debian 10 system: ``` $ python -m tarfile -c git.tar /usr/share/doc/git

[issue40046] Increase test coverage of the random module

2020-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is wrong with adding more tests? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40033] Just defined class missing from scope

2020-03-23 Thread Damian Yurzola
Change by Damian Yurzola : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40046] Increase test coverage of the random module

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm against this doc change. While factually true, it is irrelevant and distracting to most users. We do not need to test and document every implementation detail, nor should we. -- resolution: -> rejected stage: patch review -> resolved

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: How about we just leave it alone. AFAICT nothing is broken -- no user is having any issues. We really don't need to go through every tool in the standard library that uses int() and document that it accepts any type that defines __int__, nor do we need

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-23 Thread Kubilay Kocak
Kubilay Kocak added the comment: Confirming on FreeBSD CURRENT buildbot worker which had its openssl updated to 1.1.1e a number of days ago. I reverted back to 1.1.1d Full log of the failing build/tests with 1.1.1e attached -- nosy: +koobs Added file:

[issue38243] [security][CVE-2019-16935] A reflected XSS in python/Lib/DocXMLRPCServer.py

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Charalampos Strataris's advice: If you backport the security fix and test_docxmlrpc starts to hang randomly, you should also backport bpo-27614 fix. For example, it's the commit 3911d8333c5b6f9374fa11ab7c912f1471580f0f for Python 2.7. We had the issue on

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-39787 "test_ssl and test_urllib2_localnet failing with new OpenSSL" as a duplicate of this issue. Copy of the message: """ test_ssl and test_urllib2_localnet are failing when Python is built against top-of-tree OpenSSL. I'm attaching the output

[issue39787] test_ssl and test_urllib2_localnet failing with new OpenSSL

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-40018. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_ssl fails with OpenSSL 1.1.1e ___ Python tracker

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-23 Thread Matheus Castanho
Matheus Castanho added the comment: Hi, I believe this is the exact same problem as reported by https://bugs.python.org/issue39787 Both issues could be closed by the same fix =) -- nosy: +mscastanho ___ Python tracker

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)->gc.gc_refs >> (1)) != 0' failed.

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: Right now, threading_shutdown_interrupted.py does crash on the master branch (commit 05e4a296ecc127641160a04f39cc02c0f66a8c27). I reintroduced the bug with: commit 9ad58acbe8b90b4d0f2d2e139e38bb5aa32b7fb6 Author: Victor Stinner Date: Mon Mar 9 23:37:49

[issue40048] _PyEval_EvalFrameDefault() doesn't reset tstate->frame if _PyCode_InitOpcache() fails

2020-03-23 Thread STINNER Victor
New submission from STINNER Victor : tstate->frame is a borrowed references to the current frame object. It's set tp the frame at _PyEval_EvalFrameDefault() and resets to frame->f_back at _PyEval_EvalFrameDefault() exit. Problem: when _PyCode_InitOpcache() fails, tstate->frame is not reset

[issue40047] itertools.tee does not release resources during iteration?

2020-03-23 Thread Peter Würtz
New submission from Peter Würtz : Itertools `tee` does not seem to de-reference yielded items, even after consumption of all items from all tee-iterators. According to the documentation (to my understanding), there shouldn't be any extra memory requirement as long as the tee-iterators are

[issue39830] zipfile.Path is not included in __all__

2020-03-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +18477 pull_request: https://github.com/python/cpython/pull/19116 ___ Python tracker

[issue39830] zipfile.Path is not included in __all__

2020-03-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 9a81ab107a54b8ca320fb703f7c68e14ccd9d016 by Zackery Spytz in branch 'master': bpo-39830: Add zipfile.Path to __all__ (GH-19115) https://github.com/python/cpython/commit/9a81ab107a54b8ca320fb703f7c68e14ccd9d016 --

[issue40041] Typo in argparse ja-document wrong:'append', correct:'extend'

2020-03-23 Thread Tomohiko Kinebuchi
Tomohiko Kinebuchi added the comment: Japanese translation issues are tracked in the repository below for historical reasons. So, please create a report about this issue in English or Japanese. https://github.com/python-doc-ja/python-doc-ja/issues -- nosy: +cocoatomo versions:

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-23 Thread STINNER Victor
STINNER Victor added the comment: bpo-40044 was marked as a duplicate of this issue. Copy of Charalampos's message: """ The fedora rawhide buildbots started failing due to the latest update of openssl to version 1.1.1e. e.g. https://buildbot.python.org/all/#/builders/607/builds/137

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-23 Thread Łukasz Langa
Łukasz Langa added the comment: The last merged pull request, GH-GH-19084, causes refleaks in importlib tests. Stable buildbots are failing, I can reproduce on macOS Catalina. You can test yourself by running: $ ./python.exe -E -Wd -m test -uall,-gui -l -L -R: test_importlib Master at

[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-23 Thread Łukasz Langa
Łukasz Langa added the comment: > Reverting GH-18627 fixes the issue. Sorry, this is false. I just checked out to the last commit to importlib before GH-18627 and it did not refleak. But when I actually reverted just GH-18627, the issue persisted. By bisecting, I found out that it's

[issue39830] zipfile.Path is not included in __all__

2020-03-23 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +18476 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19115 ___ Python tracker

[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-23 Thread Łukasz Langa
Change by Łukasz Langa : -- stage: resolved -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >