Re: How does the super type present itself and do lookups?

2020-03-23 Thread Adam Preble
On Thursday, March 19, 2020 at 5:02:46 PM UTC-5, Greg Ewing wrote: > On 11/03/20 7:02 am, Adam Preble wrote: > > Is this foo attribute being looked up in an override of __getattr__, > > __getattribute__, or is it a reserved slot that's internally doing this? > > That's what I'm trying to figure

[issue40046] Increase test coverage of the random module

2020-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18475 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19114 ___ Python tracker

Re: Like c enumeration in python3 [ERRATA]

2020-03-23 Thread Peter Otten
Paulo da Silva wrote: > Às 02:18 de 23/03/20, Paulo da Silva escreveu: >> Hi! >> >> Suppose a class C. >> I want something like this: >> >> class C: >> KA=0 >> KB=1 > KC=2 >> ... >> Kn=n >> >> def __init__ ... >> ... >> >> >> These constants come from an enum in a .h (header of C file). >>

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Kjell Braden
Kjell Braden added the comment: ./configure is not run on Windows, but I believe the define should go here: https://github.com/python/cpython/blob/8510f430781118d9b603c3a2f06945d6ebc5fe42/PC/pyconfig.h#L678 -- ___ Python tracker

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Would somebody be a champion for the issue? -- ___ Python tracker ___ ___ Python-bugs-list

Re: Intermittent bug with asyncio and MS Edge

2020-03-23 Thread Frank Millman
On 2020-03-22 12:11 PM, Chris Angelico wrote: On Sun, Mar 22, 2020 at 8:30 PM Frank Millman wrote: On 2020-03-22 10:45 AM, Chris Angelico wrote: If you can recreate the problem with a single socket and multiple requests, that would be extremely helpful. I also think it's highly likely that

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Alex Grönholm
Alex Grönholm added the comment: Well, I found this: https://github.com/python/cpython/blob/3c97e1e457033bbb8bbe0b7198bd13fc794a12b0/configure.ac#L3278-L3279 Could it be that the official binaries were compiled without --enable-ipv6? -- ___ Python

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-03-23 Thread zd nex
zd nex added the comment: So I want to properly debug this? How I can debug that call dump() for pickle? It does not seem to be possible. I guess I need to make some custom build? -- ___ Python tracker

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

2020-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you are against deprecating this "feature", it should be at least documented and covered by tests. -- ___ Python tracker ___

[issue40046] Increase test coverage of the random module

2020-03-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The propose test adds several tests for random module. Mainly tests for integer, sequence and iterable arguments. It also documents that randrange() accepts non-integers. -- assignee: docs@python components: Documentation, Tests messages: 364840

Re: Intermittent bug with asyncio and MS Edge

2020-03-23 Thread Chris Angelico
On Mon, Mar 23, 2020 at 8:03 PM Frank Millman wrote: > > On 2020-03-22 12:11 PM, Chris Angelico wrote: > > On Sun, Mar 22, 2020 at 8:30 PM Frank Millman wrote: > >> > >> On 2020-03-22 10:45 AM, Chris Angelico wrote: > > > > If you can recreate the problem with a single socket and multiple > >

Re: Like c enumeration in python3

2020-03-23 Thread Barry Scott
> On 23 Mar 2020, at 11:52, Rhodri James wrote: > > On 23/03/2020 02:18, Paulo da Silva wrote: >> Hi! >> Suppose a class C. >> I want something like this: >> class C: >> KA=0 >> KB=1 >> KC=1 >> ... >> Kn=n >> def __init__ ... >> ... >> These

