[issue33597] Compact PyGC_Head

2018-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are also problems with func_name and func_qualname. func_name can be an instance of the str subtype and has __dict__. func_qualname seems can be of any type. Even if they would be exact strings, excluding them from tp_traverse will break functions t

[issue33597] Compact PyGC_Head

2018-06-01 Thread INADA Naoki
INADA Naoki added the comment: You're right. I'll revert the optimization completely... -- ___ Python tracker ___ ___ Python-bugs-

[issue33606] Improve logging performance when logger disabled

2018-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: The check in handle() should remain, because there are some scenarios where handle is called directly (e.g. when receiving events over a socket and dispatching to handlers). So the change would just be to add an additional check in isEnabledFor(). --

[issue27902] pstats.Stats: strip_dirs() method cannot handle file paths from different OS

2018-06-01 Thread Tobias Kunze
Change by Tobias Kunze : -- keywords: +patch pull_requests: +6924 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyth

[issue33606] Improve logging performance when logger disabled

2018-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 6e3ca645e71dd021fead5a70dc06d9b663612e3a by Vinay Sajip (Timo Furrer) in branch 'master': bpo-33606: improve logging performance when logger is disabled (GH-7285) https://github.com/python/cpython/commit/6e3ca645e71dd021fead5a70dc06d9b663612e3a -

[issue33606] Improve logging performance when logger disabled

2018-06-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue32519] venv API docs - symlinks default incorrect

2018-06-01 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +6925 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-06-01 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +6926 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-06-01 Thread Juuso Lehtivarjo
New submission from Juuso Lehtivarjo : In python 3.6.5: hashlib blake2b/blake2s constructors do not recognize 'data' keyword. Try the following: from hashlib import blake2b print (blake2b(b"foobar").hexdigest()) # works print (blake2b(data=b"foobar").hexdigest()) # TypeError: 'data' is an inva

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: > Hey there! I saw your pull requests to python3.6 and have been merged, so > what should we do now? Just update the python to higher a version? Oh. My changes are just to add debug traces in the "python3 -m test.pythoninfo" command which is used on buildbot

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7ad16eb51c7871320edb789ddb6184c6c76304b0 by Victor Stinner in branch 'master': bpo-33718: regrtest: enhance "running:" formatting (GH-7292) https://github.com/python/cpython/commit/7ad16eb51c7871320edb789ddb6184c6c76304b0 -- _

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset ef634b5b26f14d942768069fa23f9791a06ff37e by Victor Stinner in branch 'master': bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293) https://github.com/python/cpython/commit/ef634b5b26f14d942768069fa23f9791a06ff37e -- _

[issue32519] venv API docs - symlinks default incorrect

2018-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset c0d341d49b3ffc8b0037e501c246271be9c69f55 by Vinay Sajip in branch 'master': bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) https://github.com/python/cpython/commit/c0d341d49b3ffc8b0037e501c246271be9c69f55

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 23cee80cfade1a9019c52b3a17d8e5c1b5db17e2 by Vinay Sajip in branch 'master': bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297) https://github.com/python/cpython/commit/23cee80cfade1a9019c52b3a17d8e5c1b5d

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6928 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6927 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-06-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue32519] venv API docs - symlinks default incorrect

2018-06-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue32519] venv API docs - symlinks default incorrect

2018-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6929 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32519] venv API docs - symlinks default incorrect

