[issue35619] Support custom data descriptors in pydoc

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset efcf82f94572abcdbd70336e0b2c3d0f4df280bc by Serhiy Storchaka in branch 'master': bpo-35619: Improve support of custom data descriptors in help() and pydoc. (GH-11366) https://github.com/python/cpython/commit/efcf82f94572abcdbd70336e0b2c3d0f4d

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591 by Serhiy Storchaka in branch 'master': bpo-29707: Document that os.path.ismount() is not able to reliable detect bind mounts. (GH-11238) https://github.com/python/cpython/commit/32ebd8508d4807a7c85d2e

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11199, 11200 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11199 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11199, 11200, 11201 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35619] Support custom data descriptors in pydoc

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington
miss-islington added the comment: New changeset a4aade2cf82dfa889c2bdad9fa0aa874f43c0bf8 by Miss Islington (bot) in branch '3.7': bpo-29707: Document that os.path.ismount() is not able to reliable detect bind mounts. (GH-11238) https://github.com/python/cpython/commit/a4aade2cf82dfa889c2bdad

[issue32146] multiprocessing freeze_support needed outside win32

2019-01-15 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35741] unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") doesn't work

2019-01-15 Thread jianxu3
New submission from jianxu3 : Whether or not the HAVE_STRUCT_TM_TM_ZONE is defined, _STRUCT_TM_ITEMS always equal to 11. It is initialized at PyInit_time(void). PyModule_AddIntConstant(m, "_STRUCT_TM_ITEMS", 11); If I modify it like this: #ifdef HAVE_STRUCT_TM_TM_ZONE PyModule_AddIntConstant(m

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen
New submission from Chih-Hsuan Yen : On git-master (32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591) of CPython, 3 tests of test_builtin fails: == ERROR: test_envar_unimportable (test.test_builtin.TestBreakpoint) (envar='.')

[issue35537] use os.posix_spawn in subprocess

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > FYI, I'm researching how to use vfork(), focusing on Linux, but I'll need > more time to study the current state of affairs of libcs. Using os.posix_spawn() in pure Python is a first step forward :-) > (...) There are also additional subtle issues related

[issue35537] use os.posix_spawn in subprocess

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: If someone wants to implement a runtime check for musl, here is an heuristic based on ldd output and libc filenames: https://github.com/lovell/detect-libc/blob/master/lib/detect-libc.js var GLIBC = 'glibc'; var MUSL = 'musl'; // Try ldd var ldd = sp

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-15 Thread Michael Felt
Michael Felt added the comment: On 07/01/2019 15:46, STINNER Victor wrote: > STINNER Victor added the comment: > > Since you are getting indentation error, I'm not sure about your test. Can > you please apply the patch below and run again test_eintr? Does it still fail > with PermissionError

[issue26226] Test failures with non-ascii character in hostname on Windows

2019-01-15 Thread Jack
Jack added the comment: Python not working.. -- nosy: +Jack01 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. This change broke test_builtin: see bpo-35742. I can reproduce the test failure on my Fedoea 29 using: ./python -m test -v test_builtin -m TestBreakpoint -- nosy: +vstinner resolution: fixed -> status: closed -> open ___

[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread Ori Avtalion
New submission from Ori Avtalion : When an OSError exception is raised in __del__, both Python 2 and 3 print the "Exception ignored" message, but Python 3 also prints a traceback. This is similar to issue 22836, with dealt with errors in __repr__ while inside __del__. Test script: import os

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +11202 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11206, 11207 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > On AIX the test for flock() passes, but the test for lockf() fails: (...) I would prefer to simply skip the lockf() test rather than ignoring PermissionError for flock() and lockf() on all platforms. Can you please write a PR for that? There is no need to

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch pull_requests: +11202, 11203 stage: -> patch review ___ Python tracker ___

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11206 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch, patch, patch pull_requests: +11202, 11203, 11204, 11205 stage: -> patch review ___ Python tracker ___

[issue27423] Failed assertions when running test.test_os on Windows

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: This bug has been fixed in test_os or libregrtest, I don't recall, but it's now fixed ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch, patch pull_requests: +11202, 11203, 11204 stage: -> patch review ___ Python tracker ___ __

[issue22836] Broken "Exception ignored in:" message on exceptions in __repr__

2019-01-15 Thread Ori Avtalion
Ori Avtalion added the comment: I encountered a similar bug and reported it as issue 35743. -- nosy: +salty-horse ___ Python tracker ___ __

[issue27426] Encoding mismatch causes some tests to fail on Windows

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: I'm quite sure that this bug has been fixed in the meanwhile. If it still fails, please give more information about your configuration: ANSI code page, regional configuration, Windows version, etc. -- nosy: +vstinner resolution: -> fixed stage: patc

[issue26226] Test failures with non-ascii character in hostname on Windows

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that all issues have been fixed, but almost all of them are. I prefer to close this issue which has a long history and mentions very different bugs. If someone wants to continue the effort for better Unicode support on Windows with non-ASCII hos

[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 06f8b57212b2e2cd2e63af36cecdfa3075b324a2 by Serhiy Storchaka (Henry Chen) in branch 'master': bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559) https://github.com/python/cpython/commit/06f8b57212b2e2cd2e63af36cecdfa3075b324a2

[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11208 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Wow that's super fast! I can confirm the patch fixes the issue on my machine. Thanks! -- ___ Python tracker ___

[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11208, 11209 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: I don't understand why buildbots didn't scream and why the test didn't fail on Travis CI nor AppVeyor on https://github.com/python/cpython/pull/9457 -- nosy: +vstinner ___ Python tracker

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Found a test_builtin failure in the job for the relevant commit on Travis CI - https://travis-ci.org/python/cpython/jobs/479642964#L1491. I guess it's not noticed as it's listed in allow_failures in .travis.yml. However, I'm not sure if it's the same issue o

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > Found a test_builtin failure in the job for the relevant commit on Travis CI > - https://travis-ci.org/python/cpython/jobs/479642964#L1491. This job is for code coverage. I confirm that failures are allowed. This job runs the full test suite in sequence, w

[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: Python works as expected, I don't understand why you opened a bug report? What looks wrong to you? Closing a closed file descriptor is your fault, not a bug in Python. Python logs an error as expected. -- nosy: +vstinner ___

[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset b1e45739d832e1e402a563c6727defda92e193b7 by Victor Stinner in branch 'master': bpo-34323: Enhance IocpProactor.close() log (GH-11555) https://github.com/python/cpython/commit/b1e45739d832e1e402a563c6727defda92e193b7 -- nosy: +vstinner

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11210 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread miss-islington
miss-islington added the comment: New changeset 0bb6b891154b5718c2d7604fc4aa7a51a2f9fe70 by Miss Islington (bot) in branch '3.7': bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559) https://github.com/python/cpython/commit/0bb6b891154b5718c2d7604fc4aa7a51a2f9fe70 -- n

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11210, 11211 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11210, 11211, 11212 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset b91140fdb17472d03a7b7971f143c08a40fde923 by Victor Stinner in branch 'master': bpo-11555: Enhance IocpProactor.close() log again (GH-11563) https://github.com/python/cpython/commit/b91140fdb17472d03a7b7971f143c08a40fde923 -- nosy: +vst

[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread Ori Avtalion
Ori Avtalion added the comment: Sorry, I was confused by how Python 3 prints the traceback of ignored exceptions, and Python 2 does not. (This happens on on any exception and not just OSError) -- resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a by Serhiy Storchaka in branch 'master': bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561) https://github.com/python/cpython/commit/3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a --

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a by Serhiy Storchaka in branch 'master': bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561) https://github.com/python/cpython/commit/3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a --

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11217 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > Sorry, I was confused by how Python 3 prints the traceback of ignored > exceptions, and Python 2 does not. It's not a bug but a nice feature which helps you to debug your code! -- ___ Python tracker

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11217, 11218, 11219, 11220 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11217, 11218, 11220 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11217, 11218 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11225 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11221, 11222 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11221, 11222, 11223, 11224 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11221 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11221, 11222, 11224 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11225, 11226 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > New changeset b91140fdb17472d03a7b7971f143c08a40fde923 by Victor Stinner in > branch 'master': > bpo-11555: Enhance IocpProactor.close() log again (GH-11563) > https://github.com/python/cpython/commit/b91140fdb17472d03a7b7971f143c08a40fde923 Sorry, this cha

[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: Oops, I used the wrong bpo number for my second change in master: New changeset b91140fdb17472d03a7b7971f143c08a40fde923 by Victor Stinner in branch 'master': bpo-11555: Enhance IocpProactor.close() log again (GH-11563) https://github.com/python/cpython/commi

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread miss-islington
miss-islington added the comment: New changeset 97d6a56d9d169f35cf2a24d62bf15adfc42fc672 by Miss Islington (bot) in branch '3.7': bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561) https://github.com/python/cpython/commit/97d6a56d9d169f35cf2a24d62bf15adfc42fc672 -- n

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington
miss-islington added the comment: New changeset 97d6a56d9d169f35cf2a24d62bf15adfc42fc672 by Miss Islington (bot) in branch '3.7': bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561) https://github.com/python/cpython/commit/97d6a56d9d169f35cf2a24d62bf15adfc42fc672 --

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was surprised too. Maybe it is because that was very old PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > I was surprised too. Maybe it is because that was very old PR. Yeah, that's the most likely explanation. Maybe the CI ran tests before the final merge, or something like that? It doesn't explain why buildbots didn't complain, but it doesn't matter if such

[issue35711] Print information about an unexpectedly pending error before crashing

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: I close the issue, see: https://github.com/python/cpython/pull/11513#issuecomment-454369637 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe CI updates only files touched by the PR and the failed test was added after the initial creation of the PR? Or there is something wrong with timestamps, so outdated pyc files were used for tests? -- ___ Py

[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset d5a6adf6285ec8892b977a32c22143ebd1025b50 by Victor Stinner in branch '3.7': [3.7] bpo-34323: Enhance IocpProactor.close() log (GH-11565) https://github.com/python/cpython/commit/d5a6adf6285ec8892b977a32c22143ebd1025b50 --

[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: Ok, the bug is now fixed. Thanks for your bug report John Nelson! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35599] asyncio windows_events.py IocpProactor bug

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: I confirm that it's a duplicate of bpo-34323 that I just fixed ;-) -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> False timeout log message on proactor close

[issue27500] ProactorEventLoop cannot open connection to ::1

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33837] Closing asyncio.Server on asyncio.ProactorEventLoop causes all active servers to stop listening

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-29711 and already fixed. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> When you use stop_serving in proactor loop it's kill all listening servers _

[issue32661] ProactorEventLoop locks up on close call

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: bug.py calls loop.run_forever() but nothing calls stops the loop. If you add loop.stop() to handle_incoming_connection(), the script exits properly as soon as a client connects and sends some data. > 3. I press Ctrl-C in the DOS window. Nothing happens. Th

[issue27500] ProactorEventLoop cannot open connection to ::1

2019-01-15 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue31048] ResourceWarning in test_asyncio.test_events.ProactorEventLoopTests.test_create_server_ssl_verify_failed

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: I don't know how, but this issue has been fixed in the meanwhile. -- nosy: +vstinner resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch, patch pull_requests: +11227, 11228 stage: -> patch review ___ Python tracker ___ __

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +11227 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch, patch, patch pull_requests: +11227, 11228, 11229 stage: -> patch review ___ Python tracker ___

[issue35580] Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why is this value the default?

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > Am I correct that only one thread calls `GetQueuedCompletionStatus` on a > given `iocp` object in asyncio under Windows `IocpProactor`? An asyncio event loop must only run in a single thread at the same time. It doesn't make sense to run the same event loo

[issue8765] Tests unwillingly writing unicocde to raw streams

2019-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1462234baf7398a6b00c0f51905e26caa17d3c60 by Serhiy Storchaka in branch '2.7': [2.7] bpo-8765: Deprecate writing unicode to binary streams in Py3k mode. (GH-11127) https://github.com/python/cpython/commit/1462234baf7398a6b00c0f51905e26caa17d3c

[issue8765] Tests unwillingly writing unicocde to raw streams

2019-01-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue35580] Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why is this value the default?

2019-01-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding the question is: replace 0x with 0 or 1? I don't know much about IOCP, 0 sounds safer for me. -- ___ Python tracker _

[issue33944] Deprecate and remove pth files

2019-01-15 Thread Nick Coghlan
Nick Coghlan added the comment: `site.addsitedir` is called for every site-packages directory (whether global, within a venv, or at the user level), so my proposal above covers appending multiple segments. Linux distros approach to handling this is terrible because they dump all their syste

[issue33944] Deprecate and remove pth files

2019-01-15 Thread Nick Coghlan
Nick Coghlan added the comment: Note that any PEP I contributed to writing would need to be restricted to eliminating arbitrary code execution, as I don't think there's anything wrong with the path extension feature. -- ___ Python tracker

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11230 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11230, 11231 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset c9f872b0bdce5888f1879fa74e098bf4a05430c5 by Victor Stinner in branch 'master': bpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566) https://github.com/python/cpython/commit/c9f872b0bdce5888f1879fa74e098bf4a05430c5 -- _

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +11230, 11231, 11232 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35744] Problem in the documentation of numpy.random.randint in python 2.7

2019-01-15 Thread Jay
New submission from Jay : Official Documentation of python 2.7 mentions that numpy.random.randint(a,b) will return a random integer from N such that a<=N<=b. But I have run the code and I have found that it never returns equal to b. So, what I did was I ran numpy.random.randint(0,1) for 50 mi

