[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

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

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

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

[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

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

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

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

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

[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

[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

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

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

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

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

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

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

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

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

[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

[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

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

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

[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

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

[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

[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

[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

[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

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

[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

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

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

[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

[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

[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

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

[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

[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

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

[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

[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

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

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

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

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

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

[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

[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

[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

[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

[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

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

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

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

[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

[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

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

2018-10-22 Thread Tal Einat
Tal Einat added the comment: I'm sorry to have caused this mess, it was bad judgement on my part. Adding mention in What's is a good idea, Ned, I'll do that. -- ___ Python tracker

[issue35040] functools.lru_cache does not work with coroutines

2018-10-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: A coroutine detection is a relatively slow check. I don't think we need to do it in `functools.lru_cache`. There is a specialized asyncio compatible version: https://github.com/aio-libs/async_lru Please use it. --