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

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

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

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

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

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

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

[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

[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) https://github.com/python/cpython/commit/938c00ca9e4207a

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

[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

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

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

[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

[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: +miss-islingt

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2f90261280e36a179831d72ce794115be31c88bb by Victor Stinner in branch 'master': bpo-38321: Fix compiler warning in _randommodule.c (GH-16512) https://github.com/python/cpython/commit/2f90261280e36a179831d72ce794115be31c88bb --

[issue37474] Should Py_Initialize() control the floating point mode?

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

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: It seems like nobody came up with a solution for the debug mode since June. I close the issue. Reopen it if you would like to propose a solution. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[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: Thanks Lorenz Mende for the nice bug report, investigating the issue and proposing fix. I wrote a PR based on your work with some minor changes. I included it in a large regrtest change to fix other bugs. regrtest should work again with locales other than En

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8eb64155ff26823542ccf0225b3d57b6ae36ea89 by Victor Stinner (Dong-hee Na) in branch '2.7': [2.7] bpo-38243: Escape the server title of DocXMLRPCServer (GH-16447) https://github.com/python/cpython/commit/8eb64155ff26823542ccf0225b3d57b6ae36ea89

[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 d6a92b55944bf1ef4992e4375f02a7132717bf53 by Miss Islington (bot) in branch '3.7': bpo-36670: Multiple regrtest bugfixes (GH-16511) https://github.com/python/cpython/commit/d6a92b55944bf1ef4992e4375f02a7132717bf53 -- __

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16106 pull_request: https://github.com/python/cpython/pull/16516 ___ 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: > We could avoid typeperf command by accessing directly performance counters: > (...) Honestly, it sounds very complicated. I don't think that it's worth it. With Lorenz's fix, regrtest now "just works". So I think that it's good enough. -- ___

[issue38321] Compiler warnings when building Python 3.8

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

[issue37802] micro-optimization of PyLong_FromSize_t()

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

[issue37474] Should Py_Initialize() control the floating point mode?

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I failed to find time to convert attached tests to tests in the Python test suite. But I understood that existing tests should be enough to control the rounding mode. I removed the call. If something goes wrong, we can add it back. -- resolut

[issue37474] Should Py_Initialize() control the floating point mode?

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5e0ea7540f577c9684e272000fdfc80d29bb78a2 by Victor Stinner in branch 'master': bpo-37474: Don't call fedisableexcept() on FreeBSD (GH-16515) https://github.com/python/cpython/commit/5e0ea7540f577c9684e272000fdfc80d29bb78a2 --

[issue38331] Exec not recognizing global variables inside function

2019-10-01 Thread Krishna Oza
Krishna Oza added the comment: adding self to nosy list. -- nosy: +Krishna Oza ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6314abcc08f5d0f3d3a915dc9455ea223fa65517 by Victor Stinner in branch 'master': bpo-37802: Fix a compiler warning in longobject.c (GH-16517) https://github.com/python/cpython/commit/6314abcc08f5d0f3d3a915dc9455ea223fa65517 -- _

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6314abcc08f5d0f3d3a915dc9455ea223fa65517 by Victor Stinner in branch 'master': bpo-37802: Fix a compiler warning in longobject.c (GH-16517) https://github.com/python/cpython/commit/6314abcc08f5d0f3d3a915dc9455ea223fa65517 -- nosy: +vst

[issue38321] Compiler warnings when building Python 3.8

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

[issue38335] simplify overlaps function in ipaddress.py

2019-10-01 Thread Sanjay
New submission from Sanjay : the current implementation of overlaps function tests either network or broadcast address is in other but we can skip checking broadcast address is in other because we anyway check if other.network_address in self without loss of generality if we assume self has

[issue38335] simplify overlaps function in ipaddress.py

2019-10-01 Thread Sanjay
Change by Sanjay : -- pull_requests: +16110 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16519 ___ Python tracker ___ __

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

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

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: I prefer to keep it open until the 3.5 backport is merged. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___

[issue22273] abort when passing certain structs by value using ctypes

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e --

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e -- nosy: +vstinner

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e --

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e --

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Oops, the previous comment should be for bpo-38321. -- ___ Python tracker ___ ___ Python-bugs-list

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Ok, most warnings have been fixed in 3.8 and master. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +16112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16520 ___ Python tracker ___

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e (oops, I made a typo in the bpo number

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Can this issue be closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Géry added the comment: I have opened a PR here: https://github.com/python/cpython/pull/16520 -- ___ Python tracker ___ ___ Python-b

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
New submission from Géry : The [language documentation](https://docs.python.org/3/reference/datamodel.html#invoking-descriptors) states: > Data descriptors with __set__() and __get__() defined always override a > redefinition in an instance dictionary. In contrast, non-data descriptors can >

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Change by Géry : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Jonas Drotleff
New submission from Jonas Drotleff : When calling inspect.getmembers on a class that has a property (@property), the property will be called by the getattr call in getmembers. Example: import inspect class Example: def __init__(self, var): self._var = var print('__init__'

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Jonas Drotleff
Change by Jonas Drotleff : -- keywords: +patch pull_requests: +16113 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16521 ___ Python tracker ___ _

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread Dong-hee Na
Dong-hee Na added the comment: > I prefer to keep it open until the 3.5 backport is merged. Sorry, I didn't find it. Yes, we should let it open until the PR is merged. -- ___ Python tracker _

[issue36054] Way to detect CPU count inside docker container

2019-10-01 Thread Mike
Mike added the comment: Is this issue still being worked on as a core feature? I needed a solution for this using 2.7.11 to enable some old code to work properly/nicely in a container environment on AWS Batch and was forced to figure out what OpenJDK was doing and came up with a solution. Th

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

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- title: Way to detect CPU count inside docker container -> On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container) ___ Python tracker _

[issue38338] [2.7] test_ssl fails

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue38338] [2.7] test_ssl fails

2019-10-01 Thread STINNER Victor
New submission from STINNER Victor : SSLv23 and TLS v1.0 are disabled by RHEL8 crypto policy. AMD64 RHEL8 2.7: https://buildbot.python.org/all/#/builders/245/builds/5 test_protocol_sslv23 (test.test_ssl.ThreadedTests) Connecting to an SSLv23 server with various client options ... Could not s

[issue38338] [2.7] test_ssl fails on RHEL8

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- title: [2.7] test_ssl fails -> [2.7] test_ssl fails on RHEL8 ___ Python tracker ___ ___ Python-bugs-li

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
New submission from STINNER Victor : Example: https://travis-ci.org/python/cpython/jobs/590339147 $ python --version Python 3.6.3 $ pip --version pip 9.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (python 3.6) Could not locate requirements.txt. Override the inst

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: This issue prevents to merge the following 3.5 pull requests: https://github.com/python/cpython/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+base%3A3.5+ -- nosy: +larry ___ Python tracker

[issue38340] ERROR WHILE BUILDING pyworld for x86_64-linux-gnu-gcc

2019-10-01 Thread ECAS India
New submission from ECAS India : creating build/temp.linux-x86_64-3.7/lib/World creating build/temp.linux-x86_64-3.7/lib/World/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: I suggest to backport https://github.com/python/cpython/pull/10676 to 3.5: use Sphinx 1.8.2 in .travis.yml. Commit in the 3.6 branch: commit 23a98abd4256f931ed89b65ec6babd4f06dbff97 Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.co

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

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

[issue38340] ERROR WHILE BUILDING pyworld for x86_64-linux-gnu-gcc

2019-10-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is an issue tracker for CPython. The build log seems like an issue with pyworld package. I would suggest creating an issue in their tracker. -- nosy: +xtreak ___ Python tracker

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 16522 to update Sphinx from version 1.6.1 to 1.8.2. -- ___ Python tracker ___ ___ P

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Sanjay
Sanjay added the comment: the issue happens in 2.7 as well -- nosy: +Sanjay versions: +Python 2.7 ___ Python tracker ___ ___ Python

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: After this change I get some disk space issues on the Fedora rawhide buildbot for the clang installed build only (and strangely enough not for the other jobs). There are currently around 9GB of free space there: https://buildbot.python.org/all/#/build

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2019-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: > It seems like nobody came up with a solution for the debug mode since June. I > close the issue. Reopen it if you would like to propose a solution. I think the only solution is to have a flag to disable optimizations, inlcluding this one. --

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

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

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry about that. I'm attaching a patch which skips those tests if there's not enough free disk space. If you confirm it works I'll make a PR. -- Added file: https://bugs.python.org/file48636/disk-space.patch __

[issue38313] Crash/No start

2019-10-01 Thread Zachary Ware
Zachary Ware added the comment: Feel free to reopen if you can answer the questions in my previous message. -- resolution: -> works for me stage: -> resolved status: pending -> closed ___ Python tracker __

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Should we decorate the new files with @requires('largefile', '...')? Documentation: largefile - It is okay to run some test that may create huge files. These tests can take a long time and may consume >2 GiB of disk space

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: It seems that the -uall argument is passed to regrtest invocation for the buildbot run [0] which invokes the largefile tests (including all the resource intensive tests). However when configure is run you can see: checking whether to enable large file

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-10-01 Thread Tony Cappellini
Tony Cappellini added the comment: I'm still seeing hangs with subprocess.run() in Python 3.7.4 Unfortunately, it involves talking to an NVME SSD on Linux, so I cannot easily submit code to duplicate it. -- nosy: +cappy ___ Python tracker

[issue38333] add type signatures to library function docs

2019-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: I'm sorry, but that's unacceptable. On Mon, Sep 30, 2019 at 23:42 Vedran Čačić wrote: > > 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

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-10-01 Thread Tony Cappellini
Tony Cappellini added the comment: Using Python 3.7.4, I'm calling subprocess.run() with the following arguments. .run() still hangs even though a timeout is being passed in. subprocess.run(cmd_list, stdout=subprocess.PIPE,

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

2019-10-01 Thread Tim Peters
Tim Peters added the comment: Neil, about this comment: # - ct is not yet trash (it actually is but the GC doesn't know because of # the missing tp_traverse method). I believe gc should know ct is trash. ct is in the cf list, and the latter does have tp_traverse. What gc won't know i

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: > checking whether to enable large file support... no That's only at the C level to decide how to pass a file position. It's unrelated to the regrtest "largefile" resource. -- ___ Python tracker

  1   2   >