[issue34996] Add name to process and thread pool

2018-10-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for clarifying the use case. I think it's a good idea with multiple thread pools and below outputs for the program with the PR is more easier to debug than the current code. # ../backups/bpo34720.py from multiprocessing.pool import ThreadP

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : In the doc, we write PEP XYZ but there is a sphinx role for that, just replace PEP XYZ by :pep:`XYZ` and convert the :PEP: by :pep: -- assignee: docs@python components: Documentation messages: 328240 nosy: docs@python, matrixise priority: normal sev

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-22 Thread STINNER Victor
STINNER Victor added the comment: "http.server is meant for demo purposes and does not implement the stringent security checks needed of a real HTTP server. We do not recommend using this module directly in production." I'm not sure about "demo" and "real" in this warning. I propose: "http.

[issue34971] add support for tls/ssl sessions in asyncio

2018-10-22 Thread Rémi Cardona
Rémi Cardona added the comment: Hi Andrew, How should I proceed? What's the best avenue to get in touch with Yuri? Thanks -- ___ Python tracker ___ __

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9374 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34971] add support for tls/ssl sessions in asyncio

2018-10-22 Thread Christian Heimes
Christian Heimes added the comment: Don't use the existing session feature, yet. It only works for TLS 1.2 connections. TLS 1.3 behaves differently. There are multiple session tickets (usually two) and tickets are sent after handshake. Further more, Python lacks clear shutdown of a connectio

[issue28960] Small typo in Thread.join docs

2018-10-22 Thread beautifuljose
beautifuljose added the comment: I think both dash and comma should be removed Found a similar problem here: https://www.paperhelp.org/essay/buy-argumentative-essay.html -- nosy: +beautifuljose ___ Python tracker

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: This gives us the hyperlink everywhere a PEP is referenced? -- nosy: +thatiparthy ___ Python tracker __

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: sure, it's the default behavior of this role, I have a PR with the fix, but Github has a big issue with the PRs :/ -- ___ Python tracker ___

[issue35043] functools.reduce doesn't work properly with itertools.chain

2018-10-22 Thread Vasantha Ganesh Kanniappan
New submission from Vasantha Ganesh Kanniappan : I'm facing this issue in python 3.6.5 How to reproduce: my_list = [[1, 2], [3, 4]] a = reduce(itertools.chain, my_list) The output of `a' is [1, 2, 3, 4] as expected, but now my_list is [[1, 2, 3, 4], [3, 4]] -- components: Library (L

[issue35044] Use the :exc: role for the exceptions in the doc

2018-10-22 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : In the doc, there is some locations where we do not use the :exc: role for the exceptions, I try to fix that with this PR. -- assignee: docs@python components: Documentation messages: 328249 nosy: docs@python, matrixise priority: normal severity: no

[issue35039] remove unused vars in Lib/turtledemo module

2018-10-22 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : This PR removes the variables which are no longer used. -- ___ Python tracker ___ ___

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is wrong with the current code? Why replace :PEP: with :pep:? -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: in fact, in the doc of Sphinx, it's just :pep: and not :PEP: see http://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html?highlight=%3Apep%3A#role-pep in this case, I think it's better to use the "reference" and use pep in lowercase. -

[issue35027] distutils.core.setup does not raise TypeError when if classifiers, keywords and platforms fields are not specified as a list

2018-10-22 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32890] os: Some functions may report bogus errors on Windows

2018-10-22 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread STINNER Victor
STINNER Victor added the comment: > Should this be back-ported to 3.7 and 3.6? 2.7? IMHO it's a bad idea to introduce a *new* exception in stable version. I suggest to only modify the master branch. -- nosy: +vstinner versions: +Python 3.8 -Python 3.7 ___