[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:

[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 --

[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

Re: Like c enumeration in python3

2020-03-23 Thread Skip Montanaro
Does the enum module help? https://docs.python.org/3/library/enum.html Note that within __init__ you can reference your enumerated constants using (for example) self.KA. Skip -- https://mail.python.org/mailman/listinfo/python-list

[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:

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

2020-03-23 Thread Łukasz Langa
Łukasz Langa added the comment: Re-opening as it causes refleaks all across the stable buildbots. I can reproduce on macOS Catalina as well. Run this to see for yourself: - ./python.exe -E -Wd -m test -uall,-gui -l -L -R: test_importlib Reverting GH-18627 fixes the issue. --

[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

Re: Intermittent bug with asyncio and MS Edge

2020-03-23 Thread Barry Scott
> On 23 Mar 2020, at 09:02, Frank Millman wrote: > > On 2020-03-22 12:11 PM, Chris Angelico wrote: >> On Sun, Mar 22, 2020 at 8:30 PM Frank Millman wrote: >>> >>> On 2020-03-22 10:45 AM, Chris Angelico wrote: >> If you can recreate the problem with a single socket and multiple >> requests,

Re: Intermittent bug with asyncio and MS Edge

2020-03-23 Thread Chris Angelico
On Mon, Mar 23, 2020 at 10:58 PM Frank Millman wrote: > > On 2020-03-23 12:57 PM, Chris Angelico wrote: > > On Mon, Mar 23, 2020 at 8:03 PM Frank Millman wrote: > >> > >> On 2020-03-22 12:11 PM, Chris Angelico wrote: > >>> On Sun, Mar 22, 2020 at 8:30 PM Frank Millman wrote: > > On

[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

Re: Like c enumeration in python3

2020-03-23 Thread Rhodri James
On 23/03/2020 02:18, Paulo da Silva wrote: Hi! Suppose a class C. I want something like this: class C: KA=0 KB=1 KC=1 ... Kn=n def __init__ ... ... These constants come from an enum in a .h (header of C file). They are many and

Re: Intermittent bug with asyncio and MS Edge

2020-03-23 Thread Frank Millman
On 2020-03-23 12:57 PM, Chris Angelico wrote: On Mon, Mar 23, 2020 at 8:03 PM Frank Millman wrote: On 2020-03-22 12:11 PM, Chris Angelico wrote: On Sun, Mar 22, 2020 at 8:30 PM Frank Millman wrote: On 2020-03-22 10:45 AM, Chris Angelico wrote: If you can recreate the problem with a

[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 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

[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

[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

[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

[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

[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

[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

[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

[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

[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:

[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

[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 ___

Re: Like c enumeration in python3 [ERRATA]

2020-03-23 Thread Terry Reedy
On 3/22/2020 11:37 PM, DL Neil via Python-list wrote: On 23/03/20 3:32 PM, Paulo da Silva wrote: Às 02:18 de 23/03/20, Paulo da Silva escreveu: Hi! Olá, Suppose a class C. I want something like this: class C: KA=0 KB=1 KC=2 ... Kn=n def __init__ ...     ...

[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

[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

[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 ___

[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

[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 ___

[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 ___

[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:

[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
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

[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

[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:

Re: Confusing textwrap parameters, and request for RE help

2020-03-23 Thread Dieter Maurer
Chris Angelico wrote at 2020-3-23 06:00 +1100: >When using textwrap.fill() or friends, setting break_long_words=False >without also setting break_on_hyphens=False has the very strange >behaviour that a long hyphenated word will still be wrapped. Having worked with `TeX`, I am familiar that

[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

[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 ___

[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 ___

[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

[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. --

Re: Like c enumeration in python3

2020-03-23 Thread Paulo da Silva
Thank you very much for all your responses! Now I have too much ideas :-) I'm saving your answers and I'll see what is more appropriate/comfortable in my case. Best regards. Paulo -- https://mail.python.org/mailman/listinfo/python-list

[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$

[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
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 --

[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 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

[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

[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

[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 ___

[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 ___

[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

[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

Re: How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-23 Thread Beverly Pope
On Mar 22, 2020, at 11:12 PM, A S wrote: > > On Monday, 23 March 2020 01:58:38 UTC+8, Beverly Pope wrote: >>> On Mar 22, 2020, at 9:47 AM, A S >> > wrote: >>> >>> I can't seem to paste pictures into this discussion so please see both my >>> current and desired

[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

[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

[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

[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

[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

[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: 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 ___

[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 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. --

[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: 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 : -- 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

PyAmsterdam meetup moves online! 25/03/2020

2020-03-23 Thread Nicolás Demarchi
Hello all! We decided to host a few meetups online on the Python Amsterdam community. Sharing it here because in this opportunity it's possible to join from anywhere in the world :-) https://py.amsterdam/2020/03/25/virtual-pyamsterdam-from-home-stayathome.html [VIRTUAL] Py.Amsterdam from

[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 ___

Re: [Twisted-Python] Twisted 20.3.0 Release Announcement

2020-03-23 Thread Amber Brown (hawkowl)
On 21/3/20 12:20 am, Amber Brown (hawkowl) wrote: On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 20.3! As an addendum, as discussed earlier in the year on Twisted's mailing list, this release is the final one to support Python 2.7. The next

[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 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:

[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

[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)

[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

[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:

[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

[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 --

Re: `async def` breaks encapsulation?

2020-03-23 Thread Marco Sulla
On Tue, 17 Mar 2020 at 08:36, Greg Ewing wrote: > > On 4/03/20 12:52 pm, Marco Sulla wrote: > > Why can't an asynchronous coroutine be simply a coroutine that has an > > `async` or an `await` in its code, without `async` in the signature? > > That wouldn't help as much as you seem to think. You

[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

[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 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

[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:

  1   2   >