[issue30860] Consolidate stateful C globals under a single struct.

2017-09-07 Thread Eric Snow

Eric Snow added the comment:


New changeset 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6 by Eric Snow in branch 
'master':
bpo-30860: Consolidate stateful runtime globals. (#3397)
https://github.com/python/cpython/commit/2ebc5ce42a8a9e047e790aefbf9a94811569b2b6


--

___
Python tracker 

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



[issue29136] Add OP_NO_TLSv1_3

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset b9a860f3bf80b0d4a6c25d0f2f6ef849d9bf3594 by Christian Heimes in 
branch '2.7':
[2.7] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3446)
https://github.com/python/cpython/commit/b9a860f3bf80b0d4a6c25d0f2f6ef849d9bf3594


--

___
Python tracker 

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



[issue2771] Test issue

2017-09-07 Thread Ezio Melotti

Ezio Melotti added the comment:

test

--

___
Python tracker 

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



[issue30389] distutils._msvccompiler cannot find VS 2017

2017-09-07 Thread STINNER Victor

STINNER Victor added the comment:

I'm pretty sure that the commit 05f01d85257d0f3409c7335aaf0bf6a6da7eecb7 
introduced this memory leak:

test_distutils leaked [8736, 8740, 8740] references, sum=26216
test_distutils leaked [8640, 8642, 8642] memory blocks, sum=25924

http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.x/builds/99/steps/test/logs/stdio

--
nosy: +haypo

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

In addition to adding a test case to ensure exceptions were handled correctly, 
I also added test cases for return, break, and continue, and all four new tests 
initially failed.

Adding a special case for WITH_CLEANUP_START resolved those, but the tests need 
an adjustment to account for the fact that some of the opcode offsets are 
unreachable in the test case that covers the early return.

--

___
Python tracker 

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



[issue29136] Add OP_NO_TLSv1_3

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 9f2b3d4c2899f9caea2e47063061a76e460ac618 by Christian Heimes in 
branch '3.6':
[3.6] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3444)
https://github.com/python/cpython/commit/9f2b3d4c2899f9caea2e47063061a76e460ac618


--

___
Python tracker 

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



[issue31392] Upgrade installers to OpenSSL 1.1.0f

2017-09-07 Thread Steve Dower

New submission from Steve Dower:

As per usual

--
assignee: christian.heimes
components: SSL, Windows, macOS
messages: 301673
nosy: christian.heimes, ned.deily, paul.moore, ronaldoussoren, steve.dower, 
tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Upgrade installers to OpenSSL 1.1.0f
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



[issue31392] Upgrade installers to OpenSSL 1.1.0f

2017-09-07 Thread Steve Dower

Changes by Steve Dower :


--
keywords: +patch
pull_requests: +3448
stage:  -> patch review

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2017-09-07 Thread Nathaniel Smith

Nathaniel Smith added the comment:

On another topic: you should add a test where the 'with' block exits by raising 
an exception, because in this case the interpreter jumps straight to 
WITH_CLEANUP_START, potentially skipping the DEFER_PENDING_UNTIL entirely.

--

___
Python tracker 

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



[issue31391] Forward-port test_xpickle from 2.7 to 3.x

2017-09-07 Thread Zachary Ware

New submission from Zachary Ware:

Python 2.x has a test called test_xpickle which confirms that pickles can be 
successfully passed back and forth between different versions of Python.  This 
should be forward-ported to 3.x, and include tests between the python under 
test, 3.6, 3.5, 3.4, and 2.7, for each protocol available to each version.  If 
feeling adventurous, you could even go as far back as 3.0 :)

Ideally, this should also run on Windows by making use of the `py` launcher, 
and possibly even include 32- and 64-bit versions of each Python on Windows.

--
components: Tests
messages: 301671
nosy: ammar2, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Forward-port test_xpickle from 2.7 to 3.x
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



[issue27354] SSLContext.load_verify_locations cannot handle paths on Windows which cannot be encoded using mbcs

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:

3.6 uses PyUnicode_FSConverter() to convert the cafile and capath arguments, 
then passes PyBytes_AS_STRING() to OpenSSL. What needs to change to support 
non-ASCII chars on Windows?

--
assignee: christian.heimes -> steve.dower
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



[issue28248] Upgrade installers to OpenSSL 1.0.2j

2017-09-07 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3447

___
Python tracker 

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



[issue26268] Update python.org installers to use OpenSSL 1.0.2f

2017-09-07 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3444

___
Python tracker 

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



[issue26930] Upgrade installers to OpenSSL 1.0.2h

2017-09-07 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3446

___
Python tracker 

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



[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-09-07 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3443

___
Python tracker 

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



[issue26465] Upgrade OpenSSL shipped with python installers

2017-09-07 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3445

___
Python tracker 

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



[issue31387] asyncio should make it easy to enable cooperative SIGINT handling

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

As per Nathaniel's comments on issue 29988 and 31388, doing this robustly 
relies on:

1. the event loop being able to reliably guard itself and __aexit__ method 
implementations against interrupts (issue 31388)
2. "async with" statements ensuring that if the frame resumes after calling 
__aenter__, then it will also call __aexit__ (as was done for synchronous with 
statements in issue 29988)

--
dependencies: +Provide a way to defer SIGINT handling in the current thread, 
with statements are not ensuring that __exit__ is called if __enter__ succeeds

___
Python tracker 

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



[issue29136] Add OP_NO_TLSv1_3

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
pull_requests: +3442

___
Python tracker 

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



[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-09-07 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3441

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

Nathaniel, actually, I think issue 31387 is the right one to comment on, as 
still being able to interrupt long-running loops in synchronous code is a 
quality of implementation concern for that RFE.

--

___
Python tracker 

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



[issue29136] Add OP_NO_TLSv1_3

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
keywords: +patch
pull_requests: +3440
stage: needs patch -> patch review

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

A new issue (depending on this one and potentially on issue 31388) would be 
helpful, especially if you were able to use the testing trace hook from this PR 
to reproduce the problem.

The reason I've taken the async with change out of this issue is because it's 
untestable given the current state of asyncio - the pending call fires as soon 
as the YIELD_FROM opcode is reached and control returns to the asyncio event 
loop. If there's a simple(ish) coroutine driver we can add to manage 
KeyboardInterrupt adequately for testing purposes, I'd be prepared to do that, 
but I'd still like to consider the async case separately from the synchronous 
one.

--

___
Python tracker 

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



[issue31379] run_profile_task in Makefile should add $(RUNSHARED)

2017-09-07 Thread Xiang Zhang

Changes by Xiang Zhang :


--
resolution:  -> fixed
stage: needs patch -> 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



[issue31379] run_profile_task in Makefile should add $(RUNSHARED)

2017-09-07 Thread Xiang Zhang

Xiang Zhang added the comment:


New changeset 7dcea4c8769e4f12197646922f399a699c3e2a5a by Xiang Zhang in branch 
'2.7':
bpo-31379: Added $(RUNSHARED) to run_profile_task (#3422)
https://github.com/python/cpython/commit/7dcea4c8769e4f12197646922f399a699c3e2a5a


--

___
Python tracker 

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



[issue31388] Provide a way to defer SIGINT handling in the current thread

2017-09-07 Thread Nathaniel Smith

Nathaniel Smith added the comment:

Note also that adding a check to ceval is not sufficient -- there are also lots 
of calls to PyErr_CheckSignals scattered around the tree, e.g. next to every 
syscall that can return EINTR.

I've considered proposing something like this in the past, since it feels weird 
that currently "control-C actually works" is some proprietary advantage of trio 
instead of something that the interpreter supports. I haven't because I 
couldn't figure out how to do it in a clean way... there are some subtleties. 
But then I started to write a comment here saying why it's impossible, and 
realized maybe it's not so bad after all :-).

The main issue I was worried about was that in an event loop, there's a tricky 
potential race condition where you want the core loop to have protection 
enabled in general, but you need to receive signals when the loop blocks 
waiting for I/O, BUT you can't actually run the normal Python handlers here 
because if they raise an exception you'll lose the I/O state.

The solution is to use a mixture of set_wakeup_fd to handle the wakeup, and 
then an explicit run-signal-handlers primitive to collect the exception in a 
controlled manner:

set_wakeup_fd(wakeup_fd)
block_for_io([wakeup_fd, ...])
try:
explicitly_run_signal_handlers_even_though_they_are_deferred()
except KeyboardInterrupt:
# arrange to deliver KeyboardInterrupt to some victim task
...

So we should have a primitive like this.

The other issue is where how to store the "are we deferring signals?" state. 
The main feature we would like is for it to automatically vary depending on the 
execution context -- in particular, naively sticking it into a thread-local 
won't work, because if you use send/throw/next to switch contexts you want that 
to switch the deferred state as well. I started writing some complicated thing 
here involving new attributes on frames and functions and rules for 
initializing one from the other or inheriting it from a parent frame, and then 
I realized there were some complications around generators... and actually I 
was just reinventing the same machinery we need for exc_info and PEP 550. So 
probably the is just "use a PEP 550 context var". But, it will need a bit of 
special magic: we need to make it possible to atomically set this state to a 
particular value when invoking a function, and then restore it when exiting 
that function.

I'm imagining something like, you write:

@interrupts_deferred(state)
def __exit__(*args):
...

and it sets some magic flag on the function object that makes it act as if you 
wrote:

def __exit__(*args):
with interrupts_deferred_cvar.assign(state):
...

except that the assignment happens atomically WRT interrupts.

So yeah, I think the necessary and sufficient features are:
- flag stored in a cvar
- check it from PyErr_CheckSignals and ceval.c
- some way to explicitly trigger any deferred processing
- some way to atomically assign the cvar value when entering a function

--
nosy: +yselivanov

___
Python tracker 

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



[issue30640] NULL + 1 in _PyFunction_FastCallDict(), PyEval_EvalCodeEx()

2017-09-07 Thread STINNER Victor

STINNER Victor added the comment:

It's now fixed in Python 3.6 and master (3.7).

FYI this issue was also detected by Coverity as CID 1415964.

--
resolution:  -> fixed
stage:  -> 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



[issue30640] NULL + 1 in _PyFunction_FastCallDict(), PyEval_EvalCodeEx()

2017-09-07 Thread STINNER Victor

STINNER Victor added the comment:


New changeset f032e9237aa7d43d21e0b04d685c36bddf7078c1 by Victor Stinner 
(Zackery Spytz) in branch '3.6':
[3.6] bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and 
PyEval_EvalCodeEx() (GH-2919) (#2964)
https://github.com/python/cpython/commit/f032e9237aa7d43d21e0b04d685c36bddf7078c1


--

___
Python tracker 

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



[issue31387] asyncio should make it easy to enable cooperative SIGINT handling

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

Issue 31388 is also potentially relevant here, as registering a signal handler 
for SIGINT isn't sufficient to cover all potential cases were Py_AddPendingCall 
gets called. In particular, the tests for issue 29988 use Py_AddPendingCall to 
emulate Ctrl-C, rather than relying on SIGINT actually being raised.

--

___
Python tracker 

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



[issue29136] Add OP_NO_TLSv1_3

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset cb5b68abdeb1b1d56c581d5b4d647018703d61e3 by Christian Heimes in 
branch 'master':
bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (#1363)
https://github.com/python/cpython/commit/cb5b68abdeb1b1d56c581d5b4d647018703d61e3


--

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2017-09-07 Thread Nathaniel Smith

Nathaniel Smith added the comment:

Should I open a new issue for the __aexit__ part of this issue then, or...? The 
reason neither asyncio nor trio use the approach you describe is that it makes 
it impossible to break out of infinite loops, and trio in particular has 
entirely solved this problem modulo interpreter limitations like this one.

--

___
Python tracker 

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



[issue31036] building the python docs requires the blurb module

2017-09-07 Thread Ned Deily

Ned Deily added the comment:

For the 3.6 and master branches, I've now enhanced Doc/Makefile to better find 
its tools.  If the doc venv is present, e.g. make venv was run, the Doc build 
recipe will use sphinx-build and blurb from there, otherwise the process PATH 
will be search for installed versions.  Hopefully, that covers nearly all use 
cases.  But, if necessary, explicit locations for the tools can be set with the 
SPHINXBUILD and BLURB variables.  3.4 and 3.5 are now in security-fix mode: 
this change can be backported at their release manager's discretion.  The 2.7 
Doc/Makefile does not need to use blurb because its docset does not build a 
changelog html file like the 3.x docs do.

--
priority: release blocker -> 
versions:  -Python 2.7

___
Python tracker 

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



[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-09-07 Thread Zachary Ware

Changes by Zachary Ware :


--
keywords: +patch
pull_requests: +3439
stage: backport needed -> patch review

___
Python tracker 

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



[issue31036] building the python docs requires the blurb module

2017-09-07 Thread Ned Deily

Ned Deily added the comment:


New changeset 645c1e421348790d49eab863279a41cb2b6a007a by Ned Deily (Miss 
Islington (bot)) in branch '3.6':
[3.6] bpo-31036: Allow sphinx and blurb to be found automatically (GH-3440) 
(#3441)
https://github.com/python/cpython/commit/645c1e421348790d49eab863279a41cb2b6a007a


--

___
Python tracker 

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



[issue31390] pydoc.Helper.keywords missing async and await

2017-09-07 Thread Robert Weiner

Changes by Robert Weiner :


--
type:  -> behavior

___
Python tracker 

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



[issue31390] pydoc.Helper.keywords missing async and await

2017-09-07 Thread Robert Weiner

New submission from Robert Weiner:

Shouldn't async and await be added to the pydoc keywords list?

--
assignee: docs@python
components: Documentation
messages: 301657
nosy: docs@python, rsw
priority: normal
severity: normal
status: open
title: pydoc.Helper.keywords missing async and await
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



[issue31036] building the python docs requires the blurb module

2017-09-07 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +3438

___
Python tracker 

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



[issue31036] building the python docs requires the blurb module

2017-09-07 Thread Ned Deily

Ned Deily added the comment:


New changeset 590665c399fc4aa3c4a9f8e7104d43a02e9f3a0c by Ned Deily in branch 
'master':
bpo-31036: Allow sphinx and blurb to be found automatically (#3440)
https://github.com/python/cpython/commit/590665c399fc4aa3c4a9f8e7104d43a02e9f3a0c


--

___
Python tracker 

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



[issue31344] f_trace_opcodes frame attribute to switch to per-opcode tracing

2017-09-07 Thread Nick Coghlan

Changes by Nick Coghlan :


--
resolution:  -> fixed
stage: commit review -> 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



[issue31344] f_trace_opcodes frame attribute to switch to per-opcode tracing

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset 5a8516701f5140c8c989c40e261a4f4e20e8af86 by Nick Coghlan in 
branch 'master':
bpo-31344: Per-frame control of trace events (GH-3417)
https://github.com/python/cpython/commit/5a8516701f5140c8c989c40e261a4f4e20e8af86


--

___
Python tracker 

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



[issue29136] Add OP_NO_TLSv1_3

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:

PR 1363 also introduced ssl.HAS_TLSv1_3 flag for unit tests. The flag is 
required because OpenSSL 1.1.1-dev can be compiled without TLS 1.3 support. The 
development version always defines OP_NO_TLSv1_3 to a non-zero value. Further 
more the PR adds a test for TLS 1.3.

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



[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:

In Python 3.6 and master, SSLSocket.sendall() now accepts any bytes-like object 
that can be cast to bytes. Since it uses a sliced memoryview instead of sliced 
bytes, it avoids extra copies of the payload, too.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 9423f5d68874ff2e500cbe072c25f883cf754be8 by Christian Heimes in 
branch '3.6':
[3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384) (#3434)
https://github.com/python/cpython/commit/9423f5d68874ff2e500cbe072c25f883cf754be8


--

___
Python tracker 

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



[issue20854] multiprocessing.managers.Server: problem with returning proxy of registered object

2017-09-07 Thread Davin Potts

Davin Potts added the comment:

It appears that the multiple workarounds proposed by the OP (@allista) address 
the original request and that there is no bug or unintended behavior arising 
from multiprocessing itself.  Combined with the lack of activity in this 
discussion, I'm inclined to believe that the workarounds have satisfied the OP 
and this issue should be closed.

--
nosy: +davin
status: open -> pending
type:  -> behavior

___
Python tracker 

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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
resolution:  -> fixed
stage: patch review -> 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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 6c99b652f7909f86753b9e567ea18c95ee736e83 by Christian Heimes in 
branch '3.6':
[3.6] bpo-28958: Improve SSLContext error reporting. (GH-3414) (#3432)
https://github.com/python/cpython/commit/6c99b652f7909f86753b9e567ea18c95ee736e83


--

___
Python tracker 

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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 611a3eab194dfd0a54e541e8e8547051df24bcfc by Christian Heimes in 
branch '2.7':
[2.7] bpo-28958: Improve SSLContext error reporting. (GH-3414) (#3433)
https://github.com/python/cpython/commit/611a3eab194dfd0a54e541e8e8547051df24bcfc


--

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-09-07 Thread Gregory P. Smith

Gregory P. Smith added the comment:


New changeset fb4c28c032e26b3cdbe67eae3769d45207ac3507 by Gregory P. Smith 
(Miss Islington (bot)) in branch '3.6':
[3.6] bpo-22635: Update the getstatusoutput docstring. (GH-3435) (#3439)
https://github.com/python/cpython/commit/fb4c28c032e26b3cdbe67eae3769d45207ac3507


--

___
Python tracker 

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



[issue31036] building the python docs requires the blurb module

2017-09-07 Thread Ned Deily

Changes by Ned Deily :


--
pull_requests: +3437

___
Python tracker 

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



[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray

Changes by R. David Murray :


--
stage: patch review -> 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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-09-07 Thread Gregory P. Smith

Gregory P. Smith added the comment:


New changeset 2eb0cb4787d02d995a9bb6dc075983792c12835c by Gregory P. Smith in 
branch 'master':
bpo-22635: Update the getstatusoutput docstring. (#3435)
https://github.com/python/cpython/commit/2eb0cb4787d02d995a9bb6dc075983792c12835c


--

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-09-07 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +3436

___
Python tracker 

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



[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-07 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
keywords: +patch
pull_requests: +3435
stage:  -> patch review

___
Python tracker 

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



[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-07 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

And specifically `header` is chosen to match IPython.  Why be different?

--

___
Python tracker 

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



[issue31356] Add context manager to temporarily disable GC

2017-09-07 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I believe Raymond is aware of the thread issue.  We discussed it.

If gc.disable() would return the previous state of the gc instead of None and 
an API to enable based on a passed in bool, both of which are written in C and 
executed with the GIL (or merely another lock protecting changing the gc state 
rather than the GIL) held and this Python would works with multiple threads all 
fighting to control the gc state:

@contextmanager
def gc_disabled():
  previous_enable_state = gc.disable()
  yield
  gc.set_enable(previous_enable_state)

But we don't need to modify gc.disable's return value or add a set_enable() if 
gc_disabled() itself is not implemented in Python.  That's up to the 
implementer.

--

___
Python tracker 

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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2017-09-07 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +3433

___
Python tracker 

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



[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-07 Thread Devin Jeanpierre

Changes by Devin Jeanpierre :


--
keywords: +patch
pull_requests: +3434
stage: test needed -> patch review

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-09-07 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
pull_requests: +3432

___
Python tracker 

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



[issue31356] Add context manager to temporarily disable GC

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

Yes, this will be in the same category as the standard stream redirection 
context managers - multi-threaded applications either won't be able to use it, 
or else will need to manage access to it somehow.

--

___
Python tracker 

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



[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-07 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

IPython has a neat little feature where the function that enters the debugger 
takes an optional `header` argument.  If given, it is a string that's printed 
to the console just before the debugger is entered.

https://github.com/ipython/ipython/blob/master/IPython/terminal/embed.py#L177
https://mail.python.org/pipermail/python-dev/2017-September/149256.html

I kind of realized this would be nice to have in pdb, and the code is easy so 
here's the tracking issue.

--
assignee: barry
components: Library (Lib)
messages: 301643
nosy: barry
priority: normal
severity: normal
status: open
title: Give pdb.set_trace() an optional `header` keyword argument
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



[issue31385] `import as` does not work when module has same same as parent module

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

As Serhiy notes, this isn't a bug in the import name resolution, it's a 
consequence of the wildcard import in bugtest's __init__.py replacing its own 
"bug.foo" submodule attribute with a reference to "bug.foo.foo".

If the star imports can't be avoided, then a potential workaround is to restore 
"bugtest.foo" from sys.modules:

foo = sys.modules[__name__ + ".foo"]

--
resolution:  -> not a bug
stage:  -> 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



[issue31294] ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 27ce5a1b1931b670da234c30d24bfbbc93fa24d7 by Christian Heimes 
(Miss Islington (bot)) in branch '3.6':
[3.6] bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples 
(GH-3229) (#3430)
https://github.com/python/cpython/commit/27ce5a1b1931b670da234c30d24bfbbc93fa24d7


--

___
Python tracker 

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



[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray

R. David Murray added the comment:


New changeset e89b35dd2b87e85978b91e3e2dbdea1fc76d6be4 by R. David Murray (Miss 
Islington (bot)) in branch '3.6':
[3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. 
(GH-3272) (GH-3429)
https://github.com/python/cpython/commit/e89b35dd2b87e85978b91e3e2dbdea1fc76d6be4


--

___
Python tracker 

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



[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 888bbdc192ec4db888a294ef758cf5510442dc9a by Christian Heimes in 
branch 'master':
bpo-27340: Use memoryview in SSLSocket.sendall() (#3384)
https://github.com/python/cpython/commit/888bbdc192ec4db888a294ef758cf5510442dc9a


--
nosy: +christian.heimes

___
Python tracker 

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



[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
keywords: +patch
pull_requests: +3431
stage: needs patch -> patch review

___
Python tracker 

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



[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray

R. David Murray added the comment:


New changeset 82cae7c5be4175e2173e4d342825b5315a9d612a by R. David Murray (Miss 
Islington (bot)) in branch '2.7':
[2.7] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. 
(GH-3272) (GH-3428)
https://github.com/python/cpython/commit/82cae7c5be4175e2173e4d342825b5315a9d612a


--

___
Python tracker 

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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 17c9ac927b97472dd080174fde709d9234848195 by Christian Heimes in 
branch 'master':
bpo-28958: Improve SSLContext error reporting. (#3414)
https://github.com/python/cpython/commit/17c9ac927b97472dd080174fde709d9234848195


--

___
Python tracker 

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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
pull_requests: +3430

___
Python tracker 

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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
keywords: +patch
pull_requests: +3429
stage:  -> patch review

___
Python tracker 

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



[issue31252] Operator.itemgetter documentation should include dictionary keys example

2017-09-07 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
keywords: +patch
pull_requests: +3428
stage:  -> patch review

___
Python tracker 

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



[issue31356] Add context manager to temporarily disable GC

2017-09-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Note that threads can break this. Even without calling gc.enable() explicitly, 
"with gc_disabled()" in different thread can enable GC inside other "with 
gc_disabled()" block.

--
nosy: +pitrou, serhiy.storchaka

___
Python tracker 

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



[issue31270] Simplify documentation of itertools.zip_longest

2017-09-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:


New changeset 3147b0422cbeb98065666ccf95ab6845ac800fd4 by Raymond Hettinger in 
branch 'master':
bpo-31270: Modification of Pr 3200 (#3427)
https://github.com/python/cpython/commit/3147b0422cbeb98065666ccf95ab6845ac800fd4


--

___
Python tracker 

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



[issue31385] `import as` does not work when module has same same as parent module

2017-09-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In 3.7 the error is different:

>>> import bugtest.foo.foo as bar
Traceback (most recent call last):
  File "", line 1, in 
ImportError: cannot import name 'foo' from 'bugtest.foo.foo' 
(/home/serhiy/py/cpython/bugtest/foo/foo.py)

The statement "from .foo import *" in bugtest/__init__.py imports name foo from 
the module bugtest.foo and rewrites the attribute foo.

>>> import bugtest
>>> bugtest.foo


This behavior is the same in all supported Python versions.

--
nosy: +brett.cannon, eric.snow, ncoghlan, serhiy.storchaka

___
Python tracker 

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



[issue31356] Add context manager to temporarily disable GC

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

+1 from me for the general idea. As far as where to put it goes, I think the 
`gc` module would be the most appropriate home.

--
assignee: ncoghlan -> 
components: +Library (Lib)
stage:  -> needs patch

___
Python tracker 

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



[issue30389] distutils._msvccompiler cannot find VS 2017

2017-09-07 Thread Steve Dower

Steve Dower added the comment:


New changeset 76006f285a7e146484d9296597d1d0ace778f992 by Steve Dower in branch 
'3.6':
[3.6] bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler GH-1632 
(#3425)
https://github.com/python/cpython/commit/76006f285a7e146484d9296597d1d0ace778f992


--

___
Python tracker 

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



[issue31075] Collections - ChainMap - Documentation example wrong order line

2017-09-07 Thread Raymond Hettinger

Changes by Raymond Hettinger :


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



[issue31387] asyncio should make it easy to enable cooperative SIGINT handling

2017-09-07 Thread Nathaniel Smith

Nathaniel Smith added the comment:

Some prior discussion on the old asyncio tracker:
https://github.com/python/asyncio/pull/305#issuecomment-168714572
https://github.com/python/asyncio/issues/341

--

___
Python tracker 

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



[issue31270] Simplify documentation of itertools.zip_longest

2017-09-07 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
resolution:  -> fixed
stage: patch review -> 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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

I've also filed issue 31388 to cover providing APIs to defer signals and 
pending calls when running in the main thread.

--

___
Python tracker 

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



[issue31294] ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working

2017-09-07 Thread Roundup Robot

Changes by Roundup Robot :


--
keywords: +patch
pull_requests: +3427
stage:  -> patch review

___
Python tracker 

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



[issue31294] ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:


New changeset 586c0502b5eb9a39cabe0bc2707a8ff63114265c by Christian Heimes 
(Pablo Galindo) in branch 'master':
bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples (#3229)
https://github.com/python/cpython/commit/586c0502b5eb9a39cabe0bc2707a8ff63114265c


--
nosy: +christian.heimes

___
Python tracker 

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



[issue23588] Errno conflicts in ssl.SSLError

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue23749] asyncio missing wrap_socket (starttls)

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:

I'm removing myself and drop the SSL component. It's really a feature request 
for asyncio.

--
assignee: christian.heimes -> yselivanov
components:  -SSL

___
Python tracker 

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



[issue31388] Provide a way to defer SIGINT handling in the current thread

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

Yes, it could also be done as a temporary global block on all signal and 
pending call processing, not just on SIGINT specifically.

Either way, I'll also note that this can be a no-op in any thread other than 
the main thread, as those already delegate signal handling to the main thread.

--

___
Python tracker 

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



[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread Roundup Robot

Changes by Roundup Robot :


--
keywords: +patch
pull_requests: +3426
stage: backport needed -> patch review

___
Python tracker 

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



[issue28588] Memory leak in OpenSSL thread state

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:

It's rather painful to fix the issue. Since the memory leak only affects users 
that create and destroy a lot of threads and the bug has been addressed by 
OpenSSL 1.1.0, I won't fix it.

If users are running into the issue, they should rather update to more recent 
OpenSSL versions. The 1.1.0 series uses proper thread local storage.

--
resolution:  -> wont fix
stage: test needed -> resolved
status: open -> closed
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



[issue31388] Provide a way to defer SIGINT handling in the current thread

2017-09-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think SIGINT handling is the wrong level to do this.  Instead, it should be 
done at the ceval level, at the point where the "eval breaker" flag is examined 
for any interruption request to the normal sequential flow of execution.

--
nosy: +pitrou

___
Python tracker 

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



[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray

R. David Murray added the comment:

Thanks, Elena.

--
resolution:  -> fixed
stage:  -> backport needed

___
Python tracker 

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



[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +3425

___
Python tracker 

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



[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray

R. David Murray added the comment:


New changeset 397c467c49385023de36411194d381ac993bae1a by R. David Murray 
(Elena Oat) in branch 'master':
bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. 
(#3272)
https://github.com/python/cpython/commit/397c467c49385023de36411194d381ac993bae1a


--

___
Python tracker 

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



[issue31388] Provide a way to defer SIGINT handling in the current thread

2017-09-07 Thread Nick Coghlan

New submission from Nick Coghlan:

As discussed in issue 29988, it's currently difficult to write completely 
robust cleanup code in Python, as the default SIGINT handler may lead to 
KeyboardInterrupt being raised as soon as *any* Python code starts executing in 
the main thread, even when that Python code is part of:

- a finally block
- an __exit__ method
- a __del__ method
- a weakref callback
- a trace hook
- a profile hook
- a pending call callback

Issue 29988 proposes a way to adjust with statements to ensure that __exit__ at 
least starts executing if __enter__ returned successfully, but that's only 
sufficient to ensure robust resource cleanup if the __exit__ method is 
implemented in C and never calls back in to any operation that starts executing 
Python code.

Currently, the "best" option for ensuring cleanup code isn't interrupted is to 
outright ignore SIGINT while the cleanup code is running:

old_handler = signal.getsignal(signal.SIGINT)
signal.signal(signal.SIGINT, signal.SIG_IGN)
try:
... # Cleanup code
finally:
signal.signal(signal.SIGINT, old_handler)

Fortunately, most folks aren't willing to do this, but it does suggest a 
potential pattern for temporarily *deferring* SIGINT handling: adding a 
"deferred" attribute to the entries in the array that tracks incoming signals, 
and providing some C level decorators and context managers for manipulating 
that state.

--
components: Interpreter Core
messages: 301622
nosy: gregory.p.smith, ncoghlan, njs
priority: normal
severity: normal
stage: needs patch
status: open
title: Provide a way to defer SIGINT handling in the current thread
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



[issue31385] `import as` does not work when module has same same as parent module

2017-09-07 Thread R. David Murray

R. David Murray added the comment:

It seems likely that this is related to the problems discussed (and hopefully 
solved) in issue 30024.

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



[issue31270] Simplify documentation of itertools.zip_longest

2017-09-07 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
pull_requests: +3424

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2017-09-07 Thread Nick Coghlan

Nick Coghlan added the comment:

I've retitled this issue to specifically cover the synchronous signal-safe 
context management case and filed issue 31387 to cover making it easy to switch 
asyncio over to cooperative SIGINT handling (rather than the default 
pre-emptive handling).

--
title: (async) with blocks and try/finally are not as KeyboardInterrupt-safe as 
one might like -> with statements are not ensuring that __exit__ is called if 
__enter__ succeeds

___
Python tracker 

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



[issue31387] asyncio should make it easy to enable cooperative SIGINT handling

2017-09-07 Thread Nick Coghlan

New submission from Nick Coghlan:

Issue 29988 covers the fact that with the default SIGINT handler installed, a 
poorly timed Ctrl-C can lead to context managers failing to even start running 
their __(a)exit__ methods, let alone complete them.

For the asynchronous case, the problem is even worse, as the *event loop* may 
be interrupted at arbitrary points if the default SIGINT handler is left in 
place.

To handle this robustly, it's desirable to make it easy to switch event-driven 
programs over to cooperative Ctrl-C handling by installing an asyncio SIGINT 
handler while the event loop is running, rather than leaving the default SIGINT 
handler in place.

(Note: while installing a cooperative SIGINT handler will enable more robust 
event-loop managed resource cleanup, it will have the downside that Ctrl-C 
won't be able to interrupt a coroutine that has incorrectly blocked the main 
thread)

--
components: Library (Lib)
messages: 301619
nosy: giampaolo.rodola, gregory.p.smith, haypo, ncoghlan, njs, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: asyncio should make it easy to enable cooperative SIGINT handling
type: behavior
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



[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-09-07 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

So, while we do have a conflict between consistency and utility, I think 
@r.david.murry 's last comment has convinced me that raising the exception is 
more helpful.  I think we should do that, fixing the documentation and giving 
up on the consistency issue.

--

___
Python tracker 

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



[issue15670] PEP 3121, 384 Refactoring applied to ssl module

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:

Is anybody interested to port Robin's patch to 3.7?

--
assignee: christian.heimes -> 
keywords: +easy (C)

___
Python tracker 

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



[issue27629] Cannot create ssl.SSLSocket without existing socket

2017-09-07 Thread Christian Heimes

Christian Heimes added the comment:

I have created #27629 to allow customization of SSLObject and SSLSocket. I'm 
closing this as "won't fix" because I rather want people to move away from 
ssl.wrap_socket() and manual instantiation of SSLSocket.

--
resolution:  -> wont fix
stage: patch review -> 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



[issue31386] Make return types of wrap_bio and wrap_socket customizable

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
pull_requests: +3423

___
Python tracker 

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



[issue30389] distutils._msvccompiler cannot find VS 2017

2017-09-07 Thread Steve Dower

Changes by Steve Dower :


--
pull_requests: +3422

___
Python tracker 

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



[issue31386] Make return types of wrap_bio and wrap_socket customizable

2017-09-07 Thread Christian Heimes

Changes by Christian Heimes :


--
superseder:  -> Cannot create ssl.SSLSocket without existing socket

___
Python tracker 

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



  1   2   >