[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-10 Thread Carol Willing
Carol Willing added the comment: New changeset f357cd022ec82a4099ac7a09047d2b556a1c91ec by Carol Willing (Miss Islington (bot)) in branch '3.8': bpo-38034: Fix typo in logging.handlers.rst (GH-15708) (GH-15893) https://github.com/python/cpython/commit/f357cd022ec82a4099ac7a09047d2b556a1c91ec

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-10 Thread Carol Willing
Carol Willing added the comment: New changeset 2a8560ae99213954158789b9dd7275b8ffa2086a by Carol Willing (Miss Islington (bot)) in branch '3.7': bpo-38034: Fix typo in logging.handlers.rst (GH-15708) (GH-15894) https://github.com/python/cpython/commit/2a8560ae99213954158789b9dd7275b8ffa2086a

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15534 pull_request: https://github.com/python/cpython/pull/15893 ___ Python tracker ___ __

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15535 pull_request: https://github.com/python/cpython/pull/15894 ___ Python tracker ___ __

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-10 Thread Carol Willing
Carol Willing added the comment: New changeset efd5741ae953e50a6654e04cf731da86a1307296 by Carol Willing (wwuck) in branch 'master': bpo-38034: Fix typo in logging.handlers.rst (GH-15708) https://github.com/python/cpython/commit/efd5741ae953e50a6654e04cf731da86a1307296 -- nosy: +wil

[issue38099] __dict__ attribute is incorrectly stated to be read-only

2019-09-10 Thread Reed
New submission from Reed : The documentation in this section (https://docs.python.org/3/library/stdtypes.html#special-attributes) states that the __dict__ attribute, and several others, are read-only. In particular, it states: "The implementation adds a few special read-only attributes to se

[issue37969] Correct urllib.parse functions dropping the delimiters of empty URI components

2019-09-10 Thread Géry
Change by Géry : -- title: urllib.parse functions reporting false equivalent URIs -> Correct urllib.parse functions dropping the delimiters of empty URI components ___ Python tracker _

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-10 Thread Александр Семенов
Александр Семенов added the comment: setuptools/sandbox.py: class DirectorySandbox(AbstractSandbox): """Restrict operations to a single subdirectory - pseudo-chroot""" When running user scripts it uses os.path.realpath(os.devnull) to include 'normalized' devnull to the allowed list of file

[issue36869] Avoid warning of unused variables

2019-09-10 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue36869] Avoid warning of unused variables

2019-09-10 Thread Zackery Spytz
Zackery Spytz added the comment: PR 13182 has been merged, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ __

[issue25753] Reference leaks in test_smtplib

2019-09-10 Thread Zackery Spytz
Zackery Spytz added the comment: I cannot reproduce these leaks. I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue29171] blake2: Remove unused function to avoid undefined references

2019-09-10 Thread Zackery Spytz
Zackery Spytz added the comment: It seems that this was fixed as part of bpo-37055 / b27cbec801e17a13d7fef49116a8fc279930d2b1. -- nosy: +ZackerySpytz ___ Python tracker ___ _

[issue35381] posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types

2019-09-10 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +15533 pull_request: https://github.com/python/cpython/pull/15892 ___ Python tracker ___ __

[issue37445] Some FormatMessageW() calls use FORMAT_MESSAGE_FROM_SYSTEM without FORMAT_MESSAGE_IGNORE_INSERTS

2019-09-10 Thread Zackery Spytz
Zackery Spytz added the comment: Hi, Steve. I've created a backport for 2.7 (PR 15822). Please take a look. -- ___ Python tracker ___ _

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-10 Thread Tim Peters
Tim Peters added the comment: I don't believe that would improve the docs, but suit yourself. This is hardly a FAQ, but instead a peculiar case where, for whatever reason, someone is saying "I'm puzzled by what `or` does, but didn't read the docs for `or`". Most people confused by `or` alm

[issue34155] [CVE-2019-16056] email.utils.parseaddr mistakenly parse an email

2019-09-10 Thread Anselmo Melo
Change by Anselmo Melo : -- nosy: +Anselmo Melo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think that the problem is that the precedence table may be technically correct, but it doesn't describe the actual behaviour of expressions including the boolean operators ``or`` and ``and`` for exactly the reason Tim gives: > Precedence rules alone are

[issue38098] Special Characters Don't Work When Using Virtual Environment

2019-09-10 Thread Spandan Garg
New submission from Spandan Garg : Recently, I noticed that whenever I execute python from inside a virtual environment, I can't seem to write special characters into the shell. Although, when I exit the virtual environment, this issue no longer occurs. I've confirmed that the versions of pyth

[issue37935] Improve performance of pathlib.scandir()

2019-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: For some context here, the pathlib scandir code was written by Serhiy in https://bugs.python.org/issue26032 and related commit https://github.com/python/cpython/commit/680cb152c5d220a74321fa905d4fc91bdec40fbb. > Any optimization can be accepted only when w

[issue28494] is_zipfile false positives

2019-09-10 Thread miss-islington
miss-islington added the comment: New changeset 74b0291b03db60dd244d31e9c97407cccb8d30dd by Miss Islington (bot) in branch '3.8': bpo-28494: Test existing zipfile working behavior. (GH-15853) https://github.com/python/cpython/commit/74b0291b03db60dd244d31e9c97407cccb8d30dd -- nosy:

[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: I just marked bpo-38084 as duplicate of this issue. I manually merged the nosy lists. -- nosy: +vstinner ___ Python tracker ___

[issue38084] multiprocessing cannot recover from crashed worker

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: > Agreed with @ppperry that this is a duplicate of issue22393. Ok, in that case I close this issue as a duplicate of bpo-22393. There is no need to duplicate the discussion here :-) -- resolution: -> duplicate stage: -> resolved status: open -> clo

[issue38084] multiprocessing cannot recover from crashed worker

2019-09-10 Thread Davin Potts
Davin Potts added the comment: Agreed with @ppperry that this is a duplicate of issue22393. The proposed patch in issue22393 is, for the moment, out of sync with more recent changes. That patch's approach would result in the loss of all partial results from a Pool.map, but it may be faster

[issue28494] is_zipfile false positives

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: > The new ziptestdata/ subdir appears to not be part of the install that make > install does. :/ It seems like Lib/test/eintrdata/ (for example) is installed using LIBSUBDIRS variable in Makefile.pre.in. Note: The Windows installer copies recursively Lib/te

[issue28494] is_zipfile false positives

2019-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: The new ziptestdata/ subdir appears to not be part of the install that make install does. :/ -- ___ Python tracker ___ ___

[issue28494] is_zipfile false positives

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: x86 Gentoo Installed with X 3.x buildbot is unhappy: https://buildbot.python.org/all/#/builders/103/builds/3051 == ERROR: test_execute_zip2 (test.test_zipfile.TestExecutablePrependedZip)

[issue38097] cmd.Cmd: Allow other readline completion methods

2019-09-10 Thread Mann Jani
New submission from Mann Jani : readline has completion methods other than `complete` such as `menu-complete` or `menu-complete-backward` which behave differently. Currently Cmd class has hardcoded `complete` method to the completion key which means trying to use other methods is not possible

[issue35784] document that hashlib.new takes kwargs

2019-09-10 Thread Tahia K
Tahia K added the comment: Hello, I just submitted a small PR for this doc change, including the example provided by Jörn (thanks Jörn). -- nosy: +ta1hia ___ Python tracker _

[issue38084] multiprocessing cannot recover from crashed worker

2019-09-10 Thread ppperry
ppperry added the comment: Is this not a duplicate of issue22393? -- nosy: +ppperry ___ Python tracker ___ ___ Python-bugs-list mai

[issue28494] is_zipfile false positives

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15532 pull_request: https://github.com/python/cpython/pull/15891 ___ Python tracker ___ __

[issue11664] Add patch method to unittest.TestCase

2019-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 I think mocking should be kept orthogonal to the unittest module. A person is free to use mocking with different testing tools like py.test or nose. Likewise, they are free to use a different mocking/patching tool than our standard library mock. In

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 from me. I'd be happy to get this cleaned-up. Will work on a PR shortly. -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker

[issue35784] document that hashlib.new takes kwargs

2019-09-10 Thread Tahia K
Change by Tahia K : -- keywords: +patch pull_requests: +15531 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15890 ___ Python tracker ___

