[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 92f90242994652d6b7afe0a2c8a61cf2bccc8c32 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297) https://github.com/python/cpython/commit/92f90242994652d6b7afe0a2c8a61cf2bccc8c32 Since

[issue35678] Issue with execute_child in startupinfo

2019-01-07 Thread MaximilianSP
New submission from MaximilianSP : Whenever startupinfo is called, python crashes on my Computer. I have added the file showing the error traceback. I have seen a few bug Reports related to startupinfo on Windows. Not sure what the issue is and I hope you can help me. I am running the

[issue32592] Drop support of Windows Vista in Python 3.7

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: > I failed to fix failures on my PR. It's now too late for Python 3.7. I will try to redo PR 5231 in small chunks to better control the risk. I extracted os.cpu_count() changed as a new PR: PR 11457. I already updated time.monotonic() documentation in a

[issue32592] Drop support of Windows Vista in Python 3.7

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10927 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32592] Drop support of Windows Vista in Python 3.7

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10927, 10928 stage: resolved -> patch review ___ Python tracker ___ ___

[issue32592] Drop support of Windows Vista in Python 3.7

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10927, 10928, 10929 stage: resolved -> patch review ___ Python tracker ___ ___

[issue35676] unittest assert helper methods have incorrect signature in docs

2019-01-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Looking at git history it seems there were some changes done in issue10573 to use (actual, expected) for consistency and later changed to use (first, second) in the same issue at msg126911. Discussion for the issue :

[issue30170] "tests may fail, unable to create temporary directory" warning on buildbot: add a cleanup step to buildbots

2019-01-07 Thread Jorge Ramos
Jorge Ramos added the comment: I got this error trying to build Python 3.6.7, why is this closed? Running PGInstrument|x64 interpreter... E:\RepoGiT\3.6\lib\test\support\__init__.py:1029: RuntimeWarning: tests may fail, unable to create temp dir:

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-01-07 Thread MaximilianSP
MaximilianSP added the comment: Thank you for the input Victor. I will need a little time to dig in the code and check the attributes. I am fairly new to python :) You are right that the code doesn't crash. Just I cannot continue with the following steps. That is why I thought it crashed.

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

2019-01-07 Thread STINNER Victor
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? diff --git a/Lib/test/eintrdata/eintr_tester.py

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2019-01-07 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +10931, 10932, 10933 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35560] format(float(123), "00") causes segfault in debug builds

2019-01-07 Thread miss-islington
miss-islington added the comment: New changeset 9a413faa8708e5c2df509e97d48f18685c198b24 by Miss Islington (bot) in branch '3.7': bpo-35560: Remove assertion from format(float, "n") (GH-11288) https://github.com/python/cpython/commit/9a413faa8708e5c2df509e97d48f18685c198b24 --

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2019-01-07 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +10931, 10932 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34522] PyTypeObject's tp_base initialization bug

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

2019-01-07 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Results from a recent static analysis scan for python2: Error: USE_AFTER_FREE (CWE-825): Python-2.7.15/Modules/_bsddb.c:6697: freed_arg: "free" frees "name". Python-2.7.15/Modules/_bsddb.c:6715: pass_freed_arg: Passing freed pointer "name" as an

[issue35664] Optimize itemgetter()

2019-01-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2d53bed79c1953390f85b191c72855e457e09305 by Raymond Hettinger in branch 'master': bpo-35664: Optimize operator.itemgetter (GH-11435) https://github.com/python/cpython/commit/2d53bed79c1953390f85b191c72855e457e09305 --

[issue35664] Optimize itemgetter()

2019-01-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: "Issue with execute_child in startupinfo" I don't think that the issue is related to startupinfo at all, since you don't specify this parameter in your check_output() call. Python shows you "startupinfo)" in the traceback because the function call takes

[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32592] Drop support of Windows Vista in Python 3.7

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Hello 2018, I reopen the issue and change the version to Python 3.8. -- resolution: out of date -> status: closed -> open versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue35560] format(float(123), "00") causes segfault in debug builds

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Thanks Karthikeyan Singaravelan for the bug report and the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-07 Thread Christian Heimes
Christian Heimes added the comment: The certs are coming from Windows' trust store. Could you please dump the trust store for me and attach the result to the bug tracker. The following script is untested but should work. I don't have access to a Windows machine at the moment. ctx =

[issue35671] reserved identifier violation

2019-01-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: See: Basically all names starting with double underscores are reserved for the implementation in C++. Likewise for all names starting with an

[issue35678] Issue with execute_child in startupinfo

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: The screenshot says "OSError: [WinError 87] Falscher Parameter" at Lib/subprocess.py:1178 which is this call: hp, ht, pid, tid = _winapi.CreateProcess(executable, args, # no special security

[issue35624] Shelve sync issues while using Gevent

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35381] posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- title: Heap-allocated posixmodule types -> posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types ___ Python tracker

[issue35550] Some define guards for Solaris are wrong

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Do you want to fix the 2.7 branch as well? -- nosy: +vstinner ___ Python tracker ___ ___

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2019-01-07 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +10931 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30170] "tests may fail, unable to create temporary directory" warning on buildbot: add a cleanup step to buildbots

2019-01-07 Thread Jorge Ramos
Jorge Ramos added the comment: May I add that this directory exists, maybe before this run tried to create it and hence not being able to do it as the first post suggested? -- ___ Python tracker

[issue35671] reserved identifier violation

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: __DYNAMIC_ANNOTATIONS_H__ can be replaced with PY_DYNAMIC_ANNOTATIONS_H. I don't understand why _Py_memory_order and only _Py_memory_order is a problem. We have tons of symbols starting with _Py: functions, defines, variables, etc. --