[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change is big enough now. I think it is better to not backport it. -- ___ Python tracker ___ _

[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2018-10-22 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : There is an Python test that checks the minimum TLS version - test_min_max_version (test.test_ssl.ContextTests). Fedora 29+ sets TLSv1 as explicit minimum version. Python's test suite assumes that the minimum protocol version is set to a magic marke

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I am -0 on this. I want to hear a more compelling argument than wanting to leverage an existing feature. IMHO, when i am reading the documentation i never bothered to go into the PEP docs - most of the times. I expli

[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2018-10-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @thatiparthy When you start to contribute to Python, and you see there is a PEP in the doc. 1. What's a PEP? 2. Where can I find the PEP XYZ? 3. Am I on the right website for the PEP? if you don't know the concept of the PEPs, you will check with your favori

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Julien Palard
Julien Palard added the comment: When mentionning a PEP I see no reason not to point to it, and as it's easy to do with the pep role, I'm +1 on this. -- nosy: +mdk ___ Python tracker ___

[issue34980] KillPython target doesn't detect 64-bit processes

2018-10-22 Thread Jeremy Kloth
Jeremy Kloth added the comment: It seems my buildbot has a stuck process again. The "sticking" occurred in this case due to test_concurrent_futures being hung (for over 38hrs! which is a different issue) and a DSL link reset at the same time. So now, all builds on the master branch fail bec

[issue34980] KillPython target doesn't detect 64-bit processes

2018-10-22 Thread Steve Dower
Steve Dower added the comment: Sorry for missing the PR. One little tweak for consistency, but otherwise it looks fine. -- ___ Python tracker ___

[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread Tal Einat
Tal Einat added the comment: Thanks for all of your work on this Oren! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread STINNER Victor
STINNER Victor added the comment: ( https://github.com/python/cpython/pull/10029 has been merged, but GitHub webhooks are paused and so no notification has been sent to this bug yet. ) -- ___ Python tracker ___

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-10-22 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since there are still 2 open PRs: PR 8878 and PR 8959. -- nosy: +vstinner resolution: fixed -> status: closed -> open ___ Python tracker

[issue35043] functools.reduce doesn't work properly with itertools.chain

2018-10-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: Your example code doesn't behave the way you claim. my_list isn't changed, and `a` is a chain generator, not a list (without a further list wrapping). In any event, there is no reason to involve reduce here. chain already handles varargs what you're trying t

[issue32890] os: Some functions may report bogus errors on Windows

2018-10-22 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Python 2.7 doesn't have the same issue. In os.execve(), posix_error() is used, but it is based on errno, which is correct. (A funny bit is that os.execve('', ['a'], {}) crashes in 2.7, probably because of some checks in CRT). And os.truncate() is not imple

[issue35043] functools.reduce doesn't work properly with itertools.chain

2018-10-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: If I am understanding this correctly the :pep: role is already present and only that PEP references that don't have this role are being updated now? ➜ cpython git:(master) rg ':pep:`\d+`' | grep 'rst' | grep -Ev 'NEWS|whatsnew' | wc 324268

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-10-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: @Serhiy: I would like to proceed with this. Do you have further comments? Do you prefer to bring this up on python-dev for further discussion? -- ___ Python tracker

[issue35004] Odd behavior when using datetime.timedelta under cProfile

2018-10-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Anthony for the details. This was fixed in master and back ported to 3.7. The fix is also released with 3.7.1 [0] which I have verified locally. So I propose closing this issue since upgrading to the latest maintenance release fixes this. [

[issue35044] Use the :exc: role for the exceptions in the doc

2018-10-22 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9375 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Josh Snyder
New submission from Josh Snyder : logging.StreamHandler contains the following code: stream.write(msg) stream.write(self.terminator) stream.flush() When sys.stderr (or whatever other stream) is unbuffered, this results in two system calls and allows log records from different proc

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue35004] Odd behavior when using datetime.timedelta under cProfile

2018-10-22 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread Tal Einat
Tal Einat added the comment: New changeset 2447773573e74819e163f8963ab107bc5db123e5 by Tal Einat in branch 'master': bpo-29843: raise AttributeError if given negative _length_ (GH-10029) https://github.com/python/cpython/commit/2447773573e74819e163f8963ab107bc5db123e5 -- __

[issue34856] Make the repr of lambda contain signature and body expression.

2018-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: My understanding of the current code is that in the example above, f.__name__ would be "". 1. I believe this would make the representation < at 0x> unless functions gain a custom __repr__ method that strips the brackets off the name when present. I

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3df85404d4bf420db3362eeae1345f2cad948a71 by Victor Stinner (Paul Ganssle) in branch 'master': bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959) https://github.com/python/cpython/commit/3df85404d4bf420db3362eeae1345f2cad948a

[issue35021] Assertion failures in datetimemodule.c.

2018-10-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9376 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9377 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9379 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35021] Assertion failures in datetimemodule.c.

2018-10-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9378 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue28960] Small typo in Thread.join docs

2018-10-22 Thread Martin Panter
Change by Martin Panter : -- Removed message: https://bugs.python.org/msg328245 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +9380 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Josh Snyder
Change by Josh Snyder : -- keywords: +patch pull_requests: +9381 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +9382 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34912] Update overflow checks in resize_buffer

2018-10-22 Thread STINNER Victor
STINNER Victor added the comment: The current code LGTM. -- nosy: +vstinner resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35039] remove unused vars in Lib/turtledemo module

