[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2019-12-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +16941 pull_request: https://github.com/python/cpython/pull/17460 ___ Python tracker ___

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-12-03 Thread Bar Harel
Bar Harel added the comment: Ready for merge -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29636] Specifying indent in the json.tool command

2019-12-03 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Python tracker ___

[issue29636] Specifying indent in the json.tool command

2019-12-03 Thread Inada Naoki
Inada Naoki added the comment: New changeset 03257949bc02a4afdf2ea1eb07a73f8128129579 by Inada Naoki (Daniel Himmelstein) in branch 'master': bpo-29636: Add --(no-)indent arguments to json.tool (GH-345) https://github.com/python/cpython/commit/03257949bc02a4afdf2ea1eb07a73f8128129579

[issue38960] DTrace FreeBSD build fix

2019-12-03 Thread Kubilay Kocak
New submission from Kubilay Kocak : Thank you for the heads-up David. If you need OS support and don't have access to a FreeBSD install, I can provide you with an SSH account to the servers that run the Python buildbots if that would be helpful either now or in the future --

Re: array and struct 64-bit Linux change in behavior Python 3.7 and 2.7

2019-12-03 Thread Chris Angelico
On Wed, Dec 4, 2019 at 4:16 PM Chris Clark wrote: > I think the consensus from the various threads is that the docs are either > lacking or misleading. > > I mentioned that this impacts bytes and the problem there is more telling as > it hard fails (this is how I first discovered this was an

[issue38963] multiprocessing processes seem to "bleed" user information (GID/UID/groups)

2019-12-03 Thread Roman Joost
New submission from Roman Joost : When running a process which changes UID/GID, some of the following processes will run as the user I change to per process. In order to reproduce (see the attached reproducer): 1. Change the 'USERNAME' to an unprivileged user on your system. 2. Run the

RE: array and struct 64-bit Linux change in behavior Python 3.7 and 2.7

2019-12-03 Thread Chris Clark
Thanks for all the replies (and apologies for top posting, I have a brain dead email client ☹). I think the consensus from the various threads is that the docs are either lacking or misleading. I mentioned that this impacts bytes and the problem there is more telling as it hard fails (this is

[issue38741] Definition of multiple ']' in header configparser

2019-12-03 Thread Jason Killen
Change by Jason Killen : -- nosy: +Jason.Killen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7982] extend captured_output to simulate different stdout.encoding

2019-12-03 Thread Andrew Frost
Andrew Frost added the comment: in test_xmlrpc.py, it can replace this entire function - https://github.com/python/cpython/blob/8f4ef3b019ce380022018587571b0f970e668de3/Lib/test/test_xmlrpc.py#L1344 in test_source_encoding.py, it can remove this line -

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2019-12-03 Thread miss-islington
miss-islington added the comment: New changeset baf07395eaa77e515ddfa1d3f42785d50b4d2889 by Miss Islington (bot) in branch '3.8': bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436) https://github.com/python/cpython/commit/baf07395eaa77e515ddfa1d3f42785d50b4d2889 --

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2019-12-03 Thread miss-islington
miss-islington added the comment: New changeset 55a7046471e19843a68d4a1a15252fd197bb6913 by Miss Islington (bot) in branch '3.7': bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436) https://github.com/python/cpython/commit/55a7046471e19843a68d4a1a15252fd197bb6913 --

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2019-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +16940 pull_request: https://github.com/python/cpython/pull/17459 ___ Python tracker ___

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2019-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +16939 pull_request: https://github.com/python/cpython/pull/17458 ___ Python tracker ___

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2019-12-03 Thread miss-islington
miss-islington added the comment: New changeset eb48a451e3844185b9a8751c9badffbddc89689d by Miss Islington (bot) (An Long) in branch 'master': bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436) https://github.com/python/cpython/commit/eb48a451e3844185b9a8751c9badffbddc89689d

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +16938 pull_request: https://github.com/python/cpython/pull/17457 ___ Python tracker ___

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Opened PR 17457 for the refleaks of test__xxsubinterpreters although I am not very convinced that we can call the GC at that point. -- ___ Python tracker

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This patch (which is wrong) fixes the reference issues: diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index cce4783bc1..c354af18db 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1276,6 +1276,7 @@

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +16937 pull_request: https://github.com/python/cpython/pull/17456 ___ Python tracker ___

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I created https://github.com/python/cpython/pull/17455 to revert commit 7247407c35330f3f6292f1d40606b7ba6afd5700 as it seems that the leak is more complex than the others. If a solution is not found in a couple of days we need to merge it to fix the

[issue36854] GC operates out of global runtime state.