[issue35677] Do not automount in stat() by default

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: What if someone relies on the current behavior of os.stat(filename, dir_fd=fd)? Would it make sense to add a new "automount=False" optional parameter to os.stat()? AT_NO_AUTOMOUNT would only be added if automount is false. -- nosy: +vstinner

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: I suggest to start with: * Updating docstrings to recommend use is_alive() instead of isAlive(), and add a deprecation warning for Thread.isAlive We may apply such changes to Python 3.7, maybe also emit a PendingDeprecationWarning. -- nosy:

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: > self.load_verify_locations(cadata=certs) > ... > ssl.SSLError: nested asn1 error (_ssl.c:3926) It seems like one of your certificate is invalid. > In Python 3.6.4 same function call raises no error. We frequently update OpenSSL in Python. You can get

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to attach the certification to the issue so someone can try to reproduce the issue? (but don't attach any private key ;-)) -- ___ Python tracker

[issue35560] format(float(123), "00") causes segfault in debug builds

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3f7983a25a3d19779283c707fbdd5bc91b1587ef by Victor Stinner (Xtreak) in branch 'master': bpo-35560: Remove assertion from format(float, "n") (GH-11288) https://github.com/python/cpython/commit/3f7983a25a3d19779283c707fbdd5bc91b1587ef

[issue35560] format(float(123), "00") causes segfault in debug builds

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10930 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2019-01-07 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner Thanks, I've submitted PR 11459 for 3.7 which emit PendingDeprecationWarning. -- ___ Python tracker ___

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Hi, > I'm unable to fill in your contributor agreement form Is there a specific reason why you cannot fill it? If you cannot cannot fill it, can someone else convert your patch into a PR? -- nosy: +vstinner ___

[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

2019-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no bug here. "name" is freed only when err == EINVAL. And the RETURN_IF_ERR() macro will return from the function if err != 0. So that a freed pointer will never passed to Py_BuildValue(). -- nosy: +serhiy.storchaka

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

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

[issue33084] Computing median, median_high an median_low in statistics library

2019-01-07 Thread Jonathan Fine
Jonathan Fine added the comment: Based on a quick review of the python docs, the bug report, PEP 450 and this thread, I suggest 1. More carefully draw attention to the NaN feature, in the documentation for existing Python versions. 2. Consider revising statistics.py so that it raises an

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2019-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The original issues seem fixed. As for leaks in posix_putenv_garbage on Windows, it is better to open a new issue for this. -- status: open -> pending ___ Python tracker

[issue17703] Trashcan mechanism segfault during interpreter finalization in Python 2.7.4

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: This issue is closed. Can you please open a new issue? Try to describe the bug that you have and what you attemped to fix it. -- ___ Python tracker

[issue35679] pdb restart hooks

2019-01-07 Thread Hernot
New submission from Hernot : I like the PDB debugger it is a quite powerfull tool, despite a few donws. One is that cleanup code eg registered by debugged script, module is not executed on restart. a crude hack is to check whether pdb is invoked via python -mpdb using inspect and decorate

[issue34431] Docs does not eval allows code object as argument

2019-01-07 Thread Jonathan Fine
Jonathan Fine added the comment: This graceful reminder is most welcome. At present, it's not help I'm short of, but time. I've given myself a reminder, to spend time on this before the end of this month (January 2019). Once again, thank you for this reminder. This is something I want to

[issue34173] [3.7] deadlock in /usr/lib/python3.7/concurrent/futures/thread.py

2019-01-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the info. I am closing it as third party. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue34173] [3.7] deadlock in /usr/lib/python3.7/concurrent/futures/thread.py

2019-01-07 Thread Corey Bryant
Corey Bryant added the comment: I think we can close this issue. It was narrowed down to eventlet. Please see: https://github.com/eventlet/eventlet/issues/508 On Tue, Jul 24, 2018 at 1:54 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the

[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

2019-01-07 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Indeed it's not a bug per se, more like code readability issue, if however it's not deemed as an issue, it can be closed. -- ___ Python tracker

[issue2506] Add mechanism to disable optimizations

2019-01-07 Thread Arthur Goldberg
Arthur Goldberg added the comment: This issue is well into the 2nd decade of debate. Who has the power to effect this change? Happy New Year Arthur -- ___ Python tracker ___

[issue35672] Error on divide

2019-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: For reference, the OP reported the issue initially at https://github.com/python/psf-infra-meta/issues/17 (but it was closed because that's not the right tracker). The y1y2y3y4 etc. are multiplications (mangled by not quoting the code in GitHub and then

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-07 Thread Christian Heimes
Christian Heimes added the comment: Your Windows cert store contains multiple invalid certificates. The first failing certificate is the custom "MUPCA Root", which looks like a certificate from http://ca.mup.gov.rs/sertifikati.html. The serial number seems to be badly formated or padded.

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-07 Thread Vladimir Perić
Vladimir Perić added the comment: Public Certificate file cert.pem is attached. Version of ssl lib in pythons on my machine: Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

[issue35671] reserved identifier violation

2019-01-07 Thread Markus Elfring
Markus Elfring added the comment: * How do you think about to reduce the tampering with the reserved name space in mentioned source code (and also in related components)? * Would you like to avoid that this software depends on undefined behaviour? --

[issue32592] Drop support of Windows Vista in Python 3.7

2019-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: AFAIK, it was specifically Martin Loewis who did not want a specific list in PEP 11. Since he is long inactive, I think you and Steve should feel free to change that. -- ___ Python tracker

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

2019-01-07 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

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-07 Thread Christian Heimes
Christian Heimes added the comment: OpenSSL 1.1.0 is more strict than OpenSSL 1.0.2. That's why you don't see the issue with Python 3.6 but with 3.7. The problem is explained in https://mta.openssl.org/pipermail/openssl-dev/2016-February/005100.html The CA has encoded the integer 102 (0x66)

[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-01-07 Thread Stefan Seefeld
Stefan Seefeld added the comment: OK, so while I have been able to work around the issues (by using `quamash` to bridge between `asyncio` and `Qt`), I'd still like to understand the rationale behind the limitation that any subprocess-managing event-loop has to run in the main thread. Is

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10940 stage: -> patch review ___ Python tracker ___ ___

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch, patch pull_requests: +10940, 10941 stage: -> patch review ___ Python tracker ___

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Interesting commit. No idea if it's related. commit 79790bc35fe722a49977b52647f9b5fe1deda2b7 Author: Victor Stinner Date: Fri Jun 8 00:25:52 2018 +0200 bpo-33694: Fix race condition in asyncio proactor (GH-7498) The cancellation of an

[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-01-07 Thread Stefan Seefeld
Stefan Seefeld added the comment: > The limitation is a consequence of how Linux works. > Unix has no cross-platform API for non-blocking waiting for child process > finish except handling SIGCHILD signal. Why does the `wait()` have to be non-blocking ? We can call it once in response to

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10945, 10946 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10945 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Attached test_aiosend.py is a simplified version of test to trigger the reference leak. Copy it to Lib/test/ and run: vstinner@WIN C:\vstinner\python\master>python -m test test_aiosend -R 3:3 Running Debug|x64 interpreter... Run tests sequentially 0:00:00

[issue32622] Implement loop.sendfile

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10944 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- title: test_asyncio: ProactorEventLoopTests.test_sendfile_close_peer_in_middle_of_receiving() leaked [4, 4, 3] memory blocks on AMD64 Windows8.1 Refleaks 3.x -> test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread STINNER Victor
New submission from STINNER Victor : Running ProactorEventLoopTests.test_sendfile_close_peer_in_the_middle_of_receiving() logs a bug in _force_close(): see logs below. Extract of _force_close(): def _force_close(self, exc): if self._empty_waiter is not None: if exc is

[issue35642] _asynciomodule.c compiled in both pythoncore.vcxproj and _asyncio.vcxproj

2019-01-07 Thread Steve Dower
Steve Dower added the comment: New changeset fbf50683b3a2301097d5cd48bc68b530c1e1720f by Steve Dower (Gregory Szorc) in branch 'master': bpo-35642: Remove asynciomodule.c from pythoncore.vcxproj (GH-11410) https://github.com/python/cpython/commit/fbf50683b3a2301097d5cd48bc68b530c1e1720f

[issue32622] Implement loop.sendfile

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80fda712c83f5dd9560d42bf2aa65a72b18b7759 by Victor Stinner in branch 'master': bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462) https://github.com/python/cpython/commit/80fda712c83f5dd9560d42bf2aa65a72b18b7759 --

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80fda712c83f5dd9560d42bf2aa65a72b18b7759 by Victor Stinner in branch 'master': bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462) https://github.com/python/cpython/commit/80fda712c83f5dd9560d42bf2aa65a72b18b7759 --

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10945, 10946, 10947, 10948 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32622] Implement loop.sendfile

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10949 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35673] Loader for namespace packages