2018-10-22 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +9383 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35040] [functools] provide an async-compatible version of functools.lru_cache

2018-10-22 Thread Brett Cannon
Brett Cannon added the comment: Making this a feature request. -- nosy: +brett.cannon title: functools.lru_cache does not work with coroutines -> [functools] provide an async-compatible version of functools.lru_cache type: -> enhancement versions: -Python 3.5, Python 3.6, Python 3.7

[issue35033] Column or row spanning cells are not implemented.

2018-10-22 Thread Julien Palard
Julien Palard added the comment: POC is now a PR: https://github.com/sphinx-doc/sphinx/pull/5559 -- ___ Python tracker ___ ___ Pyth

[issue34901] Missing isolated (-I) flag in sys.flags table

2018-10-22 Thread Ned Deily
Ned Deily added the comment: New changeset da7d7d0ccc2e7cab62080e146cab027f2aa6fd03 by Ned Deily (danishprakash) in branch '3.6': [3.6] bpo-34901: add -I flag to sys.flags (GH-9755) https://github.com/python/cpython/commit/da7d7d0ccc2e7cab62080e146cab027f2aa6fd03 -- nosy: +ned.deily

[issue34901] Missing isolated (-I) flag in sys.flags table

2018-10-22 Thread Ned Deily
Ned Deily added the comment: Thanks, Danish and everyone else! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread miss-islington
miss-islington added the comment: New changeset 18450be94d74b5c7e05a08f4aaa4792749ecda18 by Miss Islington (bot) in branch '3.7': bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959) https://github.com/python/cpython/commit/18450be94d74b5c7e05a08f4aaa4792749ecda18 ---

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 83a07652e0033f0d9994ae7634b91d6581c56b00 by Xiang Zhang (Andrei Petre) in branch 'master': bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) https://github.com/python/cpython/commit/83a07652e0033f0d9994ae7634b91d6581c56b

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +9384 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +9385 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington
miss-islington added the comment: New changeset fc62c7223ed1ecd422e870cf7bfc2306050a by Miss Islington (bot) in branch '3.7': bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) https://github.com/python/cpython/commit/fc62c7223ed1ecd422e870cf7bfc2306050a -

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington
miss-islington added the comment: New changeset 42892a2a38bb97c41e7b1b154e2b5b6f13d27b57 by Miss Islington (bot) in branch '3.6': bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) https://github.com/python/cpython/commit/42892a2a38bb97c41e7b1b154e2b5b6f13d27b57 -

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +9386 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-10-22 Thread Tal Einat
Tal Einat added the comment: New changeset 3b0047d8e982b10b34ab05fd207b7d513cc1188a by Tal Einat (Alexey Izbyshev) in branch 'master': bpo-34482: test datetime classes' handling of non-UTF-8-encodable strings (GH-8878) https://github.com/python/cpython/commit/3b0047d8e982b10b34ab05fd207b7d51

[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +9387 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-10-22 Thread Tal Einat
Tal Einat added the comment: Ned, should this also be added to the 2.7 What's New? Or perhaps reverted on the 2.7 branch? -- ___ Python tracker ___ __

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 56a4a3aa555b3abc756cf837eddac4c0bf545db7 by Xiang Zhang in branch '2.7': [2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) https://github.com/python/cpython/commit/56a4a3aa555b3abc756cf837eddac4c0bf545db7 --

[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks all. :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset b7d62050e7d5fc208ae7673613da4f1f2bc565c4 by Vinay Sajip (Josh Snyder) in branch 'master': bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042) https://github.com/python/cpython/commit/b7d62050e7d5fc208ae7673613da4f1f2bc565

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +9388 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma