[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

2017-06-26 Thread Nate Soares
New submission from Nate Soares: [NOTE: In this comment, I use BB to mean unicode character 0x1D539, b/c the issue tracker won't let me submit a comment with unicode characters in it.] Directory structure: repro/ foo.py test_foo.py Contents of foo.py: BB = 1 __all__ = ['BB'] Cont

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset f84ac420c2af98339678744953869cad3c253281 by Antoine Pitrou in branch 'master': bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (#2403) https://github.com/python/cpython/commit/f84ac420c2af98339678744953869cad3c253281 -

[issue30761] pdb: Add step / next count arguments

2017-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I've never needed this ever. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-li

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2468 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2469 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30773] async generator receives wrong value when shared between coroutines

2017-06-26 Thread Dima Tisnek
New submission from Dima Tisnek: MRE ``` import asyncio async def generator(): while True: x = yield 42 print("received", x) await asyncio.sleep(0.1) async def user(name, g): print("sending", name) await g.asend(name) async def helper(): g = generato

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2470 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30773] async generator receives wrong value when shared between coroutines

2017-06-26 Thread Dima Tisnek
Dima Tisnek added the comment: @Yuri, this bug doesn't require `gather`, here's a version with futures and explicit await's instead. It produces same output: ``` import asyncio async def generator(): while True: x = yield 42 print("received", x) await asyncio.sleep

[issue2771] Test issue

2017-06-26 Thread Ezio Melotti
Ezio Melotti added the comment: 𝔹𝔹 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

2017-06-26 Thread Ezio Melotti
Ezio Melotti added the comment: I can reproduce the issue: $ cat foo.py 𝔹𝔹 = 1 __all__ = ['𝔹𝔹'] $ python3 -c 'import foo; print(dir(foo)); from foo import *' ['BB', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__'] Traceback (m

[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

2017-06-26 Thread Matthew Barnett
Matthew Barnett added the comment: See PEP 3131 -- Supporting Non-ASCII Identifiers It says: """All identifiers are converted into the normal form NFKC while parsing; comparison of identifiers is based on NFKC.""" >>> import unicodedata >>> unicodedata.name(unicodedata.normalize('NFKC', '\N{MA

[issue30774] list_repr not safe against concurrent mutation

2017-06-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30774] list_repr not safe against concurrent mutation

2017-06-26 Thread Antoine Pitrou
New submission from Antoine Pitrou: list_repr() is careful to fetch the list size on each iteration. However, it seems that the list size may be mutated just after by concurrent code, perhaps in _PyUnicodeWriter_WriteASCIIString() or Py_EnterRecursiveCall(). I witnessed this with a signal han

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 55ab604e3fdb91baabe98d1c407b5910eeb31cef by Antoine Pitrou in branch '3.6': [3.6] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2418) https://github.com/python/cpython/commit/55ab604e3fdb91baabe98d1c407b5910ee

[issue30774] list_repr not safe against concurrent mutation

2017-06-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attaching reproducer script. I don't know if that is worth fixing. -- Added file: http://bugs.python.org/file46975/siglist.py ___ Python tracker __

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 85b34edd8b575b918490afbcb0db6f791874dbdd by Antoine Pitrou in branch '3.5': [3.5] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2419) https://github.com/python/cpython/commit/85b34edd8b575b918490afbcb0db6f7918

[issue20703] RuntimeError caused by lazy imports in pdb

2017-06-26 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 828488393ca79f2ceb0acc2d7c30fb68baad85f8 by Antoine Pitrou in branch '2.7': [2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2420) https://github.com/python/cpython/commit/828488393ca79f2ceb0acc2d7c30fb68ba

[issue30765] PyThread_acquire_lock can block even when asked not ot

2017-06-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Travis-CI and the 3.x buildbots seem fine. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue30775] [3.6] test_multiprocessing_forkserver leaks references on Python 3.6

2017-06-26 Thread STINNER Victor
New submission from STINNER Victor: $ ./python -m test --match=test.test_multiprocessing_forkserver.WithProcessesTestBarrier.test_barrier --match=test.test_multiprocessing_forkserver.WithProcessesTestFinalize.test_finalize -R 3:3 test_multiprocessing_forkserver test_multiprocessing_forkserv

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- title: [3.6] test_multiprocessing_forkserver leaks references on Python 3.6 -> test_multiprocessing_forkserver leaks references on Python 3 versions: +Python 3.5, Python 3.7 ___ Python tracker

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: test_multiprocessing_spawn doesn't leak: haypo@selma$ ./python -m test --match=test.test_multiprocessing_spawn.WithProcessesTestBarrier.test_barrier --match=test.test_multiprocessing_spawn.WithProcessesTestFinalize.test_finalize -R 3:3 test_multiprocessing_sp

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: The first message was on Python 3.6. On master, regrtest sees even more kinds of leaks: references, memory blocks and file descriptors. haypo@selma$ ./python -m test --match=test.test_multiprocessing_forkserver.WithProcessesTestBarrier.test_barrier --match=t

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it test_finalize or test_barrier? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue30775] test_multiprocessing_forkserver leaks references on Python 3

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: > Is it test_finalize or test_barrier? Try yourself: it only leaks when you run both :-) -- ___ Python tracker ___

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-06-26 Thread Patrick Grafe
Patrick Grafe added the comment: Is this ready to get backported to Python 3.5 and 3.6? I see the tags on the issue, but I'm not clear on the process for actually backporting patches. -- nosy: +Patrick Grafe ___ Python tracker

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-06-26 Thread R. David Murray
R. David Murray added the comment: New changeset b350c22ebcbb891412e0b334afc9f0db19534e06 by R. David Murray (Joel Hillacre) in branch 'master': bpo-30532: Fix whitespace folding in certain cases https://github.com/python/cpython/commit/b350c22ebcbb891412e0b334afc9f0db19534e06 -- ___

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-06-26 Thread R. David Murray
Changes by R. David Murray : -- stage: -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue30728] IDLE: Modernize configdialog code.

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset bac7d3363b099d0cdef3e541f8581859edfddc85 by terryjreedy (csabella) in branch 'master': bpo-30728: IDLE: Refactor configdialog to PEP8 names (#2307) https://github.com/python/cpython/commit/bac7d3363b099d0cdef3e541f8581859edfddc85 -- ___

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-26 Thread STINNER Victor
New submission from STINNER Victor: Currently, regrtest considers that a test file leaks if at least one run increased or decreased the global reference counter. The problem is that in practice, Python is full of singletons, caches, and other jokes of the garbage collector, etc. To reduce fal

[issue30728] IDLE: Modernize configdialog code.

2017-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2471 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2472 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2017-06-26 Thread Stefan Behnel
Stefan Behnel added the comment: Sorry for not responding, missed the message, it seems. Cython has to support old-style relative imports also in Py3 because that's how the user code was originally written, using Py2-style syntax and semantics. Most Cython code has not been converted to Py3 sy

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: I had to write this change to be able to bisect bpo-30775 reference leak. Without this change, my bisection tool picked the wrong tests and failed to find the tests which leaked. For example, it took a subtest of tests which was considered as leaking because t

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-06-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2473 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30339] test_multiprocessing_main_handling: "RuntimeError: Timed out waiting for results" on x86 Windows7 3.x

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Similar but difference issue. http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.5/builds/215/steps/test/logs/stdio == FAIL: test_directory_compiled (test.test_multiprocessing_

[issue30758] test_pydoc (regrtest?) hangs on ARMv7 Ubuntu 3.x

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Similar issue: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/800/steps/test/logs/stdio ... 1:49:04 [403/406/1] test_compile passed -- running: test_subprocess (4969 sec) 1:49:10 [404/406/1] test_strptime passed -- running: test_subprocess

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-06-26 Thread Terry J. Reedy
New submission from Terry J. Reedy: Spinoff from #30728. Docstrings are a form of comment. Both leave behavior alone and do not require testing, just human review. Add the docstrings from the original version of PR 2307, and any others. Review and fix comments in light of the comments on t

[issue30778] test_bsddb3 crash on x86 Windows XP 2.7

2017-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Tests, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 2.7 ___ Python tracker ___

[issue30764] regrtest: Add --fail-env-changed option

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9ad50d94599aed0c37beaf78948ec271c8aa3881 by Victor Stinner in branch '3.6': bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2410) https://github.com/python/cpython/commit/9ad50d94599aed0c37beaf78948ec271c8aa3881 -- ___

