[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is 
> probably more of a bug in the test suite than anything else.

Maybe a point to be taken in this issue is that pdb does a poor usage of this 
feature as shown in issue 9633: changing the value of a local only works in 
limited cases.

--
nosy: +xdegaye

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 introduced 
a bug, or it exposed an existing bug by changing timings.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/8a8d28501fc8ce25926d168f1c657656c809fd4c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.startfile("") craches Python 2.7, 3.4, 3.5
type: crash
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 on bpo-30716.

--
priority: release blocker -> 
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.parent.ok`?  Trying to think of the pros and cons of both ways.

Thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: closed -> open
versions: +Python 3.7 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
severity: normal
status: open
title: Add mimetype for extension .json
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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|1657 col 5| _PySys_SetObjectId(&PyId_stdin, std);
Python/pylifecycle.c|1666 col 5| _PySys_SetObjectId(&PyId_stdout, std);
./Python/pythonrun.c|104 col 9| _PySys_SetObjectId(&PyId_ps1, v = 
PyUnicode_FromString(">>> "));
./Python/pythonrun.c|109 col 9| _PySys_SetObjectId(&PyId_ps2, v = 
PyUnicode_FromString("... "));

Error should be handled there in the same way errors are handled within the 
functions where they are invoked (returning -1, NULL or aborting). This should 
be the purpose of another issue as it is acceptable I think that there is no 
test case for those changes.

I am leaving the day after tomorrow for few weeks, without internet access 
(sailing to the mid-atlantic), and will create then a new issue if no one else 
does that first.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 consequence among *many* of calling a 
program directly rather than through a shell.  (Note that if a shell is 
involved at any point, PWD gets set, so it is only binary programs that require 
that they be called from a shell that are at issue.)

Furthermore, it is not obvious that even all shells set PWD, although I believe 
that most do.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 from the shell.  

In my experience, it's not that uncommon for people to rewrite sh/bash shell 
scripts in Python.  Something starts off as a sh/bash script, evolves to a 
point where it's cumbersome to maintain, and it gets rewritten in Python.  But 
after it's rewritten, some invoked binaries might not behave as before, and 
it's unclear why.

When I encountered this problem myself, the first thing I tried was to 
explicitly set the `cwd` argument.  Some mention of the PWD environment 
variable would have saved me a lot of time.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/4685e56596f9f332e402c79c913a73b19f4411e1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/03af4282423b1c287a194664f90496cfc9cf20c7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 some 
changes, and asking Guido for a design decision.

Documenting the status quo: make the current behaviour at module scope, class 
scope, and the corresponding behaviours of exec and eval officially part of the 
status quo

Proposing a change: replacing the current LocalsToFast approach with a custom 
write-through proxy type that updates the locals array and nonlocal cell 
variables immediately whenever frame.f_locals is modified (this is the part 
that should fix the bug reported in this issue)

Requesting a design decision: whether locals() at 
function(/generator/coroutine) scope should return:
- a direct reference to the write-through proxy
- a live read-only dict-proxy (ala class __dict__ attributes)
- a point-in-time snapshot (i.e. copying the namespace)

--
assignee:  -> ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 now [Close] rather than [OK], the function should be close 
rather than ok.

I copied, rather than cut, before pasting and editing.  The Windows button is 
not needed.  The window ok is for the protocol call, but I don't really know if 
that is needed.  Tk apps seem to work without it.  I may investigate more 
someday.  Leave it for now.

By calling window destroy directly, the frame close will survive window close 
being deleted, but not window close being edited to add other actions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 concerning the same on stackoverlflow: 
https://stackoverflow.com/questions/44633798/loop-through-a-list-in-python-and-modify-it

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 new compact dict implementation.

--
Added file: http://bugs.python.org/file46986/set-last-exception.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com