[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread miss-islington
miss-islington added the comment: New changeset 6b4c70abcaa348c84a2c1bb6f5a46596cf358e36 by Miss Islington (bot) in branch '3.8': bpo-36670: Multiple regrtest bugfixes (GH-16511) https://github.com/python/cpython/commit/6b4c70abcaa348c84a2c1bb6f5a46596cf358e36 -- nosy:

[issue37245] Azure Pipeline 3.8 CI: multiple tests hung and timed out on macOS 10.13

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: It seems like macOS job pass again on Azure Pipelines. I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

"Regular Expression Objects" scanner method

2019-10-01 Thread ast
Hello I am trying to understand a program which use a method named scanner on a re compiled object. This program is named "Simple compiler" here: https://www.pythonsheets.com/notes/python-generator.html But unfortunately it is not documented nor here:

Re: pathlib

2019-10-01 Thread Richard Damon
On 10/1/19 1:24 AM, DL Neil via Python-list wrote: > On 1/10/19 1:09 AM, Chris Angelico wrote: >> On Mon, Sep 30, 2019 at 9:54 PM Dan Sommers >> <2qdxy4rzwzuui...@potatochowder.com> wrote: >>> I would have said the same thing, but the docs⁰ disagree:  a >>> PurePath represents the name of (or the

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +16104 pull_request: https://github.com/python/cpython/pull/16514 ___ Python tracker ___

[issue37507] multiprocessing: Add a stop() method to ForkServer

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: _test_multiprocessing.py calls: # Stop the ForkServer process if it's running from multiprocessing import forkserver forkserver._forkserver._stop() It seems like multiprocessing tests are the main consumer of this method. So let's

[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: I pushed different regrtest bugfixes. The situation should now be less worse. I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +16103 pull_request: https://github.com/python/cpython/pull/16513 ___ Python tracker ___

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 982bfa4da07b2e5749a0f4e68f99e972bcc3a549 by Victor Stinner in branch 'master': bpo-36670: Multiple regrtest bugfixes (GH-16511) https://github.com/python/cpython/commit/982bfa4da07b2e5749a0f4e68f99e972bcc3a549 --

[issue38205] Py_UNREACHABLE() no longer behaves as a function call

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been fixed in 3.8 and master. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: It was decided to abandon the idea of stable ABI for PyConfig: see bpo-38326. I now close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread miss-islington
miss-islington added the comment: New changeset d49f096cc41f57155efe71cd089c29b38c218488 by Miss Islington (bot) in branch '3.8': bpo-38304: PyConfig_InitPythonConfig() cannot fail anymore (GH-16509) https://github.com/python/cpython/commit/d49f096cc41f57155efe71cd089c29b38c218488

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16102 pull_request: https://github.com/python/cpython/pull/16512 ___ Python tracker ___

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16101 pull_request: https://github.com/python/cpython/pull/16511 ___ Python tracker ___

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +16100 pull_request: https://github.com/python/cpython/pull/16510 ___ Python tracker ___

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8462a4936b3a551dc546a6adea04a70b0a07ca67 by Victor Stinner in branch 'master': bpo-38304: PyConfig_InitPythonConfig() cannot fail anymore (GH-16509) https://github.com/python/cpython/commit/8462a4936b3a551dc546a6adea04a70b0a07ca67 --

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

2019-10-01 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

EuroPython 2019 - Videos for Friday available

2019-10-01 Thread M.-A. Lemburg
We are pleased to announce the third and final batch of cut videos from EuroPython 2019 in Basel, Switzerland, with another 49 videos. * EuroPython 2019 on our YouTube Channel * http://europython.tv/ In this batch, we have included all videos for Friday,

EuroPython 2019 - Videos for Friday available

2019-10-01 Thread M.-A. Lemburg
We are pleased to announce the third and final batch of cut videos from EuroPython 2019 in Basel, Switzerland, with another 49 videos. * EuroPython 2019 on our YouTube Channel * http://europython.tv/ In this batch, we have included all videos for Friday,

[issue38200] Adding itertools.pairwise to the standard library?

2019-10-01 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: Sorry for taking so long to answer, I didn't see notifications somehow. Raymond, my use case is in general something that happens when I'm doing analytics on sequences of events (e.g., URLs visited by a browser) or paths in a graph. I look at pairs and

Re: pathlib

2019-10-01 Thread DL Neil via Python-list
On 1/10/19 2:58 PM, Dan Sommers wrote: On 9/30/19 3:56 PM, Barry Scott wrote: On 30 Sep 2019, at 16:49, Dan Sommers <2qdxy4rzwzuui...@potatochowder.com > wrote: In the totality of a Path object that claims to represent paths to files, It

[issue38297] Imports at top of module is often not used

2019-10-01 Thread Christian Heimes
Christian Heimes added the comment: A considerable amount of code is a lot older than PEP 8, some even over a decade older. Even newer code in the stdlib does not conform to PEP 8 for multiple reasons, e.g. external modules was incorporated into the stdlib. PEP 8 sections "Introduction" and

Re: Announcing colour-text and colour-print

2019-10-01 Thread Gisle Vanem
Barry Scott wrote: Here is an example: from colour_text import ColourText ct = ColourText() ct.initTerminal() print( ct( "The next section is in green: <>green example<>." ) ) Looking at the sources, it seems 'win32' should be supported. But no; with the above example: c:\>py -3

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16099 pull_request: https://github.com/python/cpython/pull/16509 ___ Python tracker ___

[issue38297] Imports at top of module is often not used

2019-10-01 Thread Dominic Littlewood
Dominic Littlewood <11dlittlew...@gmail.com> added the comment: With all due respect, I disagree with what you're saying here. "It's a bit misleading to use the stdlib as a guideline" ... when looking at the style guide for the stdlib? I appreciate that PEP 8 is used for other purposes, but

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3c30a76f3d3c0dcc1fb4de097fa4a3a4c92c0b0b by Victor Stinner in branch 'master': bpo-38304: Remove PyConfig.struct_size (GH-16500) (GH-16508) https://github.com/python/cpython/commit/3c30a76f3d3c0dcc1fb4de097fa4a3a4c92c0b0b --

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: > Will you forward port your change to master, Victor? Sure, it was my plan: PR 16508. I chose to fix 3.8 first to unblock the 3.8.0rc1 release. -- ___ Python tracker

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16098 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/16508 ___ Python tracker ___

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread Ma Lin
Ma Lin added the comment: > This file is copied directly from https://github.com/libexpat/libexpat/ > > project. Would you mind to propose your patch there? ok, I will report to there. -- ___ Python tracker

[issue38326] Concerns with the last minute changes to the PEP 587 API

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Nick merged my two PRS, so the initial concern is gone :-) I close the issue. Thanks for the feedback, it was an interesting talk. Sorry for the bad timing. I dislike working under pressure of a deadline :-( -- resolution: -> fixed stage: patch

[issue38306] High level API for loop.run_in_executor(None, ...)?

2019-10-01 Thread Antoine Pietri
Antoine Pietri added the comment: > run_in_executor doesn't necessarily create a new thread each time so > create_thread would be misleading. run_in_thread might be better. Right, the idea was to have an analogy with create_task, because the run_in_executor would be wrapped in a Task. I'm

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: > d:\dev\cpython\modules\expat\xmltok.c This file is copied directly from https://github.com/libexpat/libexpat/ project. Would you mind to propose your patch there? -- ___ Python tracker

[issue38334] zipfile: Seeking encrypted file breaks after seeking backwards

2019-10-01 Thread Daniel Hillier
New submission from Daniel Hillier : Seeking back beyond the decrypted / unzipped buffer doesn't reset the decrypter's crc key values. All data read after seeking back beyond the buffer is garbled. -- components: Library (Lib) messages: 353646 nosy: dhillier priority: normal

[issue38242] Revert the new asyncio Streams API

2019-10-01 Thread Łukasz Langa
Change by Łukasz Langa : -- priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-01 Thread Ricardo Bánffy
Change by Ricardo Bánffy : -- title: re.escape no longer escapes "/" or ":" -> Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious ___ Python tracker

Re: pathlib

2019-10-01 Thread Chris Angelico
On Tue, Oct 1, 2019 at 3:05 PM DL Neil via Python-list wrote: > BUT... Path() does keep track of changes in the file system for other > attributes! So, why not also name? Does it actually track changes? > Here's a code-snippet illustrating both of the above points: > > import pathlib > p =

[issue38319] shutil.copyfile(): os.sendfile() fails with OverflowError on 32-bit system

2019-10-01 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 938c00ca9e4207a2531041edff2e82490b02047f by Łukasz Langa (Miss Islington (bot)) in branch '3.8': bpo-38319: Fix shutil._fastcopy_sendfile(): set sendfile() max block size (GH-16491) (#16506)

[issue38304] PEP 587 implementation is not ABI forward compatible

2019-10-01 Thread Łukasz Langa
Łukasz Langa added the comment: Will you forward port your change to master, Victor? -- ___ Python tracker ___ ___ Python-bugs-list

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

2019-10-01 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks a million everyone, this is now hopefully solved. I'm leaving it open for Neil to experiment with his unit test (which would be amazing to have!). -- priority: release blocker -> normal versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7

[issue38326] Concerns with the last minute changes to the PEP 587 API

2019-10-01 Thread Łukasz Langa
Łukasz Langa added the comment: I suggest closing this and following up in BPO-38304 about a possible graceful error message during invalid embedding. -- priority: release blocker -> normal ___ Python tracker

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

2019-10-01 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b3612070b746f799901443b65725008bc035872b by Łukasz Langa (Neil Schemenauer) in branch '3.8': Restore tp_clear for function object. (#16502) https://github.com/python/cpython/commit/b3612070b746f799901443b65725008bc035872b --

Re: pathlib

2019-10-01 Thread Chris Angelico
On Tue, Oct 1, 2019 at 3:26 PM DL Neil via Python-list wrote: > > On 1/10/19 1:09 AM, Chris Angelico wrote: > > I don't think it represents the actual file. If it did, equality would > > be defined by samefile, NOT by the file name. > > > from pathlib import Path > import os >

[issue38332] invalid content-transfer-encoding in encoded-word causes KeyError

2019-10-01 Thread Andrei Troie
Andrei Troie added the comment: I agree with you that according to the RFC, the cte can of course only be "B" or "Q". My point is that, in my example, if you try to do that you get a KeyError propagating all the way down to email.message.get(), which I believe is incorrect. Consider an

[issue22377] %Z in strptime doesn't match EST and others

2019-10-01 Thread karl
karl added the comment: I created a PR following the recommendations of p-ganssle https://github.com/python/cpython/pull/16507 -- nosy: +karlcow ___ Python tracker ___

[issue22377] %Z in strptime doesn't match EST and others

2019-10-01 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +16096 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16507 ___ Python tracker ___

Re: Recursive method in class

2019-10-01 Thread ast
Le 30/09/2019 à 13:11, Anders Märak Leffler a écrit : What do you mean by transformed? This is probably your understanding already, but a further consequence of when arguments are evaluated plus what you said about data attributes is that the fib(self, n - 1) call will follow the standard

[issue33418] Memory leaks in functions

2019-10-01 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +16095 pull_request: https://github.com/python/cpython/pull/16502 ___ Python tracker ___

[issue38332] invalid content-transfer-encoding in encoded-word causes KeyError

2019-10-01 Thread Andrei Troie
Change by Andrei Troie : -- keywords: +patch pull_requests: +16094 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16503 ___ Python tracker ___

[issue38333] add type signatures to library function docs

2019-10-01 Thread Vedran Čačić
Vedran Čačić added the comment: > Many docs are ... vague about types. ... and I consider that a feature. At least if you do that, make an explicit decision not to introduce TypeErrors for "disagreeing with the documented signature". For example, I'd be ok with sum being documented as

Re: pathlib

2019-10-01 Thread DL Neil via Python-list
On 1/10/19 3:21 AM, Dan Sommers wrote: On 9/30/19 8:40 AM, Barry Scott wrote:  >> On 30 Sep 2019, at 12:51, Dan Sommers <2qdxy4rzwzuui...@potatochowder.com> wrote:  >> On 9/30/19 4:28 AM, Barry Scott wrote:   On 30 Sep 2019, at 05:40, DL Neil via Python-list wrote:   Should pathlib

<    1   2