2018-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6930 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6932 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6931 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6933 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6934 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6935 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6936 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-06-01 Thread Eric V. Smith
Eric V. Smith added the comment: To be clear: os.path.exists('a\x00b') raises ValueError on both Windows and Linux. I think we should just document this behavior and not change it. -- nosy: +eric.smith ___ Python tracker

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6937 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset e905c84494526363086f66a979e317e155bf9536 by Antoine Pitrou (pkerling) in branch 'master': bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) https://github.com/python/cpython/commit/e905c84494526363086f66a979e317e155bf9536

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6938 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6939 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.8 -Python 2.7, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd rather not backport this to 2.7 as it's quite late in the maintenance cycle and I'd like to avoid any regressions there. -- ___ Python tracker _

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: > I'd rather not backport this to 2.7 as it's quite late in the maintenance > cycle and I'd like to avoid any regressions there. Since it's a subtle behavior change and the PR doesn't add a flag to opt-in for the old behaviour, I'm not sure about backporting

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So if an application has its own signal handler, Python replaces it... You have it backwards. Please read the bug report. -- ___ Python tracker _

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For 3.7, we are very close to the final release. It doesn't give much time to > users to test the new behavior That's a fair point. What's the procedure here? If I backport the fix to the 3.7 branch, will it go straight into the 3.7.0 release or will it

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: > You have it backwards. Please read the bug report. I'm confused by the NEWS entry: +Fixed reset of the SIGINT handler to SIG_DFL on interpreter shutdown even +when there was a custom handler set previously. Patch by Philipp Kerling. I read it as Python no

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 466aae545786d2db5ac27f243c5d77aeb7a5958e by Victor Stinner in branch '3.7': bpo-33692: Update pythoninfo from master (GH-7298) https://github.com/python/cpython/commit/466aae545786d2db5ac27f243c5d77aeb7a5958e -- __

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset b9afe645c4926b1f086f30ba9bd00671b0b8b55e by Victor Stinner in branch '3.6': bpo-33692: Update pythoninfo from master (GH-7301) https://github.com/python/cpython/commit/b9afe645c4926b1f086f30ba9bd00671b0b8b55e -- __

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 466aae545786d2db5ac27f243c5d77aeb7a5958e by Victor Stinner in branch '3.7': bpo-33692: Update pythoninfo from master (GH-7298) https://github.com/python/cpython/commit/466aae545786d2db5ac27f243c5d77aeb7a5958e -- __

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset b9afe645c4926b1f086f30ba9bd00671b0b8b55e by Victor Stinner in branch '3.6': bpo-33692: Update pythoninfo from master (GH-7301) https://github.com/python/cpython/commit/b9afe645c4926b1f086f30ba9bd00671b0b8b55e -- __

[issue33597] Compact PyGC_Head

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: It seems like the PR 7043 has no big impact on performances. Sometimes, it's a little bit faster, sometimes it's a little bit slower. The trend is a little bit more in the "faster" side, but it's not very obvious. I approved PR 7043. It shouldn't break the w

[issue33730] string format 'n' produces numbers with incorrect precision

2018-06-01 Thread Jakub Szewczyk
New submission from Jakub Szewczyk : Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> print ("{:.2n}".format(1.89)) 1.9 >>> print ("{:.2f}".format(1.89)) 1.89 -- com

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3dd802d8f287e8f11848cfb068cf73000a9d0d94 by Victor Stinner in branch '3.7': bpo-33718: regrtest: update from master (GH-7305) https://github.com/python/cpython/commit/3dd802d8f287e8f11848cfb068cf73000a9d0d94 -- ___

[issue33692] Chinese characters issue with input() function

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0f642620a8a85ef0b5482f253205baf1865e05b2 by Victor Stinner in branch '2.7': bpo-33692: Update pythoninfo from master (GH-7304) https://github.com/python/cpython/commit/0f642620a8a85ef0b5482f253205baf1865e05b2 -- __

[issue31009] test_multiprocessing_spawn hangs randomly on AMD64 Windows10 3.x and AMD64 Windows8 3.x

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6940 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0f642620a8a85ef0b5482f253205baf1865e05b2 by Victor Stinner in branch '2.7': bpo-33692: Update pythoninfo from master (GH-7304) https://github.com/python/cpython/commit/0f642620a8a85ef0b5482f253205baf1865e05b2 -- __

[issue33730] string format 'n' produces numbers with incorrect precision

2018-06-01 Thread Eric V. Smith
Eric V. Smith added the comment: 'n' is defined as the same as 'g', for floats (modulo the locale-specific characters, of course): >>> format(1.89, '.2n') '1.9' >>> format(1.89, '.2g') '1.9' -- ___ Python tracker

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Ned Deily
Ned Deily added the comment: > What's the procedure here? If I backport the fix to the 3.7 branch, will it > go straight into the 3.7.0 release or will it be deferred to 3.7.1?? "All fixes that have been merged into the 3.7 branch as of cutoff tomorrow will be in 3.7.0b5 and fixes merged aft

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I think it go into 3.7.0 after all. 3.7.1 wouldn't get more testing before it's released anyway. -- ___ Python tracker ___

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-06-01 Thread Ned Deily
Change by Ned Deily : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 623b439abebc913bc416d92f38fe371e84b0276b by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7306) https://github.com/python/cpython/commit/623b439abebc913bc416

[issue33725] High Sierra hang when using multi-processing

2018-06-01 Thread Ned Deily
Ned Deily added the comment: (As a side note, the macOS Pythons provided by python.org installers should not behave differently on macOS 10.13 High Sierra since none of them are built with a 10.13 SDK.) -- nosy: +davin, pitrou ___ Python tracker

[issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close()

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6941 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close()

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6942 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33725] High Sierra hang when using multi-processing

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I understand that Apple, with their limited resources, cannot spend expensive engineer manpower on improving POSIX support in macOS . In any case, I'm unsure this bug can be fixed at the Python level. If macOS APIs don't like fork(), they don't like fork(),

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 1d5198fd41ad9185e9e6b3aa595769c3693d57be by Antoine Pitrou (Miss Islington (bot)) in branch '3.6': bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7307) https://github.com/python/cpython/commit/1d5198fd41ad9185e9e6

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33597] Compact PyGC_Head