2019-01-07 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10945, 10946, 10947 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-07 Thread Steve Dower
Steve Dower added the comment: Looks like zipimport in 3.7 always rejected CHECKED_HASH pycs, while in 3.8 it always accepts them (or runs it through a validation process that passes them when the source file doesn't exist - I only confirmed by testing a build, not by walking through the

[issue35374] Windows doc build does not find autodetected hhc.exe

2019-01-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26467] Add async magic method support to unittest.mock.Mock

2019-01-07 Thread Dima Tisnek
Dima Tisnek added the comment: Perhaps it's possible to vendor asynctest mock in the same vein as `mock` found it's way into unittest? The real power of `asynctest` is in constructs like: with asynctest.mock.patch("module.Class", autospec=True): ... Where mock instances know what

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch, patch, patch pull_requests: +10940, 10941, 10943 stage: -> patch review ___ Python tracker ___

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch, patch, patch, patch pull_requests: +10940, 10941, 10942, 10943 stage: -> patch review ___ Python tracker ___

[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-01-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: The limitation is a consequence of how Linux works. Unix has no cross-platform API for non-blocking waiting for child process finish except handling SIGCHILD signal. On the other hand signal handlers in Python should work in the main thread. Your trick with

[issue35673] Loader for namespace packages

2019-01-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 7, 2019, at 03:16, Ronald Oussoren wrote: > > Do you know why the namespace package loader lies about the source and code? > Both .get_source() and .get_code() return a value that isn't None. > And likewise: Why is the namespace package loader a

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-07 Thread Steve Dower
Steve Dower added the comment: And I assume now that the reason it broke in 3.7.2 is because the pyc mode for the embeddable distro changed. Which means the right place for tests is in a separate build that uses properly laid out Python rather than testing in the source tree (like what I

[issue35374] Windows doc build does not find autodetected hhc.exe

2019-01-07 Thread Steve Dower
Steve Dower added the comment: New changeset e61cc481e02b758c8d8289163102c236d0658a55 by Steve Dower (chrullrich) in branch 'master': bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)

[issue35374] Windows doc build does not find autodetected hhc.exe

2019-01-07 Thread miss-islington
miss-islington added the comment: New changeset 5d1e0124cf562153a681d1b5b362e7c8e23edea9 by Miss Islington (bot) in branch '3.7': bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849) https://github.com/python/cpython/commit/5d1e0124cf562153a681d1b5b362e7c8e23edea9

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: Update: * test.test_asyncio.test_sendfile.ProactorEventLoopTests.test_sendfile_close_peer_in_the_middle_of_receiving leaks 1 reference per run: this bug is caused by bpo-35682 and fixed by PR 11462 *