2019-12-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +16936 pull_request: https://github.com/python/cpython/pull/17455 ___ Python tracker ___

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed, reverting commit 7247407c35330f3f6292f1d40606b7ba6afd5700 fixes the issues in test_threading -- ___ Python tracker ___

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: For the subinterpreter other leaks it seems that the commit that introduced the leak is: 7247407c35330f3f6292f1d40606b7ba6afd5700 is the first bad commit commit 7247407c35330f3f6292f1d40606b7ba6afd5700 Author: Victor Stinner Date: Wed Nov 20

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +16935 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17454 ___ Python tracker ___

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Opened https://github.com/python/cpython/pull/17454 for the fixing the leak in http_servers -- ___ Python tracker ___

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed, that fixes the problem in at least 2 modules: ./python -m test test_atexit -R : 0:00:00 load avg: 0.84 Run tests sequentially 0:00:00 load avg: 0.84 [1/1] test_atexit beginning 9 repetitions 123456789 . == Tests result: SUCCESS == 1

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, the problem seems to be that _PyBuiltin_Init() returns a new reference that is not cleared once PyModule_GetDict() and _PyBuiltins_AddExceptions() is called. -- stage: patch review -> needs patch ___

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +16934 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17453 ___ Python tracker

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Actually, that commit has an independent refleak that was fixed (!) regarding the small integer cache. Seems that the actual commit that made the new leak is: commit 2582d46fbcf7bdf86b9cf4016850b8d155267ac6 Author: Victor Stinner Date: Fri Nov 22

[issue38962] Reference leaks in subinterpreters

2019-12-03 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : All the refleak build bots for master are reporting reference leaks in subinterpreter related tests: https://buildbot.python.org/all/#/builders/126/builds/6/steps/5/logs/stdio

[issue38960] DTrace FreeBSD build fix

2019-12-03 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38924] pathlib paths .normalize()

2019-12-03 Thread Brett Cannon
Brett Cannon added the comment: While I understand you're disappointed, do realize that the tone of your response isn't necessary. I'm going to assume you didn't mean for it to come off as confrontational and still provide a reply. > you do realise there are no symlinks to resolve on

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2019-12-03 Thread Brett Cannon
Brett Cannon added the comment: > Are you proposing to bring that functionality, which these third-party tools > perform currently, into the stdlib? I was hoping to, but it turns out you can't make this work under Windows without inspecting the parent process (PowerShell and Command Prompt

[issue38945] Remove newline characters from uu encoding methods