2018-06-01 Thread INADA Naoki
INADA Naoki added the comment: @Victor Thanks for review. Do you think buildbots for master branch are sound enough to commit this change? Or should I wait one more week? http://buildbot.python.org/all/#/grid?branch=master -- ___ Python tracker

[issue33597] Compact PyGC_Head

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: > Do you think buildbots for master branch are sound enough to commit this > change? Or should I wait one more week? CIs on master are stable again. Since PyGC_Head is a key feature of Python, I would suggest you to wait at least a second approval of another

[issue31009] test_multiprocessing_spawn hangs randomly on AMD64 Windows10 3.x and AMD64 Windows8 3.x

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 99ba73d1188f4d52d2c741c26267da00a008f379 by Victor Stinner in branch '3.6': bpo-31009: Move fd_count() to test.support (#7308) https://github.com/python/cpython/commit/99ba73d1188f4d52d2c741c26267da00a008f379 -- __

[issue31479] Always reset the signal alarm in tests

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6943 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks pkerling for your bug report and your fix! -- ___ Python tracker ___ ___ Python-bugs-list

[issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close()

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 29ae9dc7c30b23055fdd39bec4c8f19a28392351 by Victor Stinner in branch '3.7': bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7309) https://github.com/python/cpython/commit/29ae9dc7c30b23055fdd39bec4c8f19a28392351

[issue31479] Always reset the signal alarm in tests

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6944 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31234] Make support.threading_cleanup() stricter

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6945 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close()

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 829fcd0612049b21a6d3802b3306705218255f6b by Victor Stinner in branch 'master': bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7310) https://github.com/python/cpython/commit/829fcd0612049b21a6d3802b3306705218255f6b -

[issue33730] string format 'n' produces numbers with incorrect precision

2018-06-01 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. If you still think there's an issue, we can re-open it. -- assignee: -> eric.smith components: +Interpreter Core -Extension Modules resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue33627] test-complex of test_numeric_tower.test_complex() crashes intermittently on Ubuntu buildbots

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: The test also crashed on x86 Gentoo Non-Debug with X 3.7: http://buildbot.python.org/all/#/builders/115/builds/308 0:03:11 load avg: 4.82 [ 77/415/1] test_numeric_tower crashed (Exit code -11) Fatal Python error: Segmentation fault Current thread 0xb74e9700

[issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close()

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6946 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-06-01 Thread Jakub Szewczyk
New submission from Jakub Szewczyk : .2f produces a string representation of a float rounded up to 2 significant digits. >>> print ("{:.2f}".format(1.891)) 1.89 However, it does not respect locale. There is no counterpart of 'f' that would respect locale. There is 'n', but because it follows

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6947 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33732] Python 2.7.15: xml.sax.parse() closes file objects passed to it

2018-06-01 Thread Gibson Fahnestock
New submission from Gibson Fahnestock : Sorry if this is a duplicate, I didn't find anything. We hit some issues with this change: - Python Bug: https://bugs.python.org/issue30264 - Github PRs: https://github.com/python/cpython/pull/1451 and https://github.com/python/cpython/pull/1476 It's po

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: I saw one new test_ignore() failure on Travis CI in my 3.6 PR, whereas 3.6 already uses PIPE_MAX_SIZE for test_ignore(). https://github.com/python/cpython/pull/7315/ https://travis-ci.org/python/cpython/jobs/386637729 Hum, test_ignore() uses PIPE_MAX_SIZE, w

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-06-01 Thread Eric V. Smith
Eric V. Smith added the comment: You can always use the locale module, although of course that's not as convenient: >>> locale.format('%.2f', 1.891) '1.89' I'm open to suggests on backward compatible ways to implement this for python 3.8. It would probably involve a new letter, and need to

[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-01 Thread STINNER Victor
New submission from STINNER Victor : Many Python unit tests require a blocking send into a pipe or a socket. support.PIPE_MAX_SIZE (4 MiB +1 B) has been added for pipes in bpo-17835: sending PIPE_MAX_SIZE into a pipe must block. On Linux, the maximum size of a pipe is /proc/sys/fs/pipe-max-si

[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-01 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue31479] Always reset the signal alarm in tests

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 95681c7a7ddd436ba7d6c10d1202c33dd6bd648b by Victor Stinner in branch '3.6': bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7312) https://github.com/python/cpython/commit/95681c7a7ddd436ba7d6c10d1202c33dd6bd648b -- ___

