[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-07-01 Thread Anmol Gupta
Anmol Gupta added the comment: Wrong documentaion section linked. Correct seciton: Section 4.2 on https://docs.python.org/3/tutorial/controlflow.html The last line needs more explanation. -- ___ Python tracker _

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I tried to set last_type, last_value and last_traceback to None at startup, and this also fixes a crash. But this changes behavior (these attributes became set), and deleting them doesn't guaranties that following setting will be successful, especially with

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-07-01 Thread Anmol Gupta
New submission from Anmol Gupta: Documentation section: https://docs.python.org/3/reference/compound_stmts.html#for The documentation does not explain at all why is there an infinite loop when not using a copy of the list. It leaves the reader in a confused state. Even there are questions co

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-07-01 Thread Anmol Gupta
Changes by Anmol Gupta : -- assignee: docs@python components: Documentation nosy: Anmol Gupta, docs@python priority: normal severity: normal status: open title: More details in reference 'Looping through a list in Python and modifying it' type: enhancement versions: Python 3.6

[issue30495] IDLE: modernize textview module

2017-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was trying to think of 2 possible future uses of ViewFrame in addition to current embedding in in ViewWindows: embedded in a tab, and tiled in a panel. With no window close [X] buttom, the button in a frame will be needed, so I left it. Since the button is

[issue30823] os.startfile("") craches Python 2.7, 3.4 in Windows 7 32 bit in ConEmu 161002 [32]

2017-07-01 Thread mikeee
mikeee added the comment: Apparently it's a ConEmu bug! -- resolution: -> not a bug title: os.startfile("") craches Python 2.7, 3.4, 3.5 in Windows 7 -> os.startfile("") craches Python 2.7, 3.4 in Windows 7 32 bit in ConEmu 161002 [32] ___ Python t

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: Err, s/officially part of the status quo/officially part of the language specification/ :) -- ___ Python tracker ___

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: As per the discussion in issue #17960, I'm going to put together a short PEP about this topic for Python 3.7 that will better specify the expected behaviour of locals() and frame.f_locals. That will be a combination of making the status quo official, proposing s

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-07-01 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 03af4282423b1c287a194664f90496cfc9cf20c7 by Mariatta (Kojo Idrissa) in branch '3.6': [3.6] bpo-29933: Improve set_write_buffer_limits description (GH-2262) (GH-2532) https://github.com/python/cpython/commit/03af4282423b1c287a194664f90496cfc9cf20c

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-07-01 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 4685e56596f9f332e402c79c913a73b19f4411e1 by Mariatta (Kojo Idrissa) in branch '3.5': [3.5] bpo-29933: Improve set_write_buffer_limits description (GH-2262) (GH-2533) https://github.com/python/cpython/commit/4685e56596f9f332e402c79c913a73b19f4411e

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-07-01 Thread Kojo Idrissa
Changes by Kojo Idrissa : -- pull_requests: +2599 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-07-01 Thread Kojo Idrissa
Changes by Kojo Idrissa : -- pull_requests: +2600 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30597] Show expected input in custom "print" error message

2017-07-01 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2598 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30597] Show expected input in custom "print" error message

2017-07-01 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30798] Document that subprocess.Popen does not set PWD

2017-07-01 Thread James Lin
James Lin added the comment: Yes, but the Python docs have scary-looking warnings about using shell=True, so people (rightly) should avoid using shell=True if they don't think that they need it. And in this case, people might not even know that they're invoking some binary that expects PWD fr

[issue30798] Document that subprocess.Popen does not set PWD

2017-07-01 Thread R. David Murray
R. David Murray added the comment: If you pass shell=True, PWD gests set, because it is a shell variable and the shell sets it. If you don't, it doesn't, just like all the other shell-maintained variables. I'm not sure it is worth calling out specifically in the Popen docs, myself; it is one

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-01 Thread Utkarsh Upadhyay
Changes by Utkarsh Upadhyay : -- pull_requests: +2597 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-07-01 Thread STINNER Victor
STINNER Victor added the comment: > It was usual to validate that the bug is now fixed. Crap, I wanted to write: useful, not usual!? -- ___ Python tracker ___ __

[issue30825] csv.Sniffer does not detect lineterminator

2017-07-01 Thread Max Vorobev
Changes by Max Vorobev : -- pull_requests: +2595 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30825] csv.Sniffer does not detect lineterminator

2017-07-01 Thread Max Vorobev
New submission from Max Vorobev: Line terminator defaults to '\r\n' while detecting dialect in csv.Sniffer -- components: Library (Lib) messages: 297497 nosy: Max Vorobev priority: normal severity: normal status: open title: csv.Sniffer does not detect lineterminator type: behavior versi

[issue30794] Add multiprocessing.Process.kill()

2017-07-01 Thread Vitor Pereira
Changes by Vitor Pereira : -- nosy: +vmsp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-07-01 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi All, Should I try to make this a github PR instead to accelerate the review? Regards, Eric Lafontaine -- ___ Python tracker ___ __

[issue30794] Add multiprocessing.Process.kill()

2017-07-01 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2593 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-07-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: There are just 6 cases left where the return code of _PySys_SetObjectId() is ignored: Python/pylifecycle.c|689 col 5| _PySys_SetObjectId(&PyId_stderr, pstderr); Python/pylifecycle.c|1211 col 9| _PySys_SetObjectId(&PyId_stderr, pstderr); Python/pylifecycle.c|165

[issue30824] Add mimetype for extension .json

2017-07-01 Thread Pierre Quentel
New submission from Pierre Quentel: I propose to add a mapping of file extension .json to mime type "application/json". This is registered in https://www.iana.org/assignments/media-types -- components: Library (Lib) messages: 297494 nosy: quentel, r.david.murray priority: normal severit

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-07-01 Thread Ned Deily
Ned Deily added the comment: Yury, based on the most recent comments, can this issue be closed now? -- ___ Python tracker ___ ___ Pyth

[issue12568] Add functions to get the width in columns of a character

2017-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: At least two other issues depend on this: issue17048 and issue24665. If Victor lost interest in this issue I take it. I'm going to push at least imperfect solution which may be improved in time. -- resolution: rejected -> stage: resolved -> status:

[issue30495] IDLE: modernize textview module

2017-07-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: I have some questions about the final version: 1. `ViewWindow` still has `self.button_ok` defined, but it's not used as far as I can tell. Can that be removed? 2. `def ok` in ViewFrame calls `self.parent.destroy`. I was wondering if it should be `self.pare

[issue30715] Test_winreg, test_dynamic_key hangs on my Win 10

2017-07-01 Thread Ned Deily
Changes by Ned Deily : -- priority: release blocker -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue27425] Tests fail because of git's newline preferences on Windows

2017-07-01 Thread Ned Deily
Ned Deily added the comment: OK, based on Steve's response, I am closing this again as it sounds like it should not be an issue going forward with releases and also not for dev builds as long as people do a fresh clone if necessary. Further discussion on hardening the tests can take place over

[issue30823] os.startfile("") craches Python 2.7, 3.4, 3.5 in Windows 7

2017-07-01 Thread Ned Deily
Changes by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python

[issue12568] Add functions to get the width in columns of a character

2017-07-01 Thread R. David Murray
R. David Murray added the comment: Interestingly, this just came up again in issue 30717. -- nosy: +r.david.murray ___ Python tracker ___

[issue30823] os.startfile("") craches Python 2.7, 3.4, 3.5 in Windows 7

2017-07-01 Thread morris wang
Changes by morris wang : -- title: os.startfile("") craches Python 2.7, 3.4, 3.5 -> os.startfile("") craches Python 2.7, 3.4, 3.5 in Windows 7 ___ Python tracker ___ ___

[issue30717] str.center() is not unicode aware

2017-07-01 Thread R. David Murray
R. David Murray added the comment: See also issue 12568. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30823] os.startfile("") craches Python 2.7, 3.4, 3.5

2017-07-01 Thread morris wang
New submission from morris wang: try... except... won't catch it. import os try: os.startfile("") except: pass crashes python, resulting in error message "python has stopped working" -- messages: 297487 nosy: morris wang priority: normal severity: normal status: open title: os

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8a8d28501fc8ce25926d168f1c657656c809fd4c by Serhiy Storchaka (Osvaldo Santana Neto) in branch 'master': bpo-30441: Fix bug when modifying os.environ while iterating over it (#2409) https://github.com/python/cpython/commit/8a8d28501fc8ce25926d168

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-07-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 3024c0529077f5cff0b32dc84b5923c8fba99a87 by Antoine Pitrou in branch '3.6': [3.6] bpo-30703: Improve signal delivery (GH-2415) (#2527) https://github.com/python/cpython/commit/3024c0529077f5cff0b32dc84b5923c8fba99a87 --

[issue30796] Failures/crashes in test_signal on some buildbots

2017-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 3024c0529077f5cff0b32dc84b5923c8fba99a87 by Antoine Pitrou in branch '3.6': [3.6] bpo-30703: Improve signal delivery (GH-2415) (#2527) https://github.com/python/cpython/commit/3024c0529077f5cff0b32dc84b5923c8fba99a87 --

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it good to ignore errors of setting sys attributes? Can we prevent these errors? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka keywords: +3.6regression versions: +Python 3.7 ___ Python tracker ___

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other side, issue23203 fixed just a symptom. The issue is reproduced in master when replace "import foobar.submodule as foo" with "import foobar.submodule; foo = foobar.submodule". The regression may be related to issue22557. Either the optimization intro

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-07-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2592 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-07-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2591 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30695] add a nomemory_allocator to the _testcapi module

2017-07-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 85f643023fed3d4e2fb8e399f9ad57f3a65ef237 by xdegaye in branch 'master': bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) https://github.com/python/cpython/commit/85f643023fed3d4e2fb8e399f9ad57f3a65ef237 -- ___

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-07-01 Thread Manvi B
Changes by Manvi B : -- pull_requests: +2590 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-07-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: In msg296758 Nathaniel wrote: > It turns out if you simply delete the LocalsToFast and FastToLocals calls in > call_trampoline, then the test suite still passes. I'm pretty sure that pdb > relies on this as a way to set local variables, though, so I think this

[issue30715] Test_winreg, test_dynamic_key hangs on my Win 10

2017-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just found -x test_winreg so I can run the test suite while waiting for this to be fixed. -- ___ Python tracker ___ _

[issue27425] Tests fail because of git's newline preferences on Windows

2017-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is still the problem with test_winreg freezing CommandPrompt, #30715. For me, this is the worst test bug ever. -- ___ Python tracker ___