[issue30778] test_bsddb3 crash on x86 Windows XP 2.7

2017-06-26 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Windows%20XP%202.7/builds/213/steps/test/logs/stdio Run tests in parallel using 2 child processes ... 0:22:09 [321/404/1] test_bsddb3 crashed -- running: test_io (242 sec) test_bsddb3 still working, be patient...

[issue30764] regrtest: Add --fail-env-changed option

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2097b9e0ef32ab7a0d745edc0f707c615780c006 by Victor Stinner in branch '2.7': [2.7] bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2412) https://github.com/python/cpython/commit/2097b9e0ef32ab7a0d745edc0f707c615780c006 -- _

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9ad50d94599aed0c37beaf78948ec271c8aa3881 by Victor Stinner in branch '3.6': bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2410) https://github.com/python/cpython/commit/9ad50d94599aed0c37beaf78948ec271c8aa3881 -- ___

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2097b9e0ef32ab7a0d745edc0f707c615780c006 by Victor Stinner in branch '2.7': [2.7] bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2412) https://github.com/python/cpython/commit/2097b9e0ef32ab7a0d745edc0f707c615780c006 -- _

[issue30754] textwrap.dedent mishandles empty lines

2017-06-26 Thread Martin Panter
Martin Panter added the comment: Some people like to avoid indented blank lines, treating them the same as trailing whitespace. I suspect this behaviour may be intentional. -- nosy: +martin.panter ___ Python tracker

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-26 Thread Terry J. Reedy
New submission from Terry J. Reedy: configdialog.ConfigDialog mixes together two things: a user interface for changing options and a mechanism for storing proposed changes and applying them to the configuration dictionaries managed by config. The change mechanism is based on a 3-level dict t

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE dependencies: +IDLE: configdialog -- factor out Changes class ___ Python tracker ___ __

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue30750] Update `make patchcheck` to understand Misc/NEWS.d

2017-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-06-26 Thread Terry J. Reedy
New submission from Terry J. Reedy: A complete test of the GUI will simulate user interaction with every widget and then query Changes() to see that the proper changes orders have been recorded. This issue depends on #30779, factor out Changes class. -- messages: 296963 nosy: terry.r

[issue30764] regrtest: Add --fail-env-changed option

2017-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2474 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE versions: +Python 3.6 ___ Python tracker ___ ___ Python-bug

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-06-26 Thread Terry J. Reedy
New submission from Terry J. Reedy: Change imports and see what else needs fixing. #27755 is one specific ttk switch that could be done before, as part of, or after this. This issue depends on #30780 test GUI -- assignee: terry.reedy components: IDLE messages: 296964 nosy: terry.reedy

[issue30764] regrtest: Add --fail-env-changed option

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: I tried to implement test.support.SuppressCrashReport on Windows using only ctypes for Python 2.7, but I failed: see attached suppress_crash.py. So I created https://github.com/python/cpython/pull/2423 which adds new functions and constants to the _testcapi mo

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: configdialog - add tests for ConfigDialog GUI. ___ Python tracker ___ ___ Python-b

[issue30764] regrtest: Add --fail-env-changed option

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Test failure on x86-64 Sierra 2.7 buildbot: http://buildbot.python.org/all/builders/x86-64%20Sierra%202.7/builds/111/steps/test/logs/stdio test_shell_string_with_spaces (test.test_subprocess.CommandsWithSpaces) ... test test_subprocess failed -- Traceback (mos

[issue30329] poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: The bug should now be catched. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Hum, my commit was not reported in the issue: commit da6d305b6fcd49ba1224b1fd2131d7648a5be6b9 Author: Victor Stinner Date: Thu Jun 22 02:09:40 2017 +0200 bpo-8799: Reduce timing sensitivity of condition test by explicitly (#2320) delaying the main th

[issue30351] [2.7] regrtest hangs on Python 2.7 (test_threading?)

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: The bpo-30727 (test_threading hangs in ConditionTests.test_notify()) has been fixed by my commit da6d305b6fcd49ba1224b1fd2131d7648a5be6b9, followed by a better made by Serhiy: commit 7709b4d57b433ef027a2e7e63b4cab3fc9ad910d (Serhiy applied his fix to all branc

[issue30329] poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: > The bug should now be catched. Oops, I wanted to write: "should now be fixed", sorry! -- ___ Python tracker ___ _

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Oops, I mentioned the wrong bpo in my PRs: the fix was pushed using bpo-30764 identifier :-/ -- ___ Python tracker ___

[issue30764] regrtest: Add --fail-env-changed option

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Oops, I used the wrong bpo number for the test_subprocess fixes: the right bpo is bpo-30448! -- ___ Python tracker ___

[issue30542] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Example of 3 runs: test_tools leaked [10, 15, 0] references, sum=25 test_tools leaked [2, 13, 0] references, sum=15 test_tools leaked [180, 0, 0] references, sum=180 The bpo-30776 should fix this issue by ignoring the result, since it's a false positive in pra

[issue30706] EmailMessage Object Creation

2017-06-26 Thread R. David Murray
R. David Murray added the comment: Given that there hasn't been any response that would help us improve the docs on this, I'm going to close the issue. I hope you've figured out how to do what you want to do! -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: I reverted my Tools/buildbot/test.bat change on all branches. I checked that --timeout is now properly set on the Gentoo Refleaks and Windows Refleaks buildbots on 3.5, 3.6 and master branches. So this issue is now fixed! -- resolution: -> fixed stag

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: I tested: "./python -m test -j2 -R 3:3 -m test_random_open test_zipfile" now pass on 2.7, 3.5, 3.6 and master branches. So this issue is now fixed. By the way, bpo-30776 should reduce even further false positive when hunting reference leaks. -- resolu

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Real-world examples of false positives from the x86 Gentoo Refleaks 2.7 buildbot: http://buildbot.python.org/all/builders/x86%20Gentoo%20Refleaks%202.7/builds/32/steps/test/logs/stdio test_nntplib leaked [0, 85, 0] references, sum=85 test_multiprocessing leake

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 48b5c422ffb03affb00c184b9a99e5537be92732 by Victor Stinner in branch 'master': bpo-30776: reduce regrtest -R false positives (#2422) https://github.com/python/cpython/commit/48b5c422ffb03affb00c184b9a99e5537be92732 -- __

[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-26 Thread Emily Morehouse
Changes by Emily Morehouse : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30758] test_pydoc (regrtest?) hangs on some buildbots

2017-06-26 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- title: test_pydoc (regrtest?) hangs on ARMv7 Ubuntu 3.x -> test_pydoc (regrtest?) hangs on some buildbots ___ Python tracker ___ ___

[issue30705] python2.7 -m test -R 3:3 hangs on Refleaks 2.7 buildbots

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: Oh, for test_regrtest which hangs on Windows, I'm quite sure that it comes from test_crashed() which opens a popup! In the master branch, test_crashed() uses faulthandler._sigsegv() which disables the Windows popup using SetErrorMode() and _set_abort_behavior(

[issue30728] IDLE: Modernize configdialog code.

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided that most other changes should be separate issues that are dependencies of this one. 30779 Docstrings and comments 28523 Colour to color 30779 Factor out Changes class 30780 Test GUI - depends on 30779 30781 Switch to ttk - depends on 30780 -

[issue30728] IDLE: Modernize configdialog code.

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 938e73809d10f6073c85ecd330c88a85c6095530 by terryjreedy in branch '3.6': [3.6] bpo-30728: IDLE: Refactor configdialog to PEP8 names (GH-2307) (#2421) https://github.com/python/cpython/commit/938e73809d10f6073c85ecd330c88a85c6095530 -- _

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-06-26 Thread Andy Balaam
New submission from Andy Balaam: asyncio.as_completed allows us to provide lots of coroutines (or Futures) to schedule, and then deal with the results as soon as they are available, in a loop, or a streaming style. I propose to allow as_completed to work on very large numbers of coroutines, p

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-06-26 Thread Andy Balaam
Changes by Andy Balaam : -- pull_requests: +2475 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30754] textwrap.dedent mishandles empty lines

2017-06-26 Thread Emily Morehouse
Emily Morehouse added the comment: I concur with Martin, whitespace is not expected to be preserved on whitespace-only lines nor even considered when finding common leading whitepace. To illustrate this, see the examples below: The following yields the same (expected) results: > python2 -

[issue19479] textwrap.dedent doesn't work properly with strings containing CRLF

2017-06-26 Thread Emily Morehouse
Emily Morehouse added the comment: @georg.brandl and @terry.reedy, this issue was mentioned again recently (http://bugs.python.org/issue30754). Would you like to revisit it? -- nosy: +emilyemorehouse ___ Python tracker

[issue30773] async generator receives wrong value when shared between coroutines

2017-06-26 Thread Emily Morehouse
Changes by Emily Morehouse : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7874c73c0c729bbec2fd4b077bd0eec276cfff4 by Victor Stinner (Eric N. Vander Weele) in branch 'master': bpo-30769: Fix reference leak introduced in 77703942c59 (#2416) https://github.com/python/cpython/commit/a7874c73c0c729bbec2fd4b077bd0eec276cfff4

[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-26 Thread Emily Morehouse
Changes by Emily Morehouse : -- pull_requests: +2477 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30783] Spawned subprocesses don't respect environment

2017-06-26 Thread Ofek Lev
New submission from Ofek Lev: The following example shows that we are indeed changing PATH, but the subprocess does not acknowledge it in Windows 7 x64. Also note this works in Linux (Ubuntu 16.04). - import os import subprocess from contextlib import contextmanager from tempfile import T

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9a02ae3d3d645f0c8178f3362694f473bab6fe3e by terryjreedy (csabella) in branch 'master': bpo-24813: IDLE: Add build bitness to About Idle title (#2380) https://github.com/python/cpython/commit/9a02ae3d3d645f0c8178f3362694f473bab6fe3e -- _

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2478 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30763] There is functionality bug in linecache library.

2017-06-26 Thread Emily Morehouse
Emily Morehouse added the comment: This is the expected functionality of linecache. As each file is read, it is stored in a cache, subsequent calls using linecache do not check to see if the file has changed. If you know that the file has changed, you should call linecache.checkcache() to che

[issue30759] [2.7] Fix python2 -m test --list-cases test_multibytecodec_support test_robotparser

2017-06-26 Thread Emily Morehouse
Changes by Emily Morehouse : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30783] Spawned subprocesses don't respect environment

2017-06-26 Thread Eryk Sun
Eryk Sun added the comment: subprocess.Popen calls CreateProcess on Windows, which searches for an unqualified executable in the command line as follows: 1. The directory from which the application loaded. 2. The current directory for the parent process. (Starting with Vista, the

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8047f02a4b0db81cb023df1f5ce4cc1c42d17821 by terryjreedy in branch '3.6': [3.6] bpo-24813: IDLE: Add build bitness to About Idle title (GH-2380) (#2426) https://github.com/python/cpython/commit/8047f02a4b0db81cb023df1f5ce4cc1c42d17821 --

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: This completes 1,3,and 4. Pause for now as I would like to try my re-arrangement next, before worrying about modality. -- ___ Python tracker _

[issue30784] IDLE: seperate editor window and text

2017-06-26 Thread Louie Lu
New submission from Louie Lu: Currently, IDLE EditorWindow was mixed with the GUI skeleton and text area, and the other plugin such as hyperparser was operate on editwin. Such a design let IDLE is difficult to changed its GUI design, from new window to new tab style. If we seperate EditorWindo

[issue30783] Spawned subprocesses don't respect environment

2017-06-26 Thread Ofek Lev
Ofek Lev added the comment: Fixed with shell=True -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30783] Spawned subprocesses don't respect environment

2017-06-26 Thread Eryk Sun
Eryk Sun added the comment: cmd.exe implements its own search, like shutil.which, and uses the CreateProcess lpApplicationName parameter that corresponds to the Popen executable parameter. But in general (not always) it's better to use shutil.which because you don't have to worry about the sec

[issue29910] Ctrl-D eats a character on IDLE

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 213ce12adfc9281c6f381bb45d132e9de8ffd450 by terryjreedy (Serhiy Storchaka) in branch 'master': bpo-29910: IDLE no longer deletes a character after commenting out a region (#825) https://github.com/python/cpython/commit/213ce12adfc9281c6f381bb45d1

[issue21519] IDLE : Bug in keybinding validity check

2017-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2479 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30754] textwrap.dedent mishandles empty lines

2017-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is related to #19479 at least in the sense of addressing the same module, and being about It has a patch, so it would be good to accept or reject. Martin, could you take a look? There is currently no expert listed for textwrap. Georg is current dorman

[issue30759] [2.7] Fix python2 -m test --list-cases test_multibytecodec_support test_robotparser

2017-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have doubts that only 2 tests need to be modified. Making tests discoverable in Python 3 was a long work made by many developers in many issues, and it still is not finished. Some of changes were not trivial and needed rewriting the architecture of the tes

[issue30763] There is functionality bug in linecache library.

2017-06-26 Thread Guido van Rossum
Guido van Rossum added the comment: You nailed it, Emily! This is not a bug (though the docs could be a bit more upfront about this -- just having "cache" in the name doesn't cut it these days :-). If either Serhiy or Raymond agrees they can close the issue (we won't wait for the third vote).

[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code in 3.5 differs from the code in master and 3.6, but it contains the same bug. -- ___ Python tracker ___

[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2d348f7a723db839aa18ce8213b8663ccb0a3d35 by Serhiy Storchaka (Emily Morehouse) in branch '3.6': [3.6] bpo-30769: Fix reference leak introduced in 77703942c59 (GH-2416) (#2425) https://github.com/python/cpython/commit/2d348f7a723db839aa18ce8213b8

[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: commit review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

<    1   2   3   >