2019-12-03 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset a016d4e32cc9faa48105d00db275439c3dc93559 by Guido van Rossum (Matthew Rollings) in branch '2.7': [2.7] bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (GH-17418). (#17452)

Re: array and struct 64-bit Linux change in behavior Python 3.7 and 2.7

2019-12-03 Thread Rob Gaddi
On 12/2/19 5:50 PM, Richard Damon wrote: Perhaps array could be extended so that it took '4' for a 4 byte integer and '8' for an 8 byte integer (maybe 'U4' and 'U8' for unsigned). Might as well also allow 1 and 2 for completeness for char and short (but those are currently consistent). I

[issue38945] Remove newline characters from uu encoding methods

2019-12-03 Thread stealthcopter
Change by stealthcopter : -- pull_requests: +16933 pull_request: https://github.com/python/cpython/pull/17452 ___ Python tracker ___

[issue38295] test_relative_path of test_py_compile fails on macOS 10.15 Catalina

2019-12-03 Thread Amged Rustom
Change by Amged Rustom : -- nosy: +amgedr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2019-12-03 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman nosy: +Rhodri James, ethan.furman ___ Python tracker ___ ___

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-12-03 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman nosy: +Rhodri James, ethan.furman versions: -Python 3.5 ___ Python tracker ___

Re: increasing the page size of a dbm store?

2019-12-03 Thread Tim Chase
On 2019-12-02 16:49, Michael Torrie wrote: > On 12/1/19 7:50 PM, Tim Chase wrote: > > After sparring with it a while, I tweaked the existing job so > > that it chunked things into dbm-appropriate sizes to limp > > through; for the subsequent job (where I would have used dbm > > again) I went ahead

[issue38961] Flaky detection of compiler vendor

2019-12-03 Thread John-Mark
New submission from John-Mark : The `configure` script for building what appears to be any version of python (I've manually checked 2.7, 3.6.6, and master) uses simple substring-in-path checks to determine the compiler vendor. This is problematic because it is very easy for it to produce

[issue38960] DTrace FreeBSD build fix

2019-12-03 Thread David Carlier
Change by David Carlier : -- keywords: +patch pull_requests: +16932 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17451 ___ Python tracker ___

[issue38960] DTrace FreeBSD build fix

2019-12-03 Thread David Carlier
Change by David Carlier : -- components: FreeBSD nosy: David Carlier, koobs priority: normal severity: normal status: open title: DTrace FreeBSD build fix versions: Python 3.9 ___ Python tracker

Re: Extending property using a Subclass - single method - why Super(Baz, Baz).name.__set__ ?

2019-12-03 Thread Peter Otten
Veek M wrote: > you've misunderstood my question There were a lot of foobars bazzing in my head, but at least I tried ;) > , let me try again: > > So this is a simple descriptor class and as you can see, dunder-set needs > 3 args: the descriptor CONTAINER/Bar-instance is the first arg, then a

Re: lxml question -- creating an etree.Element attribute with ':' in the name

2019-12-03 Thread Karsten Hilbert
On Mon, Dec 02, 2019 at 08:58:11PM -0800, gerem...@gmail.com wrote: > Date: Mon, 2 Dec 2019 20:58:11 -0800 (PST) > From: gerem...@gmail.com > To: python-list@python.org > Subject: Re: lxml question -- creating an etree.Element attribute with ':' > in the name > User-Agent: G2/1.0 > > Theanks a

Re: lxml question -- creating an etree.Element attribute with ':' in the name

2019-12-03 Thread geremy85
Theanks a lot -- https://mail.python.org/mailman/listinfo/python-list

Re: Extract sentences in nested parentheses using Python

2019-12-03 Thread Peter Otten
A S wrote: > On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: >> A S wrote: >> >> I think I've seen this question before ;) >> >> > I am trying to extract all strings in nested parentheses (along with >> > the parentheses itself) in my .txt file. Please see the sample .txt >> >

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-12-03 Thread miss-islington
miss-islington added the comment: New changeset 894331838b256412c95d54051ec46a1cb96f52e7 by Miss Islington (bot) (stratakis) in branch 'master': bpo-38270: Fix indentation of test_hmac assertions (GH-17446) https://github.com/python/cpython/commit/894331838b256412c95d54051ec46a1cb96f52e7

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +16931 pull_request: https://github.com/python/cpython/pull/17450 ___ Python tracker ___

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2019-12-03 Thread uliludmann
Change by uliludmann : -- nosy: +uliludmann ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Extract sentences in nested parentheses using Python

2019-12-03 Thread A S
On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: > A S wrote: > > I think I've seen this question before ;) > > > I am trying to extract all strings in nested parentheses (along with the > > parentheses itself) in my .txt file. Please see the sample .txt file that > > I have used

Re: Extending property using a Subclass - single method - why Super(Baz, Baz).name.__set__ ?

2019-12-03 Thread Veek M
you've misunderstood my question, let me try again: So this is a simple descriptor class and as you can see, dunder-set needs 3 args: the descriptor CONTAINER/Bar-instance is the first arg, then a reference to the using instance/Foo-instance class Bar(object): def __set__(self,

[issue38943] Idle autocomplete window doesn't show up

2019-12-03 Thread JohnnyNajera
JohnnyNajera added the comment: At least this scenario: Ubuntu 19.10 Open the interpreter Literally nothing makes the autocomplete window show up. As mentioned in the PR, it's not about the 1-ms but about being called outside of the event itself. This can also be fixed by immediately calling

[issue38918] Add __module__ entry for function type in inspect docs table.

2019-12-03 Thread Parth Sharma
Parth Sharma added the comment: Hey Eric, I made a PR [1] which adds an entry for __module__ in the "function" and "method" sections of the table [2]. Can you review it and let me know if any changes are required? [1] https://github.com/python/cpython/pull/17408 [2]

[issue38950] argparse uses "optional arguments" for "keyword arguments"

2019-12-03 Thread Géry
Géry added the comment: Thanks paul j3 for the link. I am continuing the discussion there. -- ___ Python tracker ___ ___

Re: Extending property using a Subclass - single method - why Super(Baz, Baz).name.__set__ ?

2019-12-03 Thread Peter Otten
Veek M wrote: > class Foo(object): > @property > def name(self): > if hasattr(self, '_name'): > print('Foo name', self._name) > return self._name > else: > return 'default' > > @name.setter > def name(self, value): >

[issue9694] argparse required arguments displayed under "optional arguments"

2019-12-03 Thread Géry
Géry added the comment: I have just run into the same issue here: https://bugs.python.org/issue38950 - I prefer Terry J. Reedy's "keyword arguments" as it is clear and consistent with "positional arguments". - But Steven Bethard 's "flag arguments" looks fine since it is well known to shell

[issue38572] Misleading AttributeError accessing fileno attribute in tarfile

2019-12-03 Thread PCManticore
PCManticore added the comment: Just submitted a PR for this issue, hope I got it right. Curious to see if there are any backwards compatibility concerns with this approach. -- ___ Python tracker

[issue38572] Misleading AttributeError accessing fileno attribute in tarfile

2019-12-03 Thread PCManticore
Change by PCManticore : -- keywords: +patch pull_requests: +16930 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17449 ___ Python tracker ___

[issue38955] Non indemnpotent behavior of asyncio.get_event_loop and asyncio.run sequence.

2019-12-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think now it is too late for changing the behavior. In the ideal world, get_event_loop() should never exist, maybe we can deprecate/remove it eventually. run() should be used for executing async code; get_running_loop() for getting a reference to the

[issue38572] Misleading AttributeError accessing fileno attribute in tarfile

2019-12-03 Thread PCManticore
Change by PCManticore : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Extending property using a Subclass - single method - why Super(Baz, Baz).name.__set__ ?

2019-12-03 Thread Veek M
class Foo(object): @property def name(self): if hasattr(self, '_name'): print('Foo name', self._name) return self._name else: return 'default' @name.setter def name(self, value): print('Foo', self) self._name =