[issue32622] Implement loop.sendfile

2019-01-07 Thread miss-islington
miss-islington added the comment: New changeset 88bd26a72eb4ab341cf19bea78a0039fbe4be3a2 by Miss Islington (bot) in branch '3.7': bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462) https://github.com/python/cpython/commit/88bd26a72eb4ab341cf19bea78a0039fbe4be3a2 --

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

2019-01-07 Thread miss-islington
miss-islington added the comment: New changeset 88bd26a72eb4ab341cf19bea78a0039fbe4be3a2 by Miss Islington (bot) in branch '3.7': bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462) https://github.com/python/cpython/commit/88bd26a72eb4ab341cf19bea78a0039fbe4be3a2 --

[issue35682] asyncio: bug in _ProactorBasePipeTransport._force_close()

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

[issue35374] Windows doc build does not find autodetected hhc.exe

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10950, 10951, 10952 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +10953, 10954 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +10953 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +10953, 10954, 10955 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35374] Windows doc build does not find autodetected hhc.exe

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10950 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35374] Windows doc build does not find autodetected hhc.exe

2019-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10950, 10951 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35550] Some define guards for Solaris are wrong

2019-01-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: gregory.p.smith -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35683] Enable manylinux1 builds on Pipelines

2019-01-07 Thread Steve Dower
New submission from Steve Dower : Azure Pipelines can now support container jobs: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=vsts=yaml I experimented with enabling a manylinux1 build a while back, which should now be able to use identical steps to

[issue35681] urllib.request.HTTPPasswordMgr.add_password requires more information for HTTPPasswordMgrWithDefaultRealm

2019-01-07 Thread Tatz Sekine
New submission from Tatz Sekine : TL;DR HTTPPasswordMgrWithDefaultRealm.add_password() doesn't have proper documentation. All known version of urllib.request (or urllib2 in Python 2.x) documentaion have the same issue. Details: HTTPPasswordMgrWithDefaultRealm object doesn't have its own

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

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset ddd7c422fd89a053700f9ed5272cf732ccb09088 by Victor Stinner in branch 'master': bpo-33717: pythoninfo logs information of all clocks (GH-11460) https://github.com/python/cpython/commit/ddd7c422fd89a053700f9ed5272cf732ccb09088 --

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

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10934, 10935 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-01-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10934, 10935, 10936 ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >