[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

[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

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

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

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

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

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

[issue23835] configparser does not convert defaults to strings

2017-08-21 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +3214 ___ Python tracker ___ ___

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

[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3212 ___ Python tracker ___ ___

[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

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

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

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

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

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

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

[issue30871] Add test.pythoninfo

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3210 ___ Python tracker ___ ___

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

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

[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

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

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

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

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

[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

[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

[issue31243] checks whether PyArg_ParseTuple returned a negative int

2017-08-21 Thread Oren Milman
Changes by Oren Milman : -- pull_requests: +3208 ___ Python tracker ___ ___

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

[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

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

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

2017-08-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___

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

[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

[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

[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

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

[issue31065] Documentation for Popen.poll is unclear

2017-08-21 Thread Ivan Chernov
Changes by Ivan Chernov : -- pull_requests: +3205 ___ Python tracker ___ ___

[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

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

[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

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

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

[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3204 ___ Python tracker ___ ___

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

[issue31249] test_concurrent_futures leaks dangling threads

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3203 ___ Python tracker ___ ___

[issue31249] test_concurrent_futures leaks dangling threads

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Tests type: -> resource usage ___ Python tracker ___

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

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

[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

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

[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue31247] test_xmlrpc leaks dangling threads

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3202 ___ Python tracker ___ ___

[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

[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). --

[issue30263] regrtest: log the system load?

2017-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3201 ___ Python tracker ___ ___

[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

[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

[issue31245] Asyncio UNIX socket and SOCK_DGRAM

2017-08-21 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3200 ___ Python tracker ___

[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

[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

[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

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

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

[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

[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

[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

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

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

[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

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

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

[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

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

[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

[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