[issue31479] Always reset the signal alarm in tests

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3604b2390a8986117c35d661d3d3a5977dfe8260 by Victor Stinner in branch '2.7': bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7314) https://github.com/python/cpython/commit/3604b2390a8986117c35d661d3d3a5977dfe8260 -- ___

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread pkerling
pkerling <[email protected]> added the comment: Thanks! I'm a bit disappointed that it won't make it into 2.7, but I can understand the decision. To give some context: I came across this while working on Kodi and noticing that it does not shutdown cleanly via Ctrl+C or SIGTERM. After investi

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm nosy'ing Benjamin, the 2.7 release manager, in case he wants to comment on desirability of this bugfix in Python 2.7. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: > https://travis-ci.org/python/cpython/jobs/386637729 I added some debug traces: test_ignore (test.test_multiprocessing_forkserver.TestIgnoreEINTR) ... socket[fd=4].SO_RCVBUF 212992 socket[fd=4].SO_SNDBUF 212992 socket[fd=7].SO_RCVBUF 212992 socket[fd=7].SO_S

[issue31234] Make support.threading_cleanup() stricter

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5dbb48aaac0ff74648b355ebdde222856004b1ef by Victor Stinner in branch '3.6': [3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) (GH-7315) https://github.com/python/cpython/commit/5dbb48aaac0ff74648b355ebdde222856004b1ef --

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6948 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue33540] socketserver: Add an opt-in option to get Python 3.6 behaviour on server_close()

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1381bfe9776e64fed45935efbe42a7ee8298bd44 by Victor Stinner in branch '3.6': bpo-33540, socketserver: Add _block_on_close for tests (GH-7317) https://github.com/python/cpython/commit/1381bfe9776e64fed45935efbe42a7ee8298bd44 --

[issue33732] Python 2.7.15: xml.sax.parse() closes file objects passed to it

2018-06-01 Thread Gibson Fahnestock
Gibson Fahnestock added the comment: As an addendum, I note that other parsers, like: parser = lxml.etree.XMLParser(compact=False) etree.parse(some_fd, parser).find('some_text').text do not close the fd they are given. -- ___ Python tracke

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 252f6abe0a9430f4ae7588c0cb50a6ff141bebe3 by Victor Stinner in branch 'master': bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319) https://github.com/python/cpython/commit/252f6abe0a9430f4ae7588c0cb50a6ff141bebe3 --

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6949 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: I modified test_ignore() to use support.SOCK_MAX_SIZE, but honestly, I'm not convinced that it will be the issue. I applied my change anyway, just to check if the issue comes from the size, or if it's something else. -- _

[issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout

2018-06-01 Thread Yury Selivanov
New submission from Yury Selivanov : I've ported asyncio's sslproto.py to uvloop and released a new major version of it yesterday. Hynek discovered that the default SSL handshake timeout (10 seconds currently) is too low, and that there's a critical code path that is broken because it assume

[issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout

2018-06-01 Thread Yury Selivanov
Yury Selivanov added the comment: For the reference, we added SSL handshake timeout a while ago in bpo-29970. -- ___ Python tracker ___ ___

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: The test also failed on AMD64 Windows8.1 Refleaks 3.7. This buildbot is also very slow because it runs reference leak hunting. It confirms that the remaining issue is a race condition which is only seen when the system becomes slow. http://buildbot.python.o

[issue33734] asyncio/ssl: Fix AttributeError, increase default handshake timeout

2018-06-01 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +6950 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7

2018-06-01 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/132/builds/154 test_multiprocessing_spawn leaked [1, 2, 1] memory blocks, sum=4 -- components: Tests, Windows messages: 318425 nosy: paul.moore, steve.dower, tim.golden, vstinner, zach.ware priority: normal

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread miss-islington
miss-islington added the comment: New changeset 63fa8db58c349f985d75139e6545cfddf067c07b by Miss Islington (bot) in branch '3.7': bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319) https://github.com/python/cpython/commit/63fa8db58c349f985d75139e6545cfddf067c07b

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6951 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7

2018-06-01 Thread STINNER Victor
STINNER Victor added the comment: When running "python -m test -R 2:3 test_multiprocessing_forkserver" on Windows, I saw some warnings about dangling threads. It may explain this issue. -- ___ Python tracker __

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6952 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-01 Thread Nathaniel Smith
Nathaniel Smith added the comment: Note that in my experience, socket systems treat the buffer sizes as more like... rough guidelines. Especially Windows and Linux. Which doesn't mean they're not useful to expose somehow, but you can't assume that just because you set the buffer to size X me

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

2018-06-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6953 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

  1   2   >