[issue35744] Problem in the documentation of numpy.random.randint in python 2.7

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: Sorry but this is the bug tracker of Python, not of numpy. Please use https://github.com/numpy/numpy/issues instead. -- nosy: +vstinner resolution: -> third party stage: -> resolved status: open -> closed ___ Pyt

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington
miss-islington added the comment: New changeset c9f26714d511a338ba2fdd926e3dc62636f31815 by Miss Islington (bot) in branch '3.7': bpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566) https://github.com/python/cpython/commit/c9f26714d511a338ba2fdd926e3dc62636f31815 -- nosy: +

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > In any case it looks like self-pipe sock's buffer was overflown because > call_soon_threadsafe was called too many times, and loop._read_from_self > couldn't empty the buffer promptly. Then, at some point, _write_to_self > failed with an IOError. I fixed

[issue33944] Deprecate and remove pth files

2019-01-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: > `site.addsitedir` is called for every site-packages directory (whether > global, within a venv, or at the user level), so my proposal above covers > appending multiple segments. Good point. I think you're assuming that only site dirs are appropriate for

[issue33944] Deprecate and remove pth files

2019-01-15 Thread STINNER Victor
STINNER Victor added the comment: > SyntaxError: encoding problem: future_fstrings IMHO that's the expected behavior. I would prefer to have to explicitly install this special encoding *before* loading a script using it. -- ___ Python tracker

[issue35741] unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") doesn't work

2019-01-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35745] Add import statement in dataclass code snippet

2019-01-15 Thread Windson Yang
New submission from Windson Yang : Most of the example in https://docs.python.org/3/library/dataclasses.html miss code like from dataclasses import dataclass, field from typing import List I think we should add this statement in the code snippet. -- assignee: docs@python components:

[issue35745] Add import statement in dataclass code snippet

2019-01-15 Thread Windson Yang
Windson Yang added the comment: I'm not sure if we should put from dataclasses import dataclass everywhere or we should put it just in the first example as I did in the PR. -- ___ Python tracker _

[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Cisco Talos
New submission from Cisco Talos : An exploitable denial-of-service vulnerability exists in the X509 certificate parser of Python.org Python 2.7.11 / 3.6.6. A specially crafted X509 certificate can cause a NULL pointer dereference, resulting in a denial of service. An attacker can initiate or

[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Cisco Talos
Change by Cisco Talos : -- versions: -Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 Added file: https://bugs.python.org/file48053/TALOS-2019-0758 - POC.pem ___ Python tracker ___

[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the report! -- assignee: -> christian.heimes components: +SSL nosy: +christian.heimes stage: -> needs patch versions: +Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Cisco Talos
Cisco Talos added the comment: Thanks for acknowledging. We look forward to any updates/developments on the issue reported. For further information about the Cisco Vendor Vulnerability Reporting and Disclosure Policy please refer to this document which also links to our public PGP key. htt

[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Christian Heimes
Christian Heimes added the comment: I can confirm that CPython is affected. By the way PyCA cryptography handles the CRL DB just fine. >>> from cryptography import x509 >>> from cryptography.hazmat.backends import default_backend >>> with open("Lib/test/talos-2019-0758.pem", "rb") as f: ...

  1   2   >