[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2491 ___ Python tracker ___ ___

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

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2493 ___ Python tracker ___ ___

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

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2492 ___ Python tracker ___ ___

[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset fea98bfcff6ccf9142daa97677fe86c1fdf8e63e by Victor Stinner in branch '2.7': [2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444) https://github.com/python/cpython/commit/fea98bfcff6ccf9142daa97677fe86c1fdf8e63e --

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset fea98bfcff6ccf9142daa97677fe86c1fdf8e63e by Victor Stinner in branch '2.7': [2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444) https://github.com/python/cpython/commit/fea98bfcff6ccf9142daa97677fe86c1fdf8e63e --

[issue1754] WindowsError messages are not properly encoded

2017-06-27 Thread alberfontan1
Changes by alberfontan1 : -- pull_requests: +2490 ___ Python tracker ___ ___

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

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2495 ___ Python tracker ___ ___

[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2494 ___ Python tracker ___ ___

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/140/steps/test/logs/stdio 0:06:09 [401/404] test_runpy passed 0:06:09 [402/404] test_htmlparser passed 0:06:10 [403/404] test_smtpnet passed command timed out: 1200 seconds without

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

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2496 ___ Python tracker ___ ___

[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset de1850bb03f8225cbff85f437b6e972bf9b68c2a by Victor Stinner in branch '3.5': [3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442) https://github.com/python/cpython/commit/de1850bb03f8225cbff85f437b6e972bf9b68c2a --

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset de1850bb03f8225cbff85f437b6e972bf9b68c2a by Victor Stinner in branch '3.5': [3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442) https://github.com/python/cpython/commit/de1850bb03f8225cbff85f437b6e972bf9b68c2a --

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset de1850bb03f8225cbff85f437b6e972bf9b68c2a by Victor Stinner in branch '3.5': [3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442) https://github.com/python/cpython/commit/de1850bb03f8225cbff85f437b6e972bf9b68c2a --

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

2017-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just read the code. Find the function parse_envlist() in posixmodule.c and find similar code checking for '='. Even if the leak is not detected by the test (but it is detected on Linux, maybe you use Windows?) it exists. os.spawnve() also should be

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2d775589d98959abb9833121bd9d417003de56c0 by Victor Stinner in branch '2.7': bpo-30705: Fix test_regrtest.test_crashed() (#2439) https://github.com/python/cpython/commit/2d775589d98959abb9833121bd9d417003de56c0 --

[issue30328] test_ssl.test_connect_with_context(): ConnectionResetError on AMD64 FreeBSD 9.x 3.6

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.6/builds/137/steps/test/logs/stdio == ERROR: test_connect_with_context (test.test_ssl.SimpleBackgroundTests)

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2497 ___ Python tracker ___ ___

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

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2499 ___ Python tracker ___ ___

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

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2500 ___ Python tracker ___ ___

[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2498 ___ Python tracker ___ ___

[issue30742] VS2015 support for 2.7 branch

2017-06-27 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2501 ___ Python tracker ___

[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 35d2ca2b94a6ff29e763ddb7727166f0592edfa2 by Victor Stinner in branch '3.6': [3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441) https://github.com/python/cpython/commit/35d2ca2b94a6ff29e763ddb7727166f0592edfa2 --

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 35d2ca2b94a6ff29e763ddb7727166f0592edfa2 by Victor Stinner in branch '3.6': [3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441) https://github.com/python/cpython/commit/35d2ca2b94a6ff29e763ddb7727166f0592edfa2 --

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 35d2ca2b94a6ff29e763ddb7727166f0592edfa2 by Victor Stinner in branch '3.6': [3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441) https://github.com/python/cpython/commit/35d2ca2b94a6ff29e763ddb7727166f0592edfa2 --

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-27 Thread tom kronmiller
New submission from tom kronmiller: It is difficult to learn what decorators there are because there is no single index which lists all of them (at least, I have been unable to find one). Instead, one must stumble across them while reading library module documentation. An index listing the

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

2017-06-27 Thread Emily Morehouse
Emily Morehouse added the comment: I think I need a bit more direction for the 3.5 backport. The original test below passes: ./python -m test -R 3:3 -m test_execve_invalid_env test_os -- ___ Python tracker

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: It seems like "x86 Gentoo Refleaks 2.7" was fixed, I don't know how, but I don't care as soon as it works :-) My commit 2d775589d98959abb9833121bd9d417003de56c0 fixed "./python -m test -R 3:3 test_regrtest" on Windows. I tested manually. I consider that the

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

2017-06-27 Thread Steven D'Aprano
Changes by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___

[issue27584] New addition of vSockets to the python socket module

2017-06-27 Thread Cathy Avery
Cathy Avery added the comment: I've attached the third version of VSOCK patch addressing the concerns of the last rev. I've also included a README file that lists instructions on how to setup a test environment. Thanks -- Added file:

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 94b169fe48bc7ea76b926823885d1b12c2c381fa by Serhiy Storchaka in branch '3.5': [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443) (#2448)

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am working on revising the patch now, so don't push anything until I do. I will revise the docstring and add 'opener' and help and news file. -- ___ Python tracker

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2505 ___ Python tracker ___ ___

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Charles Wohlganger
Charles Wohlganger added the comment: 'opener' sounds fine to me. I agree it makes much more sense than 'default'. I don't know much about Emacs, and couldn't find what their parens highlighting styles were. I can't think of anything sensible that isn't in this extension with this

[issue27584] New addition of vSockets to the python socket module

2017-06-27 Thread Cathy Avery
Cathy Avery added the comment: Help file. -- Added file: http://bugs.python.org/file46978/REAME.txt ___ Python tracker ___

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-06-27 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Hey Senthil and Christian! > Could you convert your latest patch into PR against > https://github.com/python/cpython That was fun. There we go: https://github.com/python/cpython/pull/2449 I hope I was not too late with that for the 3.7 development.

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

2017-06-27 Thread Mark Roseman
Mark Roseman added the comment: FYI, just added a trivial pull request to change the tagline in the about dialog to 'integrated development and learning environment'. It's showing up as from python-dev as I hadn't (yet) added my github name to my bpo prefs. Got to start somewhere! --

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-06-27 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke : -- pull_requests: +2506 ___ Python tracker ___ ___

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wrong commit message in 3.6. Should be the same as in 3.5. This functionality was backported as a private function _PyUnicode_AsWideCharString(). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

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

2017-06-27 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2508 ___ Python tracker ___

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2512 ___ Python tracker ___ ___

[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2511 ___ Python tracker ___ ___

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 23e7944eba1968bb8432fdc4cc96d4fdd2c1a230 by Victor Stinner in branch 'master': bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) https://github.com/python/cpython/commit/23e7944eba1968bb8432fdc4cc96d4fdd2c1a230 --

[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 23e7944eba1968bb8432fdc4cc96d4fdd2c1a230 by Victor Stinner in branch 'master': bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) https://github.com/python/cpython/commit/23e7944eba1968bb8432fdc4cc96d4fdd2c1a230 --

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: First, I think urllib.parse is not the best place for doing such checks. Even if add some checks in urllib.parse, they should be added also at lower level in urllib.request or concrete protocol implementations. Second, PR 2303 actually doesn't reject

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-06-27 Thread Joel Hillacre
Changes by Joel Hillacre : -- title: email.policy.SMTP.fold() issue with long filenames with spaces -> email.policy.SMTP.fold() issue for long filenames with spaces ___ Python tracker

[issue30743] unittest discover does not mention module file must be named with "test_" prefix

2017-06-27 Thread Alessandro Piccione
Alessandro Piccione added the comment: You are right. As the `--pattern` documentation says, the default pattern is "test*.py" which does not match "aaaTest.py". I had looking for the wrong pattern. Thanks, Alex -- resolution: -> not a bug stage: -> resolved status: open ->

[issue30788] email.policy.SMTP.fold() issue with long filenames with spaces

2017-06-27 Thread Joel Hillacre
New submission from Joel Hillacre: Found an issue in email.policy.SMTP.fold on "Content-Disposition" headers for long filenames with spaces. Managed to simply the issue to a test case as follows: >>> from email.policy import SMTP; SMTP.fold('Content-Disposition', >>> 'attachment;

[issue30743] unittest discover does not mention module file must be named with "test_" prefix

2017-06-27 Thread Zachary Ware
Zachary Ware added the comment: This all seems to be covered in https://docs.python.org/3/library/unittest.html#test-discovery $ cat aaaTest.py import unittest class TestAAA(unittest.TestCase): def test_something(self): self.assertTrue(True) if __name__ == '__main__':

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset fea98bfcff6ccf9142daa97677fe86c1fdf8e63e by Victor Stinner in branch '2.7': [2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444) https://github.com/python/cpython/commit/fea98bfcff6ccf9142daa97677fe86c1fdf8e63e --

[issue29910] Ctrl-D eats a character on IDLE

2017-06-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: -2504 ___ Python tracker ___ ___

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: -2366 ___ Python tracker ___ ___

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The unlinked PR is a closed duplicate. PR 2306 is the one being updated and reviewed. -- versions: +Python 3.6 ___ Python tracker

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

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Louie, perhaps you would like to review the PR, especially the comment revisions responding to your comments. -- ___ Python tracker

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Oh, thanks for the documentation! Now the change should just be backported to other branches. -- ___ Python tracker

[issue27847] os.set_inheritable() looks to be broken on OpenIndiana, regression of Python 3.6

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: I'm not interested to work on OpenIndiana, and I consider that we should just remove the OpenIndiana buildbot, so I abandon this issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue27068] Add a detach() method to subprocess.Popen

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: @Martin Panter: Do you still want this feature? Any progress on bpo-27069? -- ___ Python tracker ___

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: While the root issue is not fixed, at least -W doesn't cause issues anymore with -R, so I consider that the "bug" was fixed ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue22331] test_io.test_interrupted_write_text() hangs on the buildbot FreeBSD 7.2

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Hum, the resolution is already set to Fixed, and I didn't see this bug last months on buildbots, so I consider that yes, it's fixed. Sorry Martin, I lost track of this issue and so I don't know what to do with your patch :-/ I will just close the issue.

[issue22271] Deprecate PyUnicode_AsUnicode(): emit a DeprecationWarning

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Sorry I lost track of this issue, I just close it. Note: Serhiy recently worked on wchar_t functions of PyUnicodeObject to detect embedded null characters, see for example bpo-30708. -- resolution: -> out of date stage: -> resolved status: open ->

[issue23587] asyncio: use the new traceback.TracebackException class

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I'm not interested anymore to work on asyncio, so I just close this old issue which has no activity since March 2015. I'm not even sure that it's doable to use traceback.TracebackException in asyncio. Moreover, Python and asyncio evolved in the

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Ok, let's close the issue in that case ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue13617] Reject embedded null characters in wchar* strings

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Wow, it's nice to see activity on this issue that I opened 6 years ago :-) Sorry Serhiy, I don't have the bandwidth right now to review your change :-( In lack of review, I suggest you to just push it. -- ___

[issue14094] nt.realpath() should use GetFinalPathNameByHandle() when available

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Python 3 now uses GetFinalPathNameByHandle()! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I lost track of this issue. What is the status? @Martin: Do you want to convert your latest patch into a PR? -- ___ Python tracker

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

2017-06-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2516 ___ Python tracker ___ ___

[issue24039] Idle: some modal dialogs maximize, don't minimize

2017-06-27 Thread Louie Lu
Louie Lu added the comment: The bugs can be reproduce on MacOS, when click the minimize button, the search dialog will be minimize, then pop up to front again. The preference dialog have the same behavior on MacOS, but debugger dialog won't. And, Goto dialog will minimize with IDLE shell

[issue30422] Add roadmap.txt section to idlelib

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you are suggesting that at least you, Cheryl, and I work together on one 'area' to make fairly rapid, visible, and satisfying progress, I am all for that. But rather than focus on one of the 5 types of improvements for all components, I would rather focus

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: The initial issue, the "regrtest: Add --fail-env-changed option" feature, has been implemented in 2.7, 3.5; 3.6 and master branches. So I close this issue. Again, this issue got hijacked by the test_subprocess change, bpo-30448, because I wrote the wrong bpo

[issue30758] regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?à)

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_pydoc (regrtest?) hangs on some buildbots -> regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?à) ___ Python tracker

[issue30758] regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?)

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- title: regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?à) -> regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?) ___ Python tracker

[issue29512] regrtest refleak: implement bisection feature

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2509 ___ Python tracker ___ ___

[issue17942] IDLE Debugger: Improve GUI

2017-06-27 Thread Mark Roseman
Changes by Mark Roseman : -- pull_requests: +2510 ___ Python tracker ___ ___

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

2017-06-27 Thread Emily Morehouse
Emily Morehouse added the comment: Resolving this since the fix and backports have been merged in. -- ___ Python tracker ___

[issue30763] There is functionality bug in linecache library.

2017-06-27 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

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

2017-06-27 Thread Emily Morehouse
Emily Morehouse added the comment: And thank you to Serhiy and Victor for the assistance and attention to this issue! -- ___ Python tracker ___

[issue29910] Ctrl-D eats a character on IDLE

2017-06-27 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2504 ___ Python tracker ___

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-27 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: @haypo: thanks for the input! I will find datetime.timedelta() to be rather confusing because it does not explicitly tell me that the interval indeed is 0. Between datetime.timedelta(0) and datetime.timedelta(seconds=0), I am ambivalent but I prefer the

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

2017-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Many thanks for you Victor for your wonderful tool. -- ___ Python tracker ___

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

2017-06-27 Thread Emily Morehouse
Changes by Emily Morehouse : -- pull_requests: +2503 ___ Python tracker ___ ___

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: > 2. Factor out the negative sign: -timedelta(seconds=60) rather than > timedelta(days=-1, seconds=86340). Please don't do that. repr() is designed for developers, not end users. Don't make repr() implementation overcomplicated. Just dump raw data, tha's all.

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: Ooookay, the bug is now fix on all branches. Thanks Eric & Emily for your PR and thanks Serhiy for the help ;-) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30742] VS2015 support for 2.7 branch

2017-06-27 Thread Steve Dower
Steve Dower added the comment: There are *many* more fixes required than just these. We're not prepared to take the changes into 2.7 at this stage, and we don't want to encourage people to think that MSVC 14.0 or later are supported when we know that it's incomplete. I'd suggest creating a

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: What is your favorite repr() for datetime.timedelta(seconds=0)? Since it's hard to decide which unit is the best, I suggest to not write any unit: either "datetime.timedelta(0)" or "datetime.timedelta()" is fine with me. In fact,

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

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset eb3c52a0d273491e745e0cbff2b73900bb96aa45 by Victor Stinner (Emily Morehouse) in branch '3.5': [3.5] bpo-30769: Fix reference leak introduced in 7770394 (GH-2416) (#2447)

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: It seems like test_child_terminated_in_stopped_state() of test_subprocess on Python 2.7 fails on some macOS versions, see: http://bugs.python.org/issue30764#msg296966 Can someone please try to reproduce the bug? I'm unable to reproduce the bug on Darwin

[issue29304] dict: simplify lookup functions

2017-06-27 Thread INADA Naoki
INADA Naoki added the comment: Finally, I removed `freeslot` and all lookdict*() functions are much simpler in GH-2407. Macro bench doesn't show any significant performance change. I'll try to write micro benchmarks. -- ___ Python tracker

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have compared current behavior with you explanation and I agree on the enhancement. 'parens' seems more useful than 'default'. 'default' is a misnomer for current IDLE since the current default in config-extensions.def is 'expression', not 'default', I am

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0edffa3073b551ffeca34952529e7b292f1bd350 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (GH-2285) (#2443)

[issue28572] IDLE: add tests for config dialog.

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The macOS issue appears to be fixed. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue30674] IDLE: add docstrings to grep.py

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 65474b9d7a230943d4d3f1d7d51f77bb141240f0 by terryjreedy (csabella) in branch 'master': bpo-30674: IDLE: add docstrings to grep.py (#2213) https://github.com/python/cpython/commit/65474b9d7a230943d4d3f1d7d51f77bb141240f0 --

[issue30674] IDLE: add docstrings to grep.py

2017-06-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue30785] ast.c duplicates STR(CHILD)

2017-06-27 Thread Christopher Aycock
New submission from Christopher Aycock: The function alias_for_import_name() duplicates logic starting at Python/ast.c:3237 char *sch = STR(CHILD(n, i)); strcpy(s, STR(CHILD(n, i))); s += strlen(sch); *s++ = '.'; I assume the strcpy() is supposed to use the sch value from the

[issue30674] IDLE: add docstrings to grep.py

2017-06-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2482 ___ Python tracker ___ ___

[issue30674] IDLE: add docstrings to grep.py

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 39e501a2913eff047f7a644e2b20eb4278f97d50 by terryjreedy in branch '3.6': [3.6] bpo-30674: IDLE: add docstrings to grep.py (GH-2213) (#2434) https://github.com/python/cpython/commit/39e501a2913eff047f7a644e2b20eb4278f97d50 --

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

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tests should be tested on MacOS before being pushed. A possible issue is including constants that are different on different systems. See #28572 -- ___ Python tracker

[issue17960] Clarify the required behaviour of locals()

2017-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: Guido: perhaps I should run this update through the PEP process? Even though the actual proposed change is only to a pretty obscure edge case (having multiple concurrent live references to the result of locals() for a function namespace), the extra visibility

[issue21519] IDLE : Bug in keybinding validity check

2017-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the patch. The F3-missing bug has been fixed. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 305f333a447bc8cff62eece16fab7fe4a9bef71c by Victor Stinner in branch '2.7': bpo-30283: Add NEWS entry for backported regrtest (#2398) https://github.com/python/cpython/commit/305f333a447bc8cff62eece16fab7fe4a9bef71c --

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2486 ___ Python tracker ___ ___

[issue30383] [3.5] Backport regrtest features from master to Python 3.5

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: PR 2438 adds the NEWS entry. -- ___ Python tracker ___ ___ Python-bugs-list

  1   2   >