[issue7982] extend captured_output to simulate different stdout.encoding

2019-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems like a reasonable idea and the PR looks good as well. Can you provide some examples where we would have used this in the current test suite? -- nosy: +rhettinger ___ Python tracker

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-10 Thread Tim Peters
New submission from Tim Peters : The Glossary has this entry: """ struct sequence A tuple with named elements. Struct sequences expose an interface similar to named tuple in that elements can be accessed either by index or as an attribute. However, they do not have any of the named tuple meth

[issue5714] http.server._url_collapse_path should live elsewhere

2019-09-10 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue11664] Add patch method to unittest.TestCase

2019-09-10 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue32972] unittest.TestCase coroutine support

2019-09-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! The test case re-creates a loop per test for the sake of test isolation (scheduled activities from test_a() don't interleave with test_b()). Unfortunately, on the class level level (setUpClass()/tearDownClass()) the loop doesn't exits. There are oth

[issue38043] small cleanups in Unicode normalization code

2019-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is mostly harmless but I'm concerned that we're encouraging a new Python developer to: * churn code in mostly minor ways, irrelevant to users * altering code long known to be stable, increasing the risk of introducing new bugs or performance change

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Answered in https://github.com/python/cpython/pull/15889 -- ___ Python tracker ___ ___ Python-bug

[issue38095] Multi-threaded circular import fails with _DeadlockError when using importlib

2019-09-10 Thread Ronan Lamy
New submission from Ronan Lamy : The IMPORT_NAME bytecode has a fast path calling PyImport_ImportModuleLevelObject() that behaves differently from importlib. In particular, test_circular_imports() in test_threaded_import.py fails due to a _DeadlockError if you replace some import statements w

[issue33418] Memory leaks in functions

2019-09-10 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > It looks like a bug triggered on purpose. Absolutely. It's one of the many small issues that I found while working on PEP 590 and related things. -- ___ Python tracker _

[issue37935] Improve performance of pathlib.scandir()

2019-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Any optimization can be accepted only when we have any prove that the change actually has measurable effect, and that it is large enough. Avoiding calling list() on the output of scandir() may be not harmless. For example it will left open a file descripto

[issue36781] Optimize sum() for bools

2019-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, it is good for people who already sum bools. But if you are concerned about microoptimization, sum(1 for ... if ...) can be better variant. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -

[issue37935] Improve performance of pathlib.scandir()

2019-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The title is misleading. There is no pathlib.scandir(). -- ___ Python tracker ___ ___ Python-bu

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-09-10 Thread miss-islington
miss-islington added the comment: New changeset e0a1561f93545f38034d6c48f21e79acfd4db04b by Miss Islington (bot) in branch '3.7': bpo-37574: Mention helper functions for find_spec documentation (GH-14739) https://github.com/python/cpython/commit/e0a1561f93545f38034d6c48f21e79acfd4db04b

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-09-10 Thread miss-islington
miss-islington added the comment: New changeset 63909cdc2ff4eec58cc2b56426f2c725ccd4ba2b by Miss Islington (bot) in branch '3.8': bpo-37574: Mention helper functions for find_spec documentation (GH-14739) https://github.com/python/cpython/commit/63909cdc2ff4eec58cc2b56426f2c725ccd4ba2b

[issue36901] Fix leaks in /PC/bdist_wininst/install.c

2019-09-10 Thread Zachary Ware
Zachary Ware added the comment: Closing as "won't fix"; bdist_wininst has been deprecated in 3.8. -- nosy: +zach.ware resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38089] Make macOS tests optional on Azure Pipelines

2019-09-10 Thread Steve Dower
Steve Dower added the comment: New changeset 6a494e77fc20543dcc33c1299b46ee6433d80019 by Steve Dower in branch '3.7': bpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests optional (GH-15851) https://github.com/python/cpython/commit/6a494e77fc20543dcc33c1299b46ee6433d800

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Yury Selivanov
Yury Selivanov added the comment: (copying my GitHub message on this topic from https://github.com/python/cpython/pull/15889#issuecomment-530030002) I thought we were going to be more subtle about this. We have two scenarios: 1. Somebody creates an instance of asyncio.Lock outside of a cor

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Yury Selivanov
Yury Selivanov added the comment: (copying my GitHub message on this topic from https://github.com/python/cpython/pull/15889#issuecomment-530030002) I thought we were going to be more subtle about this. We have two scenarios: Somebody creates an instance of asyncio.Lock outside of a corout

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Yury Selivanov
Change by Yury Selivanov : -- Removed message: https://bugs.python.org/msg351728 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-10 Thread Tim Peters
Tim Peters added the comment: Ah, so you were expecting an error! That helps. But that's not how the language works, or how it's documented to work, as has been explained in quite some detail already. In general, precedence _constrains_ evaluation order, but does not _define_ it. In Pytho

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15530 pull_request: https://github.com/python/cpython/pull/15889 ___ Python tracker ___ __

[issue36781] Optimize sum() for bools

2019-09-10 Thread Vedran Čačić
Vedran Čačić added the comment: I don't think anything _bad_ can happen with that optimization, if it's already written. And people (me included) do like to write shorter expressions instead of longer ones. -- nosy: +veky ___ Python tracker

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-10 Thread Steve Dower
Change by Steve Dower : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-10 Thread Steve Dower
Steve Dower added the comment: What does pip use it for? Applying the below change avoids the exception, but produces \\.\nul as the result, which may or may not be any better. diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 1d22d5f1dc..becfa20a83 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-09-10 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue38089] Make macOS tests optional on Azure Pipelines

2019-09-10 Thread Steve Dower
Steve Dower added the comment: New changeset cdce233f61349d029640b2dd2c0403e502050e39 by Steve Dower (Miss Islington (bot)) in branch '3.8': bpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests optional (GH-15851) https://github.com/python/cpython/commit/cdce233f61349d0

[issue38089] Make macOS tests optional on Azure Pipelines

2019-09-10 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +15529 pull_request: https://github.com/python/cpython/pull/15888 ___ Python tracker ___ _

[issue28494] is_zipfile false positives

2019-09-10 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset 3f4db4a0bab073b768fae958e93288bd5d24eadd by T. Wouters (Gregory P. Smith) in branch 'master': bpo-28494: Test existing zipfile working behavior. (GH-15853) https://github.com/python/cpython/commit/3f4db4a0bab073b768fae958e93288bd5d24eadd -

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2019-09-10 Thread Steve Dower
Steve Dower added the comment: The difference is that launching sys._base_executable *without* __PYVENV_LAUNCHER__ set (because env is not being passed) should lose you access to anything installed into the venv. You may also need to import something from the venv in order to see the issue.

[issue38094] unneeded assignment to wb.len in PyBytes_Concat using buffer protocol

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15528 pull_request: https://github.com/python/cpython/pull/15887 ___ Python tracker ___ __

[issue38094] unneeded assignment to wb.len in PyBytes_Concat using buffer protocol

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15527 pull_request: https://github.com/python/cpython/pull/15886 ___ Python tracker ___ __

[issue28237] In xml.etree.ElementTree bytes tag or attributes raises on serialization

2019-09-10 Thread Stefan Behnel
Stefan Behnel added the comment: Arguably, writing out "b'x'" as attribute name instead of raising an exception isn't ideal. However, OTOH, I think it's reasonable to accept anything that is serialisable as a string, not just strings. That makes it difficult to draw a line. In any case, it'

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-10 Thread Sangeeta M Chauhan
Sangeeta M Chauhan added the comment: Sir, I was expecting that the precedence should be given to relational operator ( 7>"str") and according to that instead of printing 9 it should give error. On Mon, Sep 9, 2019 at 8:38 PM Tim Peters wrote: > > Tim Peters added the comment: > > @sange

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15525 pull_request: https://github.com/python/cpython/pull/15884 ___ Python tracker ___ __

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15526 pull_request: https://github.com/python/cpython/pull/15885 ___ Python tracker ___ __

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2019-09-10 Thread Pierre Glaser
Change by Pierre Glaser : -- keywords: +patch pull_requests: +15524 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15883 ___ Python tracker ___ __

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-09-10 Thread Steve Dower
Steve Dower added the comment: New changeset 9cbb97b29eac4b23e916a3233f26b60ac69e335b by Steve Dower (jdkandersson) in branch 'master': bpo-37574: Mention helper functions for find_spec documentation (GH-14739) https://github.com/python/cpython/commit/9cbb97b29eac4b23e916a3233f26b60ac69e335b

[issue37752] Redundant Py_CHARMASK called in some files

2019-09-10 Thread Steve Dower
Steve Dower added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37752] Redundant Py_CHARMASK called in some files

2019-09-10 Thread Steve Dower
Steve Dower added the comment: New changeset 2ec70102066fe5534f1a62e8f496d2005e1697db by Steve Dower (Jordon Xu) in branch 'master': bpo-37752: Delete redundant Py_CHARMASK in normalizestring() (GH-15095) https://github.com/python/cpython/commit/2ec70102066fe5534f1a62e8f496d2005e1697db

[issue38082] datetime.time object incorrectly shows associated date in strftime() output

2019-09-10 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +15523 pull_request: https://github.com/python/cpython/pull/15882 ___ Python tracker ___ ___

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-10 Thread Jeremy Kloth
Jeremy Kloth added the comment: Another day, another stuck test_concurrent_futures... https://buildbot.python.org/all/#/builders/40/builds/3030 The test process is again killed (line 568) but the processes from the multiprocess pool are still alive. Once I manually kill those pool processes

[issue7982] extend captured_output to simulate different stdout.encoding

2019-09-10 Thread Andrew Frost
Change by Andrew Frost : -- pull_requests: +15522 pull_request: https://github.com/python/cpython/pull/15881 ___ Python tracker ___ _

[issue32972] unittest.TestCase coroutine support

2019-09-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I did an initial try at the documentation. I think most of the functions are very similar to the TestCase API and I just copied them to add the async related information. I guess it could be improved to keep the length down with still retaining the

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset d42a4fdc630c54352701a466a9e512bee68b5c48 by Victor Stinner in branch '3.8': bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) (GH-15871) https://github.com/python/cpython/commit/d42a4fdc630c54352701a466a9e512bee68b5c48 -- __

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 494b61aeec8e583755c8ff3a147a58657353bbc3 by Victor Stinner in branch '3.7': [3.7] bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) (GH-15874) https://github.com/python/cpython/commit/494b61aeec8e583755c8ff3a147a58657353bbc3

[issue38089] Make macOS tests optional on Azure Pipelines

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15521 pull_request: https://github.com/python/cpython/pull/15880 ___ Python tracker ___ __

[issue38089] Make macOS tests optional on Azure Pipelines

2019-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +15520 pull_request: https://github.com/python/cpython/pull/15879 ___ Python tracker ___ __

[issue38089] Make macOS tests optional on Azure Pipelines

2019-09-10 Thread Zachary Ware
Zachary Ware added the comment: New changeset 801f925998cc393260f36f5ac77369fef2373ad1 by Zachary Ware (Steve Dower) in branch 'master': bpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests optional (GH-15851) https://github.com/python/cpython/commit/801f925998cc393260f

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2019-09-10 Thread Pierre Glaser
Pierre Glaser added the comment: > Dropping this into Lib/multiprocessing/spawn.py should cause a repro: if WINSERVICE: _python_exe = os.path.join(sys.exec_prefix, 'python.exe') else: _python_exe = getattr(sys, '_base_executable', sys.executable) In this case, spawn.get_execut

[issue38084] multiprocessing cannot recover from crashed worker

2019-09-10 Thread Davin Potts
Davin Potts added the comment: Thanks to Pablo's good work with implementing the use of multiprocessing's Process.sentinel, the logic for handling PoolWorkers that die has been centralized into Pool._maintain_pool(). If _maintain_pool() can also identify which job died with the dead PoolWor

[issue10108] ExpatError not property wrapped

2019-09-10 Thread Stefan Behnel
Stefan Behnel added the comment: I agree that it's surprising to get a low-level parser error from a high-level library like xmlrpc. I think this can be changed without deprecation, because users must expect exceptions from the xmlrpc library in any case. Targeting to Py3.9, needs patch with

[issue32972] unittest.TestCase coroutine support

2019-09-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +15519 pull_request: https://github.com/python/cpython/pull/15878 ___ Python tracker ___

[issue33602] Remove set and queue references from Data Types

2019-09-10 Thread Julien Palard
Change by Julien Palard : -- nosy: -mdk resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33602] Remove set and queue references from Data Types

2019-09-10 Thread Julien Palard
Julien Palard added the comment: New changeset 816825e192ed430438c613d52a58fb9e1a8d90f4 by Julien Palard (Miss Islington (bot)) in branch '3.7': bpo-33602: Doc: Remove set and queue references from Data Types (GH-7055) (GH-15876) https://github.com/python/cpython/commit/816825e192ed430438c61

[issue33602] Remove set and queue references from Data Types

2019-09-10 Thread Julien Palard
Julien Palard added the comment: New changeset 58ef7d341c79f649da275bb1d5c11f668d7bac9e by Julien Palard (Miss Islington (bot)) in branch '3.8': bpo-33602: Doc: Remove set and queue references from Data Types (GH-7055) (GH-15875) https://github.com/python/cpython/commit/58ef7d341c79f649da275

[issue37935] Improve performance of pathlib.scandir()

2019-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Shai, please open the 'Your Details' link in the bugs.python.org sidebar and make sure you have your github username filled in. it needs to say ShaiAvr for our CLA automation to understand. Avoiding calling list() on the output of scandir() is always desi

[issue38084] multiprocessing cannot recover from crashed worker

2019-09-10 Thread Davin Potts
Davin Potts added the comment: Sharing for the sake of documenting a few things going on in this particular example: * When a PoolWorker process exits in this way (os._exit(anything)), the PoolWorker never gets the chance to send a signal of failure (normally sent via the outqueue) to the Ma

[issue38090] test_ctypes is leaking references

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: > hmm I assume _PyDict_GetItemId has different reference semantics? PyDict_GetItem() and _PyDict_GetItemId() return a borrowed reference. PyObject_GetAttr() and _PyObject_GetAttrId() return a strong reference. --

[issue38084] multiprocessing cannot recover from crashed worker

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: > Windows is definitely affected, and you can run the repro in my first post to > check other platforms. Oh right, I can also reproduce the issue on Linux. But I don't understand why test_multiprocessing_spawn works on all platforms, but only fails on macOS

[issue36876] Global C variables are a problem.

2019-09-10 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +15518 pull_request: https://github.com/python/cpython/pull/15877 ___ Python tracker ___ ___

[issue38084] multiprocessing cannot recover from crashed worker

2019-09-10 Thread STINNER Victor
STINNER Victor added the comment: I converted the example into attached file mp_exit.py and I added a call to faulthandler to see what is going on. Output with the master branch of Python: vstinner@apu$ ~/python/master/python ~/mp_exit.py Timeout (0:00:05)! Thread 0x7ff40139a700 (most r

[issue31226] shutil.rmtree fails when target has an internal directory junction (Windows)

2019-09-10 Thread Steve Dower
Steve Dower added the comment: Closing this as we've resolved it elsewhere. Thanks for the contribution! -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue38094] unneeded assignment to wb.len in PyBytes_Concat using buffer protocol

2019-09-10 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +15517 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15274 ___ Python tracker ___

[issue38094] unneeded assignment to wb.len in PyBytes_Concat using buffer protocol

2019-09-10 Thread Gregory P. Smith
New submission from Gregory P. Smith : https://github.com/python/cpython/pull/15274 -- assignee: gregory.p.smith messages: 351700 nosy: gregory.p.smith priority: normal severity: normal status: open title: unneeded assignment to wb.len in PyBytes_Concat using buffer protocol versions: P

[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2019-09-10 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2019-09-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 7d952ded6813c896ea3f4234bb8db5247dcb5484 by Stefan Behnel (Gordon P. Hemsley) in branch 'master': bpo-32424: Deprecate xml.etree.ElementTree.Element.copy() in favor of copy.copy() (GH-12995) https://github.com/python/cpython/commit/7d952ded6813c

[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2019-09-10 Thread Stefan Behnel
Stefan Behnel added the comment: Let's just deprecate it directly (in Py3.9, I guess), given that it was never documented. -- ___ Python tracker ___ _

  1   2   3   >