[issue25988] collections.abc.Indexable

2018-01-28 Thread Raymond Hettinger

Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue32705] Current Android does not have posix_spawn

2018-01-28 Thread Chih-Hsuan Yen

Change by Chih-Hsuan Yen :


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

___
Python tracker 

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



[issue32705] Current Android does not have posix_spawn

2018-01-28 Thread Chih-Hsuan Yen

New submission from Chih-Hsuan Yen :

Currently Android does not have posix_spawn, thus posixmodule.c does not build. 
Build log attached. I'll create a patch for this.

Testing environment: my building scripts [1] + Android NDK r16b
Building target: ARM64, android-21

/cc Primary reviewer of issue 20104 and Android enthusiasts in CPython

PS. Looks like posix_spawn will be available in Android P (API 28) [2]. For now 
I propose to disable it in CPython.

[1] https://github.com/yan12125/python3-android/
[2] https://android-review.googlesource.com/c/platform/bionic/+/504842

--
components: Cross-Build
files: build.log
messages: 311078
nosy: Alex.Willmer, gregory.p.smith, vstinner, yan12125
priority: normal
severity: normal
status: open
title: Current Android does not have posix_spawn
type: compile error
versions: Python 3.7
Added file: https://bugs.python.org/file47416/build.log

___
Python tracker 

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



[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-01-28 Thread Nathaniel Smith

Nathaniel Smith  added the comment:


New changeset 95e214713a7da4e5cbfb73f35b2119f76074fc3f by Nathaniel J. Smith in 
branch 'master':
bpo-32591: silence deprecation warnings in test_coroutine (GH-5412)
https://github.com/python/cpython/commit/95e214713a7da4e5cbfb73f35b2119f76074fc3f


--

___
Python tracker 

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



[issue29571] test_re is failing when local is set for `en_IN`

2018-01-28 Thread Nick Coghlan

Nick Coghlan  added the comment:

I've also added Matthias and Barry to the cc list, in case this does turn out 
to be a Debian or Ubuntu specific quirk.

Restating the problem, the issue is that test_locale_flag in test_re may fail 
for at least the en_IN locale, and we're not sure yet whether that's a test 
bug, a locale module bug, or a distro bug:

LANG=en_IN ./python -m test -v test_re

We've only confirmed it on Ubuntu so far though - I haven't been able to 
reproduce it on Fedora, and Jaysinh hasn't been able to reproduce it since 
switching to Gentoo.

--
nosy: +barry, doko

___
Python tracker 

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-28 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

There are a couple of merge conflicts in the patch.  Once deconflicted, I think 
this PR is ready to apply.

--
assignee:  -> Mark.Shannon

___
Python tracker 

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



[issue29571] test_re is failing when local is set for `en_IN`

2018-01-28 Thread Jaysinh shukla

Jaysinh shukla  added the comment:

Hello Nick,

At the devsprints of Pycon India 2017, a few participants were facing this 
bug. They all were from the Ubuntu land. I have switched to Gentoo distro. I am 
not facing this bug, but let me confirm from any Ubuntu user. Thanks

--

___
Python tracker 

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



[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-01-28 Thread Nathaniel Smith

Change by Nathaniel Smith :


--
pull_requests: +5246
stage: resolved -> patch review

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Andrew Svetlov

Andrew Svetlov  added the comment:


New changeset 3cfb84c65790f5f9377574f9be0799bdd9d0132c by Andrew Svetlov in 
branch '3.6':
[3.6] bpo-32650 Add support for async generators and more test for coroutines 
in pdb  (GH-5403). (#5411)
https://github.com/python/cpython/commit/3cfb84c65790f5f9377574f9be0799bdd9d0132c


--

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

I knew about that "if", but it never fully registered to me why it's there and 
what it is protecting us from ;) So I had to debug half of ceval loop before I 
stumbled upon it again ;)

--

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Nick Coghlan

Nick Coghlan  added the comment:

Ah, and in my REPL example, the NameError was pending when the internal result 
storage was getting set back to None.

I'm not sure I even knew the "Don't complain when an exception is pending" 
check existed, so it would have taken me a long time to find that.

--

___
Python tracker 

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



[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-01-28 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

Ah, gotcha. I'll take a look. (For posterity: the RuntimeWarnings Yury 
mentioned are also real, but they're from the branch Yury is testing for 
bpo-32605 / bpo-32703, nothing to do with this issue.)

--

___
Python tracker 

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



[issue27968] test_coroutines generates some warnings

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


--
pull_requests: +5245

___
Python tracker 

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



[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

Specifically "DeprecationWarning: get_coroutine_wrapper is deprecated" needs to 
be silenced as part of this issue.

--

___
Python tracker 

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



[issue32605] Should we really hide unawaited coroutine warnings when an exception is pending?

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

So in issue 32703 we consider removing the check.  I'll try to figure out what 
to do with "coroutine ... was never awaited" warnings in test_coroutines -- 
probably just silence them.

--

___
Python tracker 

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



[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

Nathaniel,

test_coroutines raises a bunch of Runtime and Deprecation warnings after this 
PR.  Could you please make a PR to silence them?


/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:1032: RuntimeWarning: 
coroutine 'CoroutineTest.test_await_12..coro' was never awaited
  return await Awaitable()
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:37: RuntimeWarning: 
coroutine 'CoroutineTest.test_await_9..bar' was never awaited
  buffer.append(coro.send(None))
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:681: RuntimeWarning: 
coroutine 'CoroutineTest.test_func_13..g' was never awaited
  g().send('spam')
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:534: RuntimeWarning: 
coroutine 'CoroutineTest.test_func_4..foo' was never awaited
  list(foo())
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:537: RuntimeWarning: 
coroutine 'CoroutineTest.test_func_4..foo' was never awaited
  tuple(foo())
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:540: RuntimeWarning: 
coroutine 'CoroutineTest.test_func_4..foo' was never awaited
  sum(foo())
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:543: RuntimeWarning: 
coroutine 'CoroutineTest.test_func_4..foo' was never awaited
  iter(foo())
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:564: RuntimeWarning: 
coroutine 'CoroutineTest.test_func_5..foo' was never awaited
  for el in foo(): pass
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:1984: 
DeprecationWarning: get_coroutine_wrapper is deprecated
  self.assertIs(sys.get_coroutine_wrapper(), wrap)
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:1991: 
DeprecationWarning: set_coroutine_wrapper is deprecated
  sys.set_coroutine_wrapper(None)
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:1993: 
DeprecationWarning: get_coroutine_wrapper is deprecated
  self.assertIsNone(sys.get_coroutine_wrapper())
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:2001: 
DeprecationWarning: get_coroutine_wrapper is deprecated
  self.assertIsNone(sys.get_coroutine_wrapper())
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:2003: 
DeprecationWarning: set_coroutine_wrapper is deprecated
  sys.set_coroutine_wrapper(1)
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:2004: 
DeprecationWarning: get_coroutine_wrapper is deprecated
  self.assertIsNone(sys.get_coroutine_wrapper())
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:2015: 
DeprecationWarning: set_coroutine_wrapper is deprecated
  sys.set_coroutine_wrapper(wrapper)
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:2024: 
DeprecationWarning: set_coroutine_wrapper is deprecated
  sys.set_coroutine_wrapper(None)
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:2037: 
DeprecationWarning: set_coroutine_wrapper is deprecated
  sys.set_coroutine_wrapper(wrap)
/Users/yury/dev/pydev/cpython/Lib/test/test_coroutines.py:2045: 
DeprecationWarning: set_coroutine_wrapper is deprecated
  sys.set_coroutine_wrapper(None)

--
status: closed -> open

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

Well, I feel silly then: bpo-32605

--

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

So the problem was that _PyGen_Finalize wasn't issuing any warnings if there's 
any error set in the current tstate.  And in Nathaniel's case, the current 
error was an AttributeError('__aexit__').

This check is weird, because right before raising the warning, we call 
PyErr_Fetch to temporarily reset the current exception if any, specifically to 
raise the warning :)

The PR just removes the check.  Unless I'm missing something this should fix 
the issue.

--

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Andrew Svetlov

Change by Andrew Svetlov :


--
pull_requests: +5244

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


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

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

Ah, we should never really get to WITH_CLEANUP_START; the exception should be 
raised in BEFORE_ASYNC_WITH

--

___
Python tracker 

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




[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Andrew Svetlov

Andrew Svetlov  added the comment:


New changeset 543ec005a4c83fcc0d14ac1e4c0f1a36bf84640b by Andrew Svetlov (Miss 
Islington (bot)) in branch '3.6':
bpo-32650: Add native coroutine support to bdb when stepping over line 
(GH-5400) (#5402)
https://github.com/python/cpython/commit/543ec005a4c83fcc0d14ac1e4c0f1a36bf84640b


--

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

So refactoring it into "c = open_file(); async with c" just prolongs the life 
of the coroutine so that it's GCed outside of 
WITH_CLEANUP_START/WITH_CLEANUP_FINISH block.  Something weird is going on in 
that block.

--

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

The difference between these two functions is two extra opcodes: 
STORE_FAST/LOAD_FAST before BEFORE_ASYNC_WITH.  With them we have a warning.

--

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

Changing

  async def main():
async with open_file():
  pass

to

  async def main():
c = open_file()
async with c:
  pass

also makes it print the warning :)

Also I've made a test out of this snippet and running tests in refleak mode 
shows that there's indeed no refleak here.

--

___
Python tracker 

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



[issue32704] Tracking

2018-01-28 Thread Allen

New submission from Allen :

Could someone help me use python to track the tArget phones location and i
would like to intercepts all text and emaIl.

..

--
messages: 311059
nosy: BIGAL
priority: normal
severity: normal
status: open
title: Tracking

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Nick Coghlan

Nick Coghlan  added the comment:

Looking at the ceval code, I think Yury's theory is plausible, and we may also 
be leaving the interpreter's internal stack in a dubious state. Things then get 
cleaned up if you wrap the async with in a try/except or try/finally:

==
>>> async def try_main():
... try:
... async with open_file():
... pass
... finally:
... pass
... 
>>> try_main().send(None)
sys:1: RuntimeWarning: coroutine 'open_file' was never awaited
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 3, in try_main
AttributeError: __aexit__
==

Unfortunately for that theory, adding braces and "Py_DECREF(POP());" to the 
relevant error handling branch *doesn't* fix the problem.

I also found another way to provoke similar misbehaviour without async with:

==
>>> async def open_file():
... pass
... 
>>> open_file()

>>> _

>>> 1
__main__:1: RuntimeWarning: coroutine 'open_file' was never awaited
1
>>> open_file()

>>> del _
Traceback (most recent call last):
  File "", line 1, in 
NameError: name '_' is not defined
>>> _

>>> 1
1
>>> _
1
>>> 
==

--

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

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 1e5b25b8c0c45ccfd58da2cb82fdf231c6823fef by Yury Selivanov in 
branch 'master':
bpo-23749: Make start-tls tests more stable on win7 buildbot (GH-5409)
https://github.com/python/cpython/commit/1e5b25b8c0c45ccfd58da2cb82fdf231c6823fef


--

___
Python tracker 

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



[issue17048] calendar should understand full- vs. half-width characters

2018-01-28 Thread Chason Chaffin

Change by Chason Chaffin :


--
nosy: +chason.chaffin

___
Python tracker 

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



[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-28 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

> So let's retarget this to 3.8 as it's too close to 3.7 feature freeze to get 
> seriously considered/merged.

I *think* I have a better idea than this for 3.8, but it's definitely 
PEP-sized. The unawaited coroutine tracking proposal here was more conceived as 
a small, unobtrusive thing that could be added to 3.7 and marked provisional, 
to hold us over until 3.8. (Just this week I've spent time helping two people 
who were having trouble with forgetting 'await's, and this feature would have 
given them better errors -- though one was also affected by bpo-32703.)  OTOH 
the issue is complicated enough that it's entirely possibly my "better idea" 
has missed some showstopper detail, in which case maybe this is the best 
solution after all. We'll have plenty to talk about at PyCon this year :-).

Also, looking at the issue log here there's a ton of missing context from all 
the discussions that happened elsewhere this year and eventually led to this 
particular proposal; I'll try to make a list of links and post it here for 
future reference and archaeologists.

--

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

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


--
pull_requests: +5242
stage: resolved -> patch review

___
Python tracker 

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



[issue32251] Add asyncio.BufferedProtocol

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 07627e9a6a5f418354ff3dc99a0f36bc5b79dcd8 by Yury Selivanov in 
branch 'master':
bpo-32251: Fix docs (#5408)
https://github.com/python/cpython/commit/07627e9a6a5f418354ff3dc99a0f36bc5b79dcd8


--

___
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

2018-01-28 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

test_winreg now works, taking about 5 seconds.  It has been working recently 
but I dont' know when or why the problem disappeared.

--
resolution:  -> out of date
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



[issue32251] Add asyncio.BufferedProtocol

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


--
pull_requests: +5241

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


--
components: +Interpreter Core -asyncio
nosy: +ncoghlan

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

> Yury's theory: maybe BEFORE_ASYNC_WITH's error-handling path is forgetting to 
> DECREF the object.

Nope, that doesn't seem to be it. This version prints "refcount: 2" twice, 
*and* prints a proper "was never awaited" warning:

-

import sys

async def open_file():
pass

async def main():
open_file_coro = open_file()
print("refcount:", sys.getrefcount(open_file_coro))

try:
async with open_file_coro:
pass
except:
pass

print("refcount:", sys.getrefcount(open_file_coro))

coro = main()
try:
coro.send(None)
except:
pass

--

___
Python tracker 

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



[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-28 Thread Nathaniel Smith

New submission from Nathaniel Smith :

Example (minimal version of https://github.com/python-trio/trio/issues/425):

-

async def open_file():
pass

async def main():
async with open_file():  # Should be 'async with await open_file()'
pass

coro = main()
coro.send(None)

-

Here we accidentally left out an 'await' on the call to 'open_file', so the 
'async with' tries to look up 'CoroutineType.__aexit__', which obviously 
doesn't exist, and the program crashes with an AttributeError("__aexit__"). Yet 
weirdly, this doesn't trigger a warning about 'open_file' being unawaited. It 
should!

Yury's theory: maybe BEFORE_ASYNC_WITH's error-handling path is forgetting to 
DECREF the object.

--
components: asyncio
messages: 311052
nosy: asvetlov, giampaolo.rodola, njs, yselivanov
priority: normal
severity: normal
status: open
title: 'async with' somehow suppresses unawaited coroutine warnings
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue20104] expose posix_spawn(p)

2018-01-28 Thread Martin Panter

Martin Panter  added the comment:

Pablo’s code looked unfinished to me. As well as missing documentation, I 
suspect there may be memory leaks and poor error handling.

The two calls above the “fail:” label look like dead code. The “parse_envlist” 
result appears to be leaked.

I’m curious why you never call “posix_spawn_file_actions_destroy”. I saw on 
Open BSD  it reclaims 
memory, and it seems sensible to call it on other platforms as well.

No error checking on any of the “posix_spawn_file_actions_” methods.

If “posix_spawn” fails, the “pid” variable will be returned uninitialized.

--
nosy: +martin.panter, pablogsal

___
Python tracker 

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



[issue32688] weird comment out line of code

2018-01-28 Thread Brett Cannon

Brett Cannon  added the comment:

Thanks!

On Sun, Jan 28, 2018, 19:32 Xiang Zhang,  wrote:

>
> Xiang Zhang  added the comment:
>
> Done.
>
> --
> versions:  -Python 3.6
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue32702] Minor markup typo

2018-01-28 Thread KINEBUCHI Tomohiko

Change by KINEBUCHI Tomohiko :


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

___
Python tracker 

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



[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread ppperry

ppperry  added the comment:

... and I'm still trying to come up with even more pathological mutating cases

--

___
Python tracker 

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



[issue32702] Minor markup typo

2018-01-28 Thread KINEBUCHI Tomohiko

New submission from KINEBUCHI Tomohiko :

In the staticmethod document [1], code snippet should be a literal block, but 
actually be a block quote.
See the attached image file.

[1] https://docs.python.org/3.6/library/functions.html#staticmethod

--
assignee: docs@python
components: Documentation
files: Screen Shot 2018-01-29 at 12.37.37.png
messages: 311048
nosy: cocoatomo, docs@python
priority: normal
severity: normal
status: open
title: Minor markup typo
versions: Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47415/Screen Shot 2018-01-29 at 
12.37.37.png

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 9ee1bf9ab5af8233ed8ec5c53d12a29dc1bd9c9d by Yury Selivanov in 
branch 'master':
bpo-32650: Add an asyncgen pdb test (#5406)
https://github.com/python/cpython/commit/9ee1bf9ab5af8233ed8ec5c53d12a29dc1bd9c9d


--

___
Python tracker 

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



[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread Tim Peters

Tim Peters  added the comment:

Thank you for giving this worthy orphan a home, Raymond!

Victor, don't fret too much.  The code is really quite simple, and at worst 
affects only `sorted()` and `list.sort()`.  The vast bulk of review effort (of 
which it got enough) went into dreaming up pathological cases (like mutating 
list elements, and even list element comparison methods, _while_ a sort was in 
progress).

I confess I didn't press for more benchmarks, because I don't care about more 
here:  the code is so obviously a major speed win when it applies, it so 
obviously applies often, and the new worst-case overhead when it doesn't apply 
is so obviously minor compared to the cost of a sort (`len(list)-1` wasted 
C-level pointer equality compares).  The only real value of timing benchmarks 
to me here was as a gross sanity check, and enough of those were run to confirm 
that all the preceding were qualitatively on target.  It really doesn't matter 
at all, e.g., whether the best cases are 2 times faster or 10 times faster, or 
the truly pathologal worst cases 10% slower or 20% slower.  Regardless, it's as 
close to a pure win as just about anything can be.

Nevertheless ... if this brings a major player's server to its knees, blame 
Raymond ;-)

--

___
Python tracker 

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



[issue32688] weird comment out line of code

2018-01-28 Thread Xiang Zhang

Xiang Zhang  added the comment:

Done.

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



[issue32688] weird comment out line of code

2018-01-28 Thread Xiang Zhang

Xiang Zhang  added the comment:


New changeset 997478eb797b31bd724135ca17781d1cf4b89cfa by Xiang Zhang in branch 
'master':
bpo-32688: Make why the line is commented out clear (GH-5405)
https://github.com/python/cpython/commit/997478eb797b31bd724135ca17781d1cf4b89cfa


--

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


--
pull_requests: +5239

___
Python tracker 

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



[issue32699] pythonXY._pth : unclear how .pth files are handled

2018-01-28 Thread Steve Dower

Steve Dower  added the comment:

Hopefully that's enough of a clarification.

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement
versions: +Python 3.7, Python 3.8

___
Python tracker 

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



[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread Raymond Hettinger

Raymond Hettinger  added the comment:


New changeset 1e34da49ef22004ca25c517b3f07c6d25f083ece by Raymond Hettinger 
(embg) in branch 'master':
bpo-28685: Optimize sorted() list.sort() with type-specialized comparisons 
(#582)
https://github.com/python/cpython/commit/1e34da49ef22004ca25c517b3f07c6d25f083ece


--

___
Python tracker 

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



[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread Raymond Hettinger

Change 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



[issue32688] weird comment out line of code

2018-01-28 Thread Xiang Zhang

Change by Xiang Zhang :


--
pull_requests: +5238

___
Python tracker 

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



[issue20104] expose posix_spawn(p)

2018-01-28 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

remaining work before closing this:
  Doc/library/os.rst needs to describe os.posix_spawn

--
priority: low -> normal

___
Python tracker 

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



[issue20104] expose posix_spawn(p)

2018-01-28 Thread Gregory P. Smith

Gregory P. Smith  added the comment:


New changeset 6c6ddf97c402709713d668d0ed53836a7749ba99 by Gregory P. Smith 
(Pablo Galindo) in branch 'master':
bpo-20104: Expose `posix_spawn` in the os module (GH-5109)
https://github.com/python/cpython/commit/6c6ddf97c402709713d668d0ed53836a7749ba99


--

___
Python tracker 

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



[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread Raymond Hettinger

Change by Raymond Hettinger :


--
assignee:  -> rhettinger

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset c7ab581db216aeeb1c2aa7af2f2198d2b7516383 by Yury Selivanov (Pablo 
Galindo) in branch 'master':
bpo-32650 Add support for async generators and more test for coroutines in pdb  
(#5403)
https://github.com/python/cpython/commit/c7ab581db216aeeb1c2aa7af2f2198d2b7516383


--

___
Python tracker 

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



[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-28 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:

https://github.com/python/typing/issues/512 and 
https://github.com/python/typing/issues/511 are first issue (they are closely 
related to each other). This is not directly related to PEP 560, but changes in 
typing because of it will allow to fix them in a simple manner.

The second one is Union simplification (was discussed in few PRs on typing 
tracker). This is not really a bug, but something we should decide on before 
3.7 final. It will be difficult to change it later. Again, with PEP 560 in 
place the corresponding refactoring for removal should be straightforward.

In addition, there is https://github.com/python/typing/issues/392, this is 
already almost fixed by the typing PR implementing PEP 560, but it doesn't work 
for dunder attributes (I think we should not relay only specific set of 
reserved names, rather than all dunders).

--

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Pablo Galindo Salgado

Change by Pablo Galindo Salgado :


--
pull_requests: +5237

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5236

___
Python tracker 

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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Andrew Svetlov

Andrew Svetlov  added the comment:


New changeset 46877024423e98d1b872bf308dacacd583327207 by Andrew Svetlov (Pablo 
Galindo) in branch 'master':
bpo-32650: Add native coroutine support to bdb when stepping over line (GH-5400)
https://github.com/python/cpython/commit/46877024423e98d1b872bf308dacacd583327207


--

___
Python tracker 

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



[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-28 Thread Guido van Rossum

Guido van Rossum  added the comment:

Are there more specific descriptions of those bugs? Links to a tracker?
(Even if it's the typing tracker.)

--

___
Python tracker 

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



[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-28 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:

I think all the critical things have been implemented/fixed. There are 
unfortunately no docs yet (my fault), also there are two bugs related to PEP 
560, but they are not new, they also exist in Python 3.6.

I am however marking this as high priority, since these two bugs prevent 
progress on other projects (pickling generic classes), so it would be good to 
fix them before beta-2.

--
priority: release blocker -> high

___
Python tracker 

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



[issue32701] Typo in quopri documentation

2018-01-28 Thread Julien Palard

Change by Julien Palard :


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

___
Python tracker 

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



[issue32701] Typo in quopri documentation

2018-01-28 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:

Thanks! I like your proposed change.

Please create the PR.

--
nosy: +Mariatta

___
Python tracker 

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



[issue32700] spam?

2018-01-28 Thread R. David Murray

Change by R. David Murray :


--
stage:  -> resolved
status: open -> closed
title: The replys additional (Re.) is ok. -> spam?

___
Python tracker 

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



[issue32701] Typo in quopri documentation

2018-01-28 Thread Julien Palard

New submission from Julien Palard :

Spotted a typo in https://docs.python.org/3/library/quopri.html: "must be 
provideda"

But I also can't extract the meaning of the sentence:

> quotetabs, a flag which controls whether to encode embedded spaces and tabs 
> must be provideda and when true it encodes such embedded whitespace, and when 
> false it leaves them unencoded.

So here's the diff from 99597c4d12e358174275945d97e504c0318a3783:

+ *quotetabs*, a flag which controls whether to encode embedded spaces and tabs 
must be provideda and when true it encodes such embedded whitespace, and when 
false it leaves them unencoded.
- *quotetabs* is a flag which controls whether to encode embedded spaces and 
tabs; when true it encodes such embedded whitespace, and when false it leaves 
them unencoded.

So the "must be provided" has been added, I propose:

*quotetabs*, a non-optional flag which controls whether to encode embedded 
spaces and tabs; when true it encodes such embedded whitespace, and when false 
it leaves them unencoded.

--
assignee: docs@python
components: Documentation
messages: 311033
nosy: docs@python, mdk, orsenthil
priority: low
severity: normal
status: open
title: Typo in quopri documentation
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue32699] pythonXY._pth : unclear how .pth files are handled

2018-01-28 Thread Steve Dower

Steve Dower  added the comment:


New changeset 15ea3a6a320623328530e5d8da5b83c75766180b by Steve Dower in branch 
'master':
bpo-32699: Improves doc for .pth files in presense of a ._pth file (#5399)
https://github.com/python/cpython/commit/15ea3a6a320623328530e5d8da5b83c75766180b


--

___
Python tracker 

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



[issue21060] Better error message for setup.py upload command without sdist/bdist

2018-01-28 Thread Éric Araujo

Éric Araujo  added the comment:

For improving the message, I am hesitating between adding to the existing 
message (hoping to help search engines find their way to improved docs):

«No dist file created in earlier command (e.g. setup.py sdist upload)» 

and rewriting it entirely:

«Must create and upload dist files in one command (e.g. setup.py sdist upload)»

--
assignee:  -> eric.araujo
stage: needs patch -> patch review
title: Better error message for setup.py upload command without sdist -> Better 
error message for setup.py upload command without sdist/bdist
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue12944] Accept arbitrary files for distutils' upload command

2018-01-28 Thread Éric Araujo

Éric Araujo  added the comment:

A doc ticket already exists, moving this one back to a feature request and 
closing it.

--
resolution:  -> wont fix
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Better error message for setup.py upload command without sdist
title: Better error message for "setup.py upload" missing sdist/bdist -> Accept 
arbitrary files for distutils' upload command
type: behavior -> enhancement

___
Python tracker 

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



[issue12944] Better error message for "setup.py upload" missing sdist/bdist

2018-01-28 Thread Éric Araujo

Éric Araujo  added the comment:

I had a patch for this, but now think it would be an attractive nuisance, given 
that distutils does not always ensure proper HTTPS verification.

Not adding the ability to build sdists/wheels, check them and then upload them 
will help push people to twine, which doesn’t have all the .pypirc parsing bugs 
and is a good HTTPS citizen.

I will however commit a patch to clarify the message «no dist file created in 
earlier command».

--
nosy: +dstufft
title: Accept arbitrary files for distutils' upload command -> Better error 
message for "setup.py upload" missing sdist/bdist
type: enhancement -> behavior
versions: +Python 2.7, Python 3.6, Python 3.7 -Python 3.5

___
Python tracker 

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



[issue32304] Upload failed (400): Digests do not match on .tar.gz ending with x0d binary code

2018-01-28 Thread Éric Araujo

Change by Éric Araujo :


--
assignee:  -> eric.araujo
resolution:  -> fixed
stage: patch review -> backport needed

___
Python tracker 

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



[issue32373] Add socket.getblocking() method

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


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



[issue32650] Debug support for native coroutines is broken

2018-01-28 Thread Pablo Galindo Salgado

Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-28 Thread STINNER Victor

Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue26219] implement per-opcode cache in ceval

2018-01-28 Thread STINNER Victor

STINNER Victor  added the comment:

> Would it be OK if we add this to 3.7beta2?

IMHO we need more time than beta1=>beta2 window to review properly the design, 
test the implementation, fix any potential regression, etc.

Such change is perfect for the *start of a development cycle, but IMHO it's bad 
when are close to the *end*.

beta1=>final is supposed to only be made of bugfixes, not introducing new 
bugs... (I bet that adding any feature fatally introduces new bugs)

--

___
Python tracker 

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



[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

What's the status of this?  The issue is still open with "release blocker" 
status.

--

___
Python tracker 

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



[issue32654] Fixes Python for Android API 19

2018-01-28 Thread STINNER Victor

STINNER Victor  added the comment:

"""
>>> locale.setlocale(locale.LC_ALL, None)
...
locale.Error: locale query failed
"""

IMHO the correct fix here is to not define _locale.setlocale() to get the pure 
Python locale.setlocale() emulation.

--

___
Python tracker 

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



[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

If we're going to leave this open until 3.7.0b2, can you at least add a brief 
warning in the "Porting section" for b1 that the issue is unresolved?

--

___
Python tracker 

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



[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread STINNER Victor

STINNER Victor  added the comment:

I suggest to post-pone this optimization to Python 3.8. Faster list.sort() is 
nice to have, but I'm not sure that it's a killer feature that will make 
everybody move to Python 3.7. It can wait for 3.8.

No core dev took the lead on this non-trivial issue, and IMHO it's getting too 
late for 3.7.

It see that Serhiy started to review the change and asked for more benchmarks. 
Serhiy would be a good candidate to drive such work, but sadly he seems to be 
busy these days...

While such optimization is nice to have, we should be careful to not introduce 
a performance regressions on some cases. I read quickly the issue, and I'm not 
sure that it was fully carefully reviewed and tested yet. Sorry, I only read it 
quickly, ignore me if I'm wrong.

Well, if someone wants to take the responsability of pushing this right now, 
it's up to you :-)

--

___
Python tracker 

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



[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

We should make a decision on this for both 3.6.5 and for 3.7.0. Victor, 
Antoine, Brett, Serhiy, any opinions?

--

___
Python tracker 

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



[issue31151] socketserver.ForkingMixIn.server_close() leaks zombie processes

2018-01-28 Thread STINNER Victor

STINNER Victor  added the comment:

> What's the status of this?  Feature freeze is here!

This issue is very to https://bugs.python.org/issue31233#msg311021 as it's 
status:
* The commit aa8ec34ad52bb3b274ce91169e1bc4a598655049 is backward incompatible 
and it's not documented
* There is no option to opt-in for the previous behaviour (exit without waiting 
for child processes)

For beta1, IMHO it's ok to keep the current status. But I would like to see 
this issue fixed before 3.7 final. Either revert my change, or do something 
else.

--

___
Python tracker 

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



[issue32699] pythonXY._pth : unclear how .pth files are handled

2018-01-28 Thread Steve Dower

Change by Steve Dower :


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

___
Python tracker 

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



[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2018-01-28 Thread STINNER Victor

STINNER Victor  added the comment:

> What's the status of this?

The status is bad. The commit b8f4163da30e16c7cd58fe04f4b17e38d53cd57e is 
backward incompatible, it's not documented in the "Porting the Python 3.7" 
section of What's New in Python 3.7, and it's not possible to opt-in for the 
previous behaviour.


> Feature freeze is here.

IMHO it's ok to post-pone this issue to beta2.

IMHO it's better to wait until all threads complete on server_close(), and it's 
possible to workaround the issue using daemon_threads = True which can be seen 
as the option to opt-in for the previous behaviour.

--

___
Python tracker 

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



[issue31368] Add os.preadv() and os.pwritev()

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

If I understand the discussion on the PR properly, Victor would like to revisit 
the documentation for this PR but is OK with the code as merged. I'm therefore 
downgrading this to "deferred blocker".  Please try to get the issue closed one 
way or another prior to 3.7.0b2, thanks!

--
priority: release blocker -> deferred blocker
versions: +Python 3.8

___
Python tracker 

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



[issue32698] Improper gzip compression if output file extension is not "gz"

2018-01-28 Thread Martin Panter

Martin Panter  added the comment:

According to the documentation, you can use the lower-level GzipFile 
constructor’s “filename” argument:

>>> with open(output_path, 'wb') as f_out, \
... gzip.GzipFile(fileobj=f_out, mode='wb', filename=input_path) as f_out, \
... open(input_path, 'rb') as f_in:
... shutil.copyfileobj(f_in, f_out)
... 
>>> import os
>>> os.system("7z l test.txt.gzip")
[. . .]
   Date  TimeAttr Size   Compressed  Name
--- -    
2018-01-28 22:23:16 .   30   34  test.txt
--- -    

--
nosy: +martin.panter

___
Python tracker 

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



[issue32373] Add socket.getblocking() method

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset f11b460d8717fc3a5810684713b8b818f68789e8 by Yury Selivanov in 
branch 'master':
bpo-32373: Add socket.getblocking() method. (#4926)
https://github.com/python/cpython/commit/f11b460d8717fc3a5810684713b8b818f68789e8


--

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Guido van Rossum

Guido van Rossum  added the comment:

I think consistency between the 3.6.x releases ought to win here.

--

___
Python tracker 

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



[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

What's the status of this?  Feature freeze is here.

--

___
Python tracker 

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



[issue31151] socketserver.ForkingMixIn.server_close() leaks zombie processes

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

What's the status of this?  Feature freeze is here!

--

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

> If you guys think the old code is better in some way, feel free to revert the 
> backport :-)

Hey, it's Guido's code, it must be good :)

My only concern is that this seems to be more of an issue of unspecified 
behavior rather than a bug and, as such, our general policy is that the status 
quo wins as far as changing behavior in a maintenance release.  I don't have a 
really strong feeling one way or another myself; I'm just trying to play 
devil's advocate on behalf of the user community.  Let's see if anyone else can 
make a case one way or another.

--

___
Python tracker 

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



[issue17305] IDNA2008 encoding missing

2018-01-28 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

The "obvious" solution would be to move the "idna" module into the stdlib, but 
someone would still have to work that out, and it's clearly not happening for 
3.7.

--
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue32699] pythonXY._pth : unclear how .pth files are handled

2018-01-28 Thread Thomas Kluyver

Thomas Kluyver  added the comment:

I'd reword the second sentence like this:

> Note that .pth files (without leading underscore) will be processed only if 
> this file specifies ``import site``.

The current wording sounds (to me) like a guarantee that .pth files will still 
be handled, despite the other things that this mechanism switches off.

--

___
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

2018-01-28 Thread Ned Deily

Ned Deily  added the comment:

What's the status of this issue?  It was previous marked as a "release blocker" 
and I subsequently downgraded it to a "deferred blocker" so as not to hold up 
releases.  Since a few maintenance releases have gone by without any action, I 
am removing the "deferred Blocker" status now.  Any one have any ideas?

--
nosy: +eryksun
priority: deferred blocker -> 

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

If you guys think the old code is better in some way, feel free to revert the 
backport :-)

I'm -0 on undoing the backpport.  ISTM that of all of changes to 3.6, this is 
one of the safest and it has minor benefits of removing a small irritant and 
keeping the code in-sync.  IIRC, 3.6 dict order is only assured for CPython but 
not for the language spec as a whole, so this is arguably a CPython buglet or 
least a surprising and unexpected behavior.  

While my instincts say forward-is-better-than-scrambled, I don't care much 
either way.  The only way it affects me is that as an educator, the reversed 
order is a unnecessary distraction from live demos that show the locals dict.

--

___
Python tracker 

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



[issue17305] IDNA2008 encoding missing

2018-01-28 Thread Christian Heimes

Christian Heimes  added the comment:

I lack the expertise and time to implement IDNA 2008 with UTS46 codec. I 
considered GNU libidn2, but the library requires two more helper libraries and 
LGPLv3 might be an issue for us.

--

___
Python tracker 

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



[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-01-28 Thread Christian Heimes

Christian Heimes  added the comment:

The feature is still useful -- whether or not Debian disables TLS 1.0 and 1.1. 
The new API is easier to use and more convenient than the old bitmask approach. 
"option &=~OP_NO_SSLv3" is just horrible. :)

--

___
Python tracker 

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



[issue32695] tarfile.open() raises TypeError when using compresslevel parameter with LZMA

2018-01-28 Thread bbayles

Change by bbayles :


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

___
Python tracker 

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



[issue17305] IDNA2008 encoding missing

2018-01-28 Thread R. David Murray

R. David Murray  added the comment:

What we need for this issue is someone volunteering to writing the code.  Given 
how long it has already been, I don't think anyone already on the core team is 
going to pick it up.

--

___
Python tracker 

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



[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-01-28 Thread Yury Selivanov

Yury Selivanov  added the comment:

Mark, I think this still land in beta-2.  Please try to figure out what's going 
on on Mac OS (I have no time to take care of this myself).

--

___
Python tracker 

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



[issue32251] Add asyncio.BufferedProtocol

2018-01-28 Thread Yury Selivanov

Change by Yury Selivanov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



  1   2   3   >