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

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The question about reusing ConfigParser (or IdleConfigParser) was a good one. I spent at least an hour looking again at the code and configparser doc. Observations: 1. Dropping 2.7 support allows us to use mapping protocol access: https://docs.python.org/3/lib

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou added the comment: > If I use the PyTime APIs, it will change the signature from > setitimer($module, which, seconds, interval=0.0, /) > to > setitimer($module, which, seconds, interval=None, /). > > I'm not sure that's ok in a bugfix release?

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please step back a bit and read the implementation of interrupt_main(): it calls PyErr_SetInterrupt() (in signalmodule.c!), which merely sets an internal flag saying SIGINT was received. So, there: PyErr_SetInterrupt() already behaves like SIGINT, *except* tha

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: > Also using the PyTime APIs will make it annoying to backport to 2.7 (which > isn't mandatory, of course). If you want to fix 2.7, I think that your simple test to round "manually" to 1 microsecond is enough. -- __

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that, since interrupt_main() claims to interrupt the main thread, it would be ok to use pthread_kill() to make sure it's indeed the C syscall running in the main thread that gets interruped. -- ___ Python track

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems _PyTime_ObjectToTimeval() would be better here. What do you think? -- ___ Python tracker ___ _

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also note that: - PyErr_SetInterrupt() has been setting the SIGINT since the beginning in 1995 (changeset 06d511dd by Guido) - interrupt_main() has been calling PyErr_SetInterrupt() since the beginning in 2003 (changeset a11e8461 by Kurt B Kaiser) so it stand

[issue30810] Germany made the upper case ß official. 'ß'.upper() should now return ẞ.

2017-06-30 Thread Tarek Saier
New submission from Tarek Saier: I'm not sure if Python just relies on some other resource for this (i.e. a C function), but as of yesterday the correct upper case of ß is ẞ: Official announcement in German: http://www.rechtschreibrat.com/DOX/rfdr_PM_2017-06-29_Aktualisierung_Regelwerk.pdf ---

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou added the comment: > It seems _PyTime_ObjectToTimeval() would be better here. What do you think? Oh, I forgot to document why _PyTime_ObjectToTimeval() still exists :-) The _PyTime_t type supports a range of [-292 years, +292 years]: it's enough

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Github links to the aforementioned changesets: "added PyErr_SetInterrupt(); NT ifdefs" https://github.com/python/cpython/commit/06d511ddf5fe16468a3abd53344fa283b9981d73 "Add interrupt_main() to thread module." https://github.com/python/cpython/commit/a11e846135

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I will just push the original fix then :-) -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 729780a810bbcb12b245a1b652302a601fc9f6fd by Antoine Pitrou in branch 'master': bpo-30807: signal.setitimer() may disable the timer by mistake (#2493) https://github.com/python/cpython/commit/729780a810bbcb12b245a1b652302a601fc9f6fd -- _

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: (I must admit your latest explanations lost me. Why shouldn't I use _PyTime_ObjectToTimeval(), which is a convenience function, and instead use several functions in a row to get the right conversion?) -- ___ Python

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: What is the behaviour of setitimer() when the timeout is negative? Is this behaviour well defined (portable)? -- ___ Python tracker ___ ___

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It "shall fail" apparently :-) http://pubs.opengroup.org/onlinepubs/9699919799/functions/setitimer.html -- ___ Python tracker ___ __

[issue30810] Germany made the upper case ß official. 'ß'.upper() should now return ẞ.

2017-06-30 Thread Tarek Saier
Tarek Saier added the comment: Small addition after I posted in excitement and now actually read the announcement: German now allows ẞ *as well as* SS when turning ß into upper case. -- ___ Python tracker ___

[issue30807] setitimer() can disable timer by mistake

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

[issue30807] setitimer() can disable timer by mistake

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

[issue30807] setitimer() can disable timer by mistake

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

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems fixing https://bugs.python.org/issue30807 has fixed the remaining buildbot issues. I will close once everything is settled. -- ___ Python tracker ___

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

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I will wait a bit and then backport this to 3.6. -- resolution: -> fixed stage: patch review -> backport needed versions: +Python 3.6 ___ Python tracker __

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: In the end, I'm glad I added a stress test (test_many_processes) as part of this issue. It helper uncover a serious reliability issues in CPython's delivery of signals (https://bugs.python.org/issue30703) and then triggered the discovery of a more minor bug i

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 6f3cb059fd1f3a57ffd70c9d54a394a85a6ea13d by Antoine Pitrou in branch '3.6': [3.6] bpo-30807: signal.setitimer() may disable the timer by mistake (GH-2493) (#2497) https://github.com/python/cpython/commit/6f3cb059fd1f3a57ffd70c9d54a394a85a6ea13d

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 5741b70acf88846a0d3b2d348535f250577b2df6 by Antoine Pitrou in branch '3.5': [3.5] bpo-30807: signal.setitimer() may disable the timer by mistake (GH-2493) (#2498) https://github.com/python/cpython/commit/5741b70acf88846a0d3b2d348535f250577b2df6

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset a45a99b47ff241ce0ae2f0bba59b89e4e012d47c by Antoine Pitrou in branch '2.7': [2.7] bpo-30807: signal.setitimer() may disable the timer by mistake (GH-2493) (#2499) https://github.com/python/cpython/commit/a45a99b47ff241ce0ae2f0bba59b89e4e012d47c

[issue30807] setitimer() can disable timer by mistake

2017-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

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

[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2017-06-30 Thread Antony Lee
New submission from Antony Lee: Python 3.6.1, virtualenv 15.1.0 (Arch Linux, distro packages) ``` export PIP_CONFIG_FILE=/dev/null # just to be sure # python -mvirtualenv outer-env # using /usr/bin/python(3) python2 -mvirtualenv outer-env # using /usr/bin/python(3) source outer-env/bin/activa

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset b9030674624c181d6e9047cdb14ad65bb6c84c66 by Victor Stinner in branch 'master': bpo-30280: Cleanup threads in ayncio tests (#2501) https://github.com/python/cpython/commit/b9030674624c181d6e9047cdb14ad65bb6c84c66 -- _

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: The commit b9030674624c181d6e9047cdb14ad65bb6c84c66 fixes one leaking thread. I don't know if it's enough. Koobs gave me a SSH access to his FreeBSD buildbots (9, 10 and CURRENT), but I failed to reproduce the warning issue :-( I tried to run my system_load.py

[issue30812] Running test_warnings twice fails

2017-06-30 Thread STINNER Victor
New submission from STINNER Victor: Example on Python 3.6: haypo@selma$ ./python -m test test_warnings test_warnings Run tests sequentially 0:00:00 load avg: 1.74 [1/2] test_warnings 0:00:01 load avg: 1.68 [2/2] test_warnings /home/haypo/prog/python/3.6/Lib/test/test_warnings/__init__.py:902:

[issue30810] Germany made the upper case ß official. 'ß'.upper() should now return ẞ.

2017-06-30 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +lemburg priority: normal -> low type: -> enhancement versions: +Python 3.7 ___ Python tracker ___

[issue30812] Running test_warnings twice fails

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: I saw this bug on AMD64 Windows8.1 Refleaks 3.6: "test test_warnings failed -- multiple errors occurred; run in verbose mode for details" http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.6/builds/38/steps/test/logs/stdio The goal is to

[issue30813] test_unittest fails when hunting reference leaks

2017-06-30 Thread STINNER Victor
New submission from STINNER Victor: Example of Python 3.5 (same error on master): haypo@selma$ ./python -m test -R 3:3 -v test_unittest (...) == ERROR: test_discover_with_init_module_that_raises_SkipTest_on_import (unittest.te

[issue16662] load_tests not invoked in package/__init__.py

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

[issue11798] Test cases not garbage collected after run

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

[issue16935] unittest should understand SkipTest at import time during test discovery

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

[issue30813] test_unittest fails when hunting reference leaks

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

[issue30813] test_unittest fails when hunting reference leaks

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Using --huntrleaks in regrtest runs this statement in regrtest: unittest.BaseTestSuite._cleanup = False This line comes from bpo-11798. https://github.com/python/cpython/pull/2502 fixes this issue. -- ___ Python

[issue6691] Support for nested classes and function for pyclbr

2017-06-30 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2566 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30812] Running test_warnings twice fails

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

[issue26568] Add a new warnings.showwarnmsg() function taking a warnings.WarningMessage object

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

[issue30812] Running test_warnings twice fails

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Oh cool, my bisect tool identified the bug! haypo@selma$ ./python -m test.bisect -o bisect test_warnings test_warnings (...) Tests (1): * test.test_warnings._WarningsTests.test_showwarnmsg_missing (...) Bisection completed in 14 iterations and 0:00:14 So the

[issue16662] load_tests not invoked in package/__init__.py

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 by Victor Stinner in branch 'master': bpo-30813: Fix unittest when hunting refleaks (#2502) https://github.com/python/cpython/commit/e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 -- __

[issue16935] unittest should understand SkipTest at import time during test discovery

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 by Victor Stinner in branch 'master': bpo-30813: Fix unittest when hunting refleaks (#2502) https://github.com/python/cpython/commit/e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 -- nosy: +haypo _

[issue11798] Test cases not garbage collected after run

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 by Victor Stinner in branch 'master': bpo-30813: Fix unittest when hunting refleaks (#2502) https://github.com/python/cpython/commit/e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 -- __

[issue30813] test_unittest fails when hunting reference leaks

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 by Victor Stinner in branch 'master': bpo-30813: Fix unittest when hunting refleaks (#2502) https://github.com/python/cpython/commit/e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3 -- __

[issue30813] test_unittest fails when hunting reference leaks

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

[issue16935] unittest should understand SkipTest at import time during test discovery

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

[issue11798] Test cases not garbage collected after run

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

[issue16662] load_tests not invoked in package/__init__.py

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

[issue6691] Support for nested classes and function for pyclbr

2017-06-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've created the PR. I had actually manually looked at classbrowser yesterday. It still works just as it did before this change. The patch in 1612262 is needed for it to loop through the new Object class. Also, for reference, the test that didn't work initi

[issue30813] test_unittest fails when hunting reference leaks

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

[issue11798] Test cases not garbage collected after run

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

[issue16935] unittest should understand SkipTest at import time during test discovery

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

[issue16662] load_tests not invoked in package/__init__.py

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

[issue30812] Running test_warnings twice fails

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7eebeb8fb84e2a9cb73903a08c59cf1d3b32cee0 by Victor Stinner in branch 'master': bpo-30812: Fix test_warnings, restore _showwarnmsg (#2504) https://github.com/python/cpython/commit/7eebeb8fb84e2a9cb73903a08c59cf1d3b32cee0 -- _

[issue26568] Add a new warnings.showwarnmsg() function taking a warnings.WarningMessage object

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7eebeb8fb84e2a9cb73903a08c59cf1d3b32cee0 by Victor Stinner in branch 'master': bpo-30812: Fix test_warnings, restore _showwarnmsg (#2504) https://github.com/python/cpython/commit/7eebeb8fb84e2a9cb73903a08c59cf1d3b32cee0 -- _

[issue26568] Add a new warnings.showwarnmsg() function taking a warnings.WarningMessage object

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

[issue30812] Running test_warnings twice fails

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

[issue30803] Truth value of sets not properly documented

2017-06-30 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2579 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30814] Import dotted name as alias breaks with concurrency

2017-06-30 Thread Samuele Santi
New submission from Samuele Santi: I noticed this weird behavior in Python 3.6: Apparently ``import package.module as _alias`` fails in a threaded environment, sometimes raising an ``ImportError``, seemingly at random. Everything seems to be working perfectly fine: - On 3.5 and lower - When *

[issue26568] Add a new warnings.showwarnmsg() function taking a warnings.WarningMessage object

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset d0aac5da59b1bbd113e6081d7c807ad5bced8a05 by Victor Stinner in branch '3.6': bpo-30812: Fix test_warnings, restore _showwarnmsg (#2504) (#2507) https://github.com/python/cpython/commit/d0aac5da59b1bbd113e6081d7c807ad5bced8a05 --

[issue16935] unittest should understand SkipTest at import time during test discovery

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 by Victor Stinner in branch '3.5': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2506) https://github.com/python/cpython/commit/714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 -- _

[issue30812] Running test_warnings twice fails

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset d0aac5da59b1bbd113e6081d7c807ad5bced8a05 by Victor Stinner in branch '3.6': bpo-30812: Fix test_warnings, restore _showwarnmsg (#2504) (#2507) https://github.com/python/cpython/commit/d0aac5da59b1bbd113e6081d7c807ad5bced8a05 --

[issue16662] load_tests not invoked in package/__init__.py

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 by Victor Stinner in branch '3.5': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2506) https://github.com/python/cpython/commit/714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 -- _

[issue16935] unittest should understand SkipTest at import time during test discovery

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 by Victor Stinner in branch '3.6': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2505) https://github.com/python/cpython/commit/22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 -- _

[issue16662] load_tests not invoked in package/__init__.py

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 by Victor Stinner in branch '3.6': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2505) https://github.com/python/cpython/commit/22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 -- _

[issue11798] Test cases not garbage collected after run

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 by Victor Stinner in branch '3.5': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2506) https://github.com/python/cpython/commit/714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 -- _

[issue30813] test_unittest fails when hunting reference leaks

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 by Victor Stinner in branch '3.5': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2506) https://github.com/python/cpython/commit/714afccf6e7644d21ce1a39e90bf83cb0c9a74f1 -- _

[issue11798] Test cases not garbage collected after run

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 by Victor Stinner in branch '3.6': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2505) https://github.com/python/cpython/commit/22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 -- _

[issue30813] test_unittest fails when hunting reference leaks

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 by Victor Stinner in branch '3.6': bpo-30813: Fix unittest when hunting refleaks (#2502) (#2505) https://github.com/python/cpython/commit/22d4e8fb99b16657eabfe7f9fee2d40a5ef882f6 -- _

[issue30803] Truth value of sets not properly documented

2017-06-30 Thread Peter Thomassen
Peter Thomassen added the comment: I submitted a PR on github, and signed the CLA before doing so. (I double-checked my bpo username in the CLA, and my github username in the bpo profile.) Still, the bot says I need to sign the CLA. I'm not sure what to do? --

[issue30812] Running test_warnings twice fails

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue30813] test_unittest fails when hunting reference leaks

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue30810] Germany made the upper case ß official. 'ß'.upper() should now return ẞ.

2017-06-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: Although I'm not German, I'm rather pleased by this. Nevertheless I don't think we actually need to do anything yet. I think it is more important that Python follows the standard Unicode behaviour. If and when Unicode recommend that 'ß'.upper() returns '\N{LA

[issue30810] Germany made the upper case ß official. 'ß'.upper() should now return ẞ.

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Python doesn't make politic :-) Python implements Unicode standard. Python 3.7 currently uses Unicode 10.0: haypo@selma$ ./python Python 3.7.0a0 (heads/master:b903067, Jun 30 2017, 11:49:25) >>> unicodedata.unidata_version '10.0.0' It seems like Unicode 10 st

[issue11798] Test cases not garbage collected after run

2017-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue16935] unittest should understand SkipTest at import time during test discovery

2017-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread INADA Naoki
New submission from INADA Naoki: >From PEP393, PyUnicode_AsUCS4 is inefficient. And C implementation of io.StringIO() uses it. That's why Python 3 is slower than Python 2 on logging_format and logging_simple benchmarks. https://mail.python.org/pipermail/speed/2017-February/000503.html Maybe, i

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: There was a discussion to use an adaptative implementation depending *how* the API is used. Write only is different than write, seek back, write, read, seek, etc. The idea was used unicode writer when it's the most efficient, write only, and switch to somethi

[issue30814] Import dotted name as alias breaks with concurrency

2017-06-30 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread Bhavishya
Changes by Bhavishya : -- nosy: +bhavishya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: I rewrote my old benchmarks using the new perf module API: bench_stringio3.py. This benchmark suite now takes forever with perf, since perf computes much more values and the suite contains a total of 108 benchmarks! Most lines should be commented to take a rea

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: According to my result computed 5 times ago, the most signicant different was on *reading* from StringIO which contains USC1 text: reader long lines ascii | 103 us (*) | 33.4 us (-68%) reader long lines latin1 | 105 us (*) | 34.2 us

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread INADA Naoki
INADA Naoki added the comment: I'm sorry, it's my mistake. I used vmprof on mac and I thought as_ucs4 is bottleneck. But vmprof on Linux (and perf) shows totally different result. Maybe, current vmprof doesn't work well for native code on macOS. -- resolution: -> not a bug stage: ->

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: > I rewrote my old benchmarks using the new perf module API: bench_stringio3.py. WTF? The file is not attached to this issue, but I removed it locally :-( It seems like Roundup cleared the file field of this form when I got a conflict when I wanted to post my

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread INADA Naoki
INADA Naoki added the comment: FYI, https://github.com/python/performance/pull/27 will fix performance regression. Python 3 performance is similar to Python 2 after s/warn/warning/ -- ___ Python tracker __

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread Bhavishya
Bhavishya added the comment: I'm running archlinux(on mac...not very confident of my system though I tried cpu isolation with "isolcpus") so if please anyone else also can run itand confirm if it actually helps. Thanks. On Fri, Jun 30, 2017 at 7:03 PM, INADA Naoki wrote: > > INADA Naoki ad

[issue30815] StringIO uses inefficient PyUnicode_AsUCS4

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: "FYI, https://github.com/python/performance/pull/27 will fix performance regression. Python 3 performance is similar to Python 2 after s/warn/warning/" I was surprised to see that Logger.warn() is slower than Logger.warning()! It is because warn() emits a depr

[issue13821] misleading return from isidentifier

2017-06-30 Thread R. David Murray
R. David Murray added the comment: See also issue 30772 about the deeper problem. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Charles Wohlganger
Charles Wohlganger added the comment: The pull request has been changed to only have the theme element able to be selected. #22705 hasn't had activity in a few years. Is there something I can do to move it along? -- ___ Python tracker

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

2017-06-30 Thread Matt Billenstein
Matt Billenstein added the comment: Verified this by letting the test_many_processes loop overnight (master@42bc8beadd49)-- 34k passes later and no hangs. Nice work! -- ___ Python tracker

[issue30816] test_open() of test_eintr timeout after 10 min on "x86-64 El Capitan 3.x"

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_open() of test_eintr timeout after 10 min -> test_open() of test_eintr timeout after 10 min on "x86-64 El Capitan 3.x" ___ Python tracker

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-06-30 Thread Xavier de Gaye
New submission from Xavier de Gaye: To reproduce the abort (the set_nomemory() function is being added to _testcapi in issue 30695): $ ./python memerr.py python: Objects/call.c:89: _PyObject_FastCallDict: Assertion `!PyErr_Occurred()' failed. Aborted (core dumped) The corresponding backtrace:

[issue30695] add a nomemory_allocator to the _testcapi module

2017-06-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Oh, I'm curious about that one :-) This is issue 30817. -- ___ Python tracker ___ ___ Python-bugs

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Can someone please give the list of failing tests of the Python master branch on HP-UX? -- ___ Python tracker ___ _

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread Robert Boehne
Robert Boehne added the comment: I'd love to have this fix backported to 3.5 and 3.6. It seems trivial to do, and I'd be happy to do it myself. -- nosy: +Robert Boehne ___ Python tracker _

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-06-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: With pyerr_printex.patch we get the following correct results (rc=120 is set by Py_Main() after Py_FinalizeEx() returns with an error): $ ./python memerr.py 5 12 set_nomemory(0, 5) result = _PythonRunResult(rc=1, out=b'', err=b'MemoryError\n\nDuring handling o

  1   2   >