[issue31244] Shortcuts bug in Python IDLE

2017-08-21 Thread Constantine Ketskalo

Constantine Ketskalo added the comment:

You must be kidding me? I know that it's possible to use it via menu. And my 
speed of software development will be 3 times slower. Great!
If this was a bug in Windows then why the heck it works perfectly in any other 
program including Python when I switch language to English?

--
status: closed -> open

___
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-08-21 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Yes, we can add a dictionary example.  I will likely split it into two lines 
for clarity.  Perhaps something like:

>>> soldier = dict(rank='captain', name='dotterbart')
>>> itemgetter('rank')(soldier)
'captain'

--
assignee: docs@python -> rhettinger
nosy: +rhettinger
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

I also added pythoninfo to Python 2.7. I made minor adjustements for Python 
2.7, like accept (int, long) for integers, remove info only available on Python 
3, and add sys.maxint.

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



[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset cce1cb9180dd9143c5b2ce094a52c555b42c7aa8 by Victor Stinner in 
branch '2.7':
bpo-30871: Add test.pythoninfo (#3174) (#3175)
https://github.com/python/cpython/commit/cce1cb9180dd9143c5b2ce094a52c555b42c7aa8


--

___
Python tracker 

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



[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset cce1cb9180dd9143c5b2ce094a52c555b42c7aa8 by Victor Stinner in 
branch '2.7':
bpo-30871: Add test.pythoninfo (#3174) (#3175)
https://github.com/python/cpython/commit/cce1cb9180dd9143c5b2ce094a52c555b42c7aa8


--

___
Python tracker 

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



[issue30983] eval frame rename in pep 0523 broke gdb's python extension

2017-08-21 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 5fe59f8e3a0a56a155c18f9d581205ec533764b6 by Łukasz Langa in 
branch 'master':
bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (#3153)
https://github.com/python/cpython/commit/5fe59f8e3a0a56a155c18f9d581205ec533764b6


--

___
Python tracker 

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



[issue23835] configparser does not convert defaults to strings

2017-08-21 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset ea57923e89aa4a1bde1d4fa1de7d6eacff603683 by Łukasz Langa in 
branch 'master':
bpo-23835: [docs] configparser converts defaults to strings (#3176)
https://github.com/python/cpython/commit/ea57923e89aa4a1bde1d4fa1de7d6eacff603683


--

___
Python tracker 

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



[issue23835] configparser does not convert defaults to strings

2017-08-21 Thread Łukasz Langa

Changes by Łukasz Langa :


--
pull_requests: +3214

___
Python tracker 

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



[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3213

___
Python tracker 

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



[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3212

___
Python tracker 

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



[issue23835] configparser does not convert defaults to strings

2017-08-21 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 44e6ad87340d50f48daf53b6a61138377d0d0d10 by Łukasz Langa (James 
Tocknell) in branch 'master':
bpo-23835: Enforce that configparser defaults are strings (#2558)
https://github.com/python/cpython/commit/44e6ad87340d50f48daf53b6a61138377d0d0d10


--

___
Python tracker 

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



[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

Ok, pythoninfo is now enabled on Python 3.6 as well.

--

___
Python tracker 

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



[issue30121] Windows: subprocess debug assertion on failure to execute the process

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

Python 2.7 doesn't seem to be affected by this issue. Extract of Popen.__init__:

try:
self._execute_child(args, executable, preexec_fn, close_fds,
cwd, env, universal_newlines,
startupinfo, creationflags, shell, to_close,
p2cread, p2cwrite,
c2pread, c2pwrite,
errread, errwrite)
except Exception:
# Preserve original exception in case os.close raises.
exc_type, exc_value, exc_trace = sys.exc_info()

for fd in to_close:
try:
if mswindows:
fd.Close()
else:
os.close(fd)
except EnvironmentError:
pass

On Windows, fd.Close() is always used.

--

___
Python tracker 

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



[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 29d007bb670b486788f73c2d742b0ad0b679ff13 by Victor Stinner in 
branch '3.6':
[3.6] bpo-30871: Add test.pythoninfo (#3174)
https://github.com/python/cpython/commit/29d007bb670b486788f73c2d742b0ad0b679ff13


--

___
Python tracker 

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



[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 29d007bb670b486788f73c2d742b0ad0b679ff13 by Victor Stinner in 
branch '3.6':
[3.6] bpo-30871: Add test.pythoninfo (#3174)
https://github.com/python/cpython/commit/29d007bb670b486788f73c2d742b0ad0b679ff13


--

___
Python tracker 

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



[issue30121] Windows: subprocess debug assertion on failure to execute the process

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset e76cb435563cd14bb085942dfefbb469b8f40aa9 by Victor Stinner in 
branch '3.6':
[3.6] bpo-30121: Fix debug assert in subprocess on Windows (#1224) (#3173)
https://github.com/python/cpython/commit/e76cb435563cd14bb085942dfefbb469b8f40aa9


--

___
Python tracker 

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



[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3211

___
Python tracker 

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



[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3210

___
Python tracker 

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



[issue30121] Windows: subprocess debug assertion on failure to execute the process

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3209

___
Python tracker 

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



[issue30121] Windows: subprocess debug assertion on failure to execute the process

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 9a83f651f31b47b3f6c8b210f7807b26e8c373a5 by Victor Stinner in 
branch 'master':
Add test_subprocess.test_nonexisting_with_pipes() (#3133)
https://github.com/python/cpython/commit/9a83f651f31b47b3f6c8b210f7807b26e8c373a5


--

___
Python tracker 

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



[issue31237] test_gdb disables 25% of tests in optimized builds

2017-08-21 Thread Dave Malcolm

Dave Malcolm added the comment:

The problem is that there are so many variables:
* which version of which compiler
* optimization flags
* which version of gdb
* which CPU architecture
etc (and the compiler and/or gdb could be carrying patches from downstream 
distributors...)

All of these can affect the debugging experience; as soon as optimizations are 
turned on it's very hard to predict exactly how well we can capture the frame 
information in the debugger.

Hence it makes sense to skip these tests for optimized builds, to avoid 
creating noise in the buildbots.

Downstream distributions might want to re-enable the tests, if they have 
sufficient control over the compiler and debugger versions that are in use, I 
guess.

Or maybe there's a way to express some of the above sanely?  Not sure.

Hope this is constructive.

--

___
Python tracker 

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



[issue31238] pydoc: ServerThread.stop() leaves a dangling thread

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 4cab2cd0c05fcda5fcb128c9eb230253fff88c21 by Victor Stinner in 
branch 'master':
bpo-31238: pydoc ServerThread.stop() now joins itself (#3151)
https://github.com/python/cpython/commit/4cab2cd0c05fcda5fcb128c9eb230253fff88c21


--

___
Python tracker 

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



[issue31249] test_concurrent_futures leaks dangling threads

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 489d91c61d02f401551966f1558ee2dc87fc0ad9 by Victor Stinner in 
branch 'master':
bpo-31249: test_concurrent_futures checks dangling threads (#3167)
https://github.com/python/cpython/commit/489d91c61d02f401551966f1558ee2dc87fc0ad9


--

___
Python tracker 

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



[issue23835] configparser does not convert defaults to strings

2017-08-21 Thread Łukasz Langa

Changes by Łukasz Langa :


--
versions:  -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

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



[issue31237] test_gdb disables 25% of tests in optimized builds

2017-08-21 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't think it's a surprise that reconstructing high-level program 
information from a debugger works less well on optimized builds.  Perhaps Dave 
Malcolm has more precise information about what is supposed to to work and what 
is not.

--
nosy: +dmalcolm

___
Python tracker 

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



[issue31237] test_gdb disables 25% of tests in optimized builds

2017-08-21 Thread Łukasz Langa

Łukasz Langa added the comment:

You're being vague, can you say which optimized builds and which data? As I 
mentioned, builds that actual users use are almost always compiled without 
--with-pydebug. That includes, say, the default RedHat python RPMs or the 
Debian DEBs that ship with those operating systems.

It's not enough for us to run those tests only for --with-pydebug, as shown by 
bpo-30983, which wasn't discovered sooner because it only affects shared 
non-debug builds.

--

___
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-08-21 Thread Ashish Nitin Patil

New submission from Ashish Nitin Patil:

Current documentation lacks the example of usage with dictionary keys.

e.g. `itemgetter('sample')({'sample': True, 'How about this': 'Nope'})`

--
assignee: docs@python
components: Documentation
messages: 300648
nosy: ashishnitinpatil, docs@python
priority: normal
severity: normal
status: open
title: Operator.itemgetter documentation should include dictionary keys example
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, 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



[issue31243] checks whether PyArg_ParseTuple returned a negative int

2017-08-21 Thread Oren Milman

Changes by Oren Milman :


--
pull_requests: +3208

___
Python tracker 

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



[issue21592] Make statistics.median run in linear time

2017-08-21 Thread Samuel Naughton-Baldwin

Changes by Samuel Naughton-Baldwin :


--
pull_requests: +3207

___
Python tracker 

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



[issue31251] Diameter protocol in Python

2017-08-21 Thread R. David Murray

R. David Murray added the comment:

This isn't a help forum, it is a place for reporting bugs in Python.  The kind 
of question you are asking is best asked on the python-list mailing list (see 
mail.python.org).

--
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: resource usage -> 

___
Python tracker 

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



[issue31251] Diameter protocol in Python

2017-08-21 Thread George Lane

George Lane added the comment:

Hi, ¿can you tell me about Diameter protocol implemented by Python?, ¿where
can I found documentation and package for downloading?

Best regards

2017-08-21 14:36 GMT-03:00 Serhiy Storchaka :

>
> Serhiy Storchaka added the comment:
>
> Could you provide more information George?
>
> --
> nosy: +serhiy.storchaka
> status: open -> pending
>
> ___
> Python tracker 
> 
> ___
>

--
status: pending -> open

___
Python tracker 

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



[issue31238] pydoc: ServerThread.stop() leaves a dangling thread

2017-08-21 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +pitrou

___
Python tracker 

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



[issue31251] Diameter protocol in Python

2017-08-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you provide more information George?

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue31236] improve some error messages of min() and max()

2017-08-21 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
dependencies:  -wrong error messages when too many kwargs are received
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



[issue31236] improve some error messages of min() and max()

2017-08-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 58cf7488d5dcc8f47151d09fc1fa057b4dda563b by Serhiy Storchaka 
(Oren Milman) in branch 'master':
bpo-31236: Improved some error messages of min() and max().
https://github.com/python/cpython/commit/58cf7488d5dcc8f47151d09fc1fa057b4dda563b


--

___
Python tracker 

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



[issue31251] Diameter protocol in Python

2017-08-21 Thread George Lane

New submission from George Lane:

Diameter protocol in Python

--
components: Library (Lib)
messages: 300643
nosy: George Lane
priority: normal
severity: normal
status: open
title: Diameter protocol in Python
type: resource usage
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



[issue31065] Documentation for Popen.poll is unclear

2017-08-21 Thread Ivan Chernov

Ivan Chernov added the comment:

Try to solve this issue, because it's pretty simple (:

--
nosy: +vanadium23

___
Python tracker 

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



[issue31065] Documentation for Popen.poll is unclear

2017-08-21 Thread Ivan Chernov

Changes by Ivan Chernov :


--
pull_requests: +3205

___
Python tracker 

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



[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

Bug fixed in Python 3.6 and 3.7 (master).

Python 2.7 doesn't seem to be affected by the bug, since 
Exception.__traceback__ was only introduced in Python 3.

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



[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 12a3e343e1667f91c0095a9a7dc15048cb620e41 by Victor Stinner in 
branch '3.6':
bpo-31247: xmlrpc.server: break reference cycle (#3166) (#3168)
https://github.com/python/cpython/commit/12a3e343e1667f91c0095a9a7dc15048cb620e41


--

___
Python tracker 

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



[issue31250] test_asyncio leaks dangling threads

2017-08-21 Thread STINNER Victor

New submission from STINNER Victor:

Using PR 3138 of bpo-31234, I noticed that test_asyncio leaks dangling threads.

Tests which randomly leak threads:
---
test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests.test_create_connection_no_inet_pton
test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests.test_create_connection_service_name
test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests.test_create_connection_bluetooth
test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests.test_create_datagram_endpoint_no_addrinfo
test.test_asyncio.test_futures.DuckTests.test_wrap_future
test.test_asyncio.test_futures.CFutureTests.test_wrap_future
test.test_asyncio.test_futures.CFutureTests.test_wrap_future_use_global_loop
test.test_asyncio.test_futures.PyFutureTests.test_wrap_future
test.test_asyncio.test_futures.PyFutureTests.test_wrap_future_use_global_loop
test.test_asyncio.test_selector_events.BaseSelectorEventLoopTests.test_sock_connect_resolve_using_socket_params
test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests.test_run_coroutine_threadsafe
test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_with_timeout
test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_cancelled
test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests.test_run_coroutine_threadsafe_task_factory_exception
---

Write this list into "tests" and run "python3 -m test --matchfile=tests".


haypo@selma$ ./python -u -m test -v test_asyncio --matchfile=tests
== CPython 3.7.0a0 (heads/concurrent_futures:f277fa3, Aug 21 2017, 18:11:41) 
[GCC 6.4.1 20170727 (Red Hat 6.4.1-1)]
(...)
test_create_connection_bluetooth 
(test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests) ... ok
test_create_connection_no_inet_pton 
(test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests) ... Warning 
-- threading_cleanup() detected 4 leaked threads (count: 4, dangling: 5)
ok
test_create_connection_service_name 
(test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests) ... Warning 
-- threading_cleanup() detected 4 leaked threads (count: 4, dangling: 5)
ok
test_create_datagram_endpoint_no_addrinfo 
(test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests) ... Warning 
-- threading_cleanup() detected 1 leaked threads (count: 1, dangling: 2)
ok
test_wrap_future (test.test_asyncio.test_futures.CFutureTests) ... Warning -- 
threading_cleanup() detected 1 leaked threads (count: 1, dangling: 2)
ok
test_wrap_future_use_global_loop (test.test_asyncio.test_futures.CFutureTests) 
... Warning -- threading_cleanup() detected 1 leaked threads (count: 1, 
dangling: 2)
ok
test_wrap_future (test.test_asyncio.test_futures.DuckTests) ... ok
test_wrap_future (test.test_asyncio.test_futures.PyFutureTests) ... Warning -- 
threading_cleanup() detected 1 leaked threads (count: 1, dangling: 2)
ok
test_wrap_future_use_global_loop (test.test_asyncio.test_futures.PyFutureTests) 
... Warning -- threading_cleanup() detected 1 leaked threads (count: 1, 
dangling: 2)
ok
test_sock_connect_resolve_using_socket_params 
(test.test_asyncio.test_selector_events.BaseSelectorEventLoopTests) ... Warning 
-- threading_cleanup() detected 1 leaked threads (count: 1, dangling: 2)
ok
test_run_coroutine_threadsafe 
(test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests)
Test coroutine submission from a thread to an event loop. ... ok
test_run_coroutine_threadsafe_task_cancelled 
(test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests)
Test coroutine submission from a tread to an event loop ... ok
test_run_coroutine_threadsafe_task_factory_exception 
(test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests)
Test coroutine submission from a tread to an event loop ... Warning -- 
threading_cleanup() detected 1 leaked threads (count: 1, dangling: 2)
ok
test_run_coroutine_threadsafe_with_timeout 
(test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests)
Test coroutine submission from a thread to an event loop ... ok
(...)

--
components: Tests, asyncio
messages: 300637
nosy: haypo, yselivanov
priority: normal
severity: normal
status: open
title: test_asyncio leaks dangling threads
type: resource usage
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



[issue31234] Make support.threading_cleanup() stricter

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

test_asyncio: bpo-31250, "test_asyncio leaks dangling threads".

--

___
Python tracker 

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



[issue31234] Make support.threading_cleanup() stricter

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

test_concurrent_futures: bpo-31249, test_concurrent_futures leaks dangling 
threads.

--

___
Python tracker 

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



[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3204

___
Python tracker 

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



[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 84524454d0ba77d299741c47bd0f5841ac3f66ce by Victor Stinner in 
branch 'master':
bpo-31247: xmlrpc.server: break reference cycle (#3166)
https://github.com/python/cpython/commit/84524454d0ba77d299741c47bd0f5841ac3f66ce


--

___
Python tracker 

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



[issue31249] test_concurrent_futures leaks dangling threads

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3203

___
Python tracker 

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



[issue31249] test_concurrent_futures leaks dangling threads

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
components: +Tests
type:  -> resource usage

___
Python tracker 

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



[issue31249] test_concurrent_futures leaks dangling threads

2017-08-21 Thread STINNER Victor

New submission from STINNER Victor:

Using PR 3138 of bpo-31234, I noticed that test_concurrent_futures leaks 
dangling threads:

haypo@selma$ ./python -u -m test --fail-env-changed test_concurrent_futures -v 
-m ThreadPoolWaitTests
== CPython 3.7.0a0 (heads/master:0267128, Aug 21 2017, 17:23:11) [GCC 6.4.1 
20170727 (Red Hat 6.4.1-1)]
(...)
test_all_completed (test.test_concurrent_futures.ThreadPoolWaitTests) ... 
Warning -- threading_cleanup() detected 0 leaked threads (count: 0, dangling: 6)
0.11s ok
test_first_completed (test.test_concurrent_futures.ThreadPoolWaitTests) ... 
1.60s ok
test_first_completed_some_already_completed 
(test.test_concurrent_futures.ThreadPoolWaitTests) ... 1.60s ok
test_first_exception (test.test_concurrent_futures.ThreadPoolWaitTests) ... 
Warning -- threading_cleanup() detected 0 leaked threads (count: 0, dangling: 6)
3.11s ok
test_first_exception_one_already_failed 
(test.test_concurrent_futures.ThreadPoolWaitTests) ... 2.10s ok
test_first_exception_some_already_complete 
(test.test_concurrent_futures.ThreadPoolWaitTests) ... Warning -- 
threading_cleanup() detected 0 leaked threads (count: 0, dangling: 6)
1.60s ok
test_pending_calls_race (test.test_concurrent_futures.ThreadPoolWaitTests) ... 
0.12s ok
test_timeout (test.test_concurrent_futures.ThreadPoolWaitTests) ... 6.11s ok
(...)

--
messages: 300634
nosy: haypo
priority: normal
severity: normal
status: open
title: test_concurrent_futures leaks dangling threads
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



[issue30263] regrtest: log the system load?

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 02d4292df4bbd7a2cbf2716c9e6c22cae76e2093 by Victor Stinner in 
branch '2.7':
bpo-30263: regrtest: add system load average (#3165)
https://github.com/python/cpython/commit/02d4292df4bbd7a2cbf2716c9e6c22cae76e2093


--

___
Python tracker 

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



[issue31248] method wrapper type has invalid __name__/__qualname__ 'method-wrapper'

2017-08-21 Thread Dan Snider

New submission from Dan Snider:

Out of the 202 builtin/extension types easily accessible in sys.modules, that 
is the only one with a dash in its name.

--
components: Library (Lib)
messages: 300632
nosy: bup
priority: normal
severity: normal
status: open
title: method wrapper type has invalid __name__/__qualname__ 'method-wrapper'
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue31234] Make support.threading_cleanup() stricter

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

test_xmlrpc: bpo-31247, "test_xmlrpc leaks dangling threads".

--

___
Python tracker 

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



[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


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



[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3202

___
Python tracker 

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



[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor

New submission from STINNER Victor:

Using PR 3138 of bpo-31234, I noticed that test_xmlrpc leaks dangling threads. 
Example:

haypo@selma$ ./python -m test -v test_xmlrpc --fail-env-changed -m 
test.test_xmlrpc.MultiPathServerTestCase.test_path1
== CPython 3.7.0a0 (heads/master:0267128, Aug 21 2017, 17:23:11) [GCC 6.4.1 
20170727 (Red Hat 6.4.1-1)]
(...)
Warning -- threading_cleanup() detected 0 leaked threads (count: 0, dangling: 2)
test_xmlrpc failed (env changed)
(...)

It seems like xmlrpc error handling creates reference leaks. Attached PR fixes 
the issue.

--
components: Tests
messages: 300630
nosy: haypo
priority: normal
severity: normal
status: open
title: test_xmlrpc leaks dangling threads
type: resource usage
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



[issue31246] [2.7] test_signal.test_setitimer_tiny() fails randomly on x86-64 El Capitan 2.7

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

I wrote https://github.com/python/cpython/pull/3165 "[2.7] bpo-30263: regrtest: 
add system load average", it might help to understand why test_signal fails 
randomly (check if there is a correlation with the system load).

--

___
Python tracker 

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



[issue30263] regrtest: log the system load?

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +3201

___
Python tracker 

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



[issue31246] [2.7] test_signal.test_setitimer_tiny() fails randomly on x86-64 El Capitan 2.7

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

It seems like build 161 is the first since build 142 which failed.

I don't see this failure in recent 3.6 and 3.x builds.

So the failure seems very rare.

--

___
Python tracker 

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



[issue31246] [2.7] test_signal.test_setitimer_tiny() fails randomly on x86-64 El Capitan 2.7

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

It's related to bpo-30807, "setitimer() can disable timer by mistake".

Test code:

def test_setitimer_tiny(self):
# bpo-30807: C setitimer() takes a microsecond-resolution interval.
# Check that float -> timeval conversion doesn't round
# the interval down to zero, which would disable the timer.
self.itimer = signal.ITIMER_REAL
signal.setitimer(self.itimer, 1e-6)
time.sleep(1)
self.assertEqual(self.hndl_called, True)

--
nosy: +pitrou

___
Python tracker 

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



[issue31245] Asyncio UNIX socket and SOCK_DGRAM

2017-08-21 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +3200

___
Python tracker 

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



[issue31246] [2.7] test_signal.test_setitimer_tiny() fails randomly on x86-64 El Capitan 2.7

2017-08-21 Thread STINNER Victor

New submission from STINNER Victor:

http://buildbot.python.org/all/builders/x86-64%20El%20Capitan%202.7/builds/161/steps/test/logs/stdio

0:04:49 [173/403/1] test_signal failed
test test_signal failed -- Traceback (most recent call last):
  File 
"/Users/buildbot/buildarea/2.7.billenstein-elcapitan/build/Lib/test/test_signal.py",
 line 500, in test_setitimer_tiny
self.assertEqual(self.hndl_called, True)
AssertionError: False != True

--
components: Tests
messages: 300626
nosy: haypo
priority: normal
severity: normal
status: open
title: [2.7] test_signal.test_setitimer_tiny() fails randomly on x86-64 El 
Capitan 2.7
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



[issue31245] Asyncio UNIX socket and SOCK_DGRAM

2017-08-21 Thread Quentin Dawans

New submission from Quentin Dawans:

Following this discussion: 
https://groups.google.com/forum/#!searchin/python-tulip/datagram%7Csort:relevance/python-tulip/rpScueoGf1I/WBvEWf8vCgAJ

I added the support for AF_UNIX SOCK_DGRAM is asyncio. Lots of code is coming 
from the other family/type of socket already implemented.

--
components: asyncio
messages: 300625
nosy: qdawans, yselivanov
priority: normal
severity: normal
status: open
title: Asyncio UNIX socket and SOCK_DGRAM
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



[issue31244] Shortcuts bug in Python IDLE

2017-08-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

IDLE and Python/tkinter have nothing to do with the handling of keystrokes and 
their direct interpretation.  The behavior you describe, the Ctrl key being 
disabled in Ukranian mode, strikes me as a bug in either Windows or the Input 
Method you use, or, less likely, the tcl tk GUI framework.  Someone who uses 
the Japanese IME with IDLE thinks Ctrl continues to work right in Japanese 
mode, but will check and report to me.

IDLE offers menu entries for most shortcuts.  Indeed, shortcuts are shortcuts 
relative to using the menu.  Cut, copy, and paste are on the Edit menu.  It 
should be accessible with Alt shortcuts.  C, C, and P are also on the 
right-click context menu.

--
resolution:  -> third party
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



[issue31244] Shortcuts bug in Python IDLE

2017-08-21 Thread Constantine Ketskalo

New submission from Constantine Ketskalo:

Hi there.
Thank you for Python, I love this programming language.

I've found a bug with shortcuts. I'm from Ukraine, so I'm working with English, 
Ukrainian and Russian languages. But any shortcuts, where alphabet is involved 
(like Ctrl+Z, Ctrl+F, Ctrl+V and so on) work only when English is turned on. 
This is quite inconvenient. It's possible to work with it, but still confusing, 
because you can select something in IDLE, copy it with shortcut Ctrl+C, then 
try to paste it to another place and then you find out that it wasn't copied, 
because active language is Ukrainian. So you need to switch to English and 
repeat everything again.

I'm currently working with Python 3.6.1, Windows 8.1 Embedded enterprize x64.
Also I've noticed the same under Windows 7, Windows 10 in different versions of 
Python.
I believe there where Python 2.7, 2.11, 3.4, 3.5. Not sure about all the 
versions exectly, but for sure shortcuts worked the same in all the versions 
I've ever tried to use.

I hope this was helpful and I'm sure many developers, that work not only with 
English would be really happy if you would fix this.

Thanks again for your time and effort.
Best regards, Constantine.

--
assignee: terry.reedy
components: IDLE
messages: 300623
nosy: Constantine Ketskalo, terry.reedy
priority: normal
severity: normal
status: open
title: Shortcuts bug in Python IDLE
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-08-21 Thread Stefan Krah

Stefan Krah added the comment:

Cherry picking has too many conflicts, I'm not backporting this myself.

--

___
Python tracker 

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



[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

2017-08-21 Thread STINNER Victor

STINNER Victor added the comment:

"like GH-2966, most types with Py_TPFLAGS_HAVE_GC should call 
PyObject_GC_UnTrack() at top of the tp_dealloc."

Hum, I wasn't aware of that. Writing correctly code for the Python garbage 
collector is very complex :-/

Maybe it would help to have a short comment, maybe with a link to this issue, 
on each PyObject_GC_UnTrack().

At the first read, I saw the newly added PyObject_GC_UnTrack() calls as 
duplicate, and so useless. For example, PyObject_Del() already untracks the 
object, so it doesn't seem to be needed to explicitly call 
PyObject_GC_UnTrack() "just before".

--
nosy: +haypo

___
Python tracker 

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



[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-08-21 Thread Stefan Krah

Stefan Krah added the comment:


New changeset f432a3234f9f2ee09bd40be03e06bf72865ee375 by Stefan Krah in branch 
'master':
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. 
(#3157)
https://github.com/python/cpython/commit/f432a3234f9f2ee09bd40be03e06bf72865ee375


--

___
Python tracker 

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



[issue31229] wrong error messages when too many kwargs are received

2017-08-21 Thread Oren Milman

Oren Milman added the comment:

I already wrote a patch, but I thought it would be better to wait until
#31236 is resolved.
this is because #31236 would change the error messages of min() and max(), and 
test_call tests exact error messages in
CFunctionCallsErrorMessages, which is where I thought the tests of this
issue should be added.

--

___
Python tracker 

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



[issue31243] checks whether PyArg_ParseTuple returned a negative int

2017-08-21 Thread Oren Milman

Oren Milman added the comment:

yes, soon.
(just wanted to hear your opinion before doing that.)

--

___
Python tracker 

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



[issue31217] test_code leaked [1, 1, 1] memory blocks on x86 Gentoo Refleaks 3.6/3.x

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


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



[issue31217] test_code leaked [1, 1, 1] memory blocks on x86 Gentoo Refleaks 3.6/3.x

2017-08-21 Thread STINNER Victor

Changes by STINNER Victor :


--
title: test_code leaked [1, 1, 1] memory blocks on x86 Gentoo Refleaks 3.6 -> 
test_code leaked [1, 1, 1] memory blocks on x86 Gentoo Refleaks 3.6/3.x

___
Python tracker 

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



[issue31229] wrong error messages when too many kwargs are received

2017-08-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please make a PR from your patch Oren?

--

___
Python tracker 

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



[issue31243] checks whether PyArg_ParseTuple returned a negative int

2017-08-21 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
keywords: +easy (C)

___
Python tracker 

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



[issue31243] checks whether PyArg_ParseTuple returned a negative int

2017-08-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Do you want to provide a PR Oren?

--
components: +Extension Modules -Interpreter Core
nosy: +serhiy.storchaka
stage:  -> needs patch
versions: +Python 2.7, Python 3.6

___
Python tracker 

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



[issue31144] add initializer to concurrent.futures.ProcessPoolExecutor

2017-08-21 Thread nvdv

nvdv added the comment:

I can make a PR if it makes any sense for stdlib maintainer.

--

___
Python tracker 

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



[issue28261] wrong error messages when using PyArg_ParseTuple to parse normal tuples

2017-08-21 Thread Oren Milman

Oren Milman added the comment:

it seems that I have missed some places which are part of this issue, at least
in Modules/_io/textio.c (one of them is mentioned in #31243).

also, when fixing these, we should also add a check before the call to
PyArg_ParseTuple (in case such check doesn't already exist), to verify the
object is indeed a tuple.

--

___
Python tracker 

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



[issue31243] checks whether PyArg_ParseTuple returned a negative int

2017-08-21 Thread Oren Milman

New submission from Oren Milman:

according to the docs 
(https://docs.python.org/3.7/c-api/arg.html?highlight=pyarg_parsetuple#c.PyArg_ParseTuple),
 PyArg_ParseTuple
returns true for success or false for failure. I also looked at the
implementation in Python/getargs.c, and it seems that indeed PyArg_ParseTuple
can return only 0 or 1.

however, in some places in the codebase, there are checks whether
PyArg_ParseTuple returned a negative int.
I found a bunch in Modules/_testcapimodule.c, and one in Modules/_io/textio.c
in textiowrapper_read_chunk. (hopefully i haven't missed other places.)

this code crashes because of the check in textiowrapper_read_chunk:
import codecs
import _io
class MyDec():
def getstate(self):
return 420
class MyDecWrapper():
def __call__(self, blabla):
return MyDec()
quopri = codecs.lookup("quopri")
quopri._is_text_encoding = True
quopri.incrementaldecoder = MyDecWrapper()
t = _io.TextIOWrapper(_io.BytesIO(b'aa'),
  newline='\n', encoding="quopri")
t.read(42)


I guess all of these checks should be changed to check whether PyArg_ParseTuple
returned 0.

also, before this specific call to PyArg_ParseTuple in textiowrapper_read_chunk,
we should check whether 'state' is a tuple.
Moreover, this call shouldn't produce a wrong error message, as explained in
#28261.

--
components: Interpreter Core
messages: 300613
nosy: Oren Milman
priority: normal
severity: normal
status: open
title: checks whether PyArg_ParseTuple returned a negative int
type: crash
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