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

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0185f34ddcf07b78feb6ac666fbfd4615d26b028 by Serhiy Storchaka in branch 'master': bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths. (#7695)

[issue33138] Improve standard error for uncopyable types

2018-09-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-09-18 Thread Michael Felt
Michael Felt added the comment: On 17/09/2018 16:00, Michael Felt wrote: > And, now for the PR tests... Had a review - many thanks, but before I press the resolve button - Ihope someone can help me understand why the "Travis" etc, checks are failing, e.g., ./python -E -S -m sysconfig

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: @vstinner: another option is to ignore "use_vfork" on platforms that don't have POSIX_SPAWN_USEVFORK. Using vfork or not is primarily a optimisation, ignoring the flag should not result in different behaviour (other than speed). -- nosy:

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

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.path.exists() and similar functions will return now False for invalid paths (non-encodable paths on Unix, non-decodable bytes paths on Windows, and paths containing null characters or bytes). -- resolution: -> fixed stage: patch review ->

Re: giving error during installation (ez_setup.py given error could not create ssl/tls secure channel)

2018-09-18 Thread dieter
Syed Shujaat writes: > can you please help regarding this problem. ez_setup.py given error could not > create ssl/tls secure channel Apparently, "ez_setup.py" tries to upgrade a transport communication channel with SSL (= "Secure Socket Layer") or TLS (= "Transport Layer Security") and fails.

[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7bdf28265aa371b39f82dfc6562635801aff15a5 by Serhiy Storchaka in branch 'master': bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610) https://github.com/python/cpython/commit/7bdf28265aa371b39f82dfc6562635801aff15a5 --

[issue33138] Improve standard error for uncopyable types

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does anybody have opinion about this issue? Is this option the best of possible? I'm going to merge the PR soon. -- assignee: -> serhiy.storchaka ___ Python tracker

[issue33649] asyncio docs overhaul

2018-09-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +8812 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34681] Incorrect class name Pattern in sre_parse.py

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34681] Incorrect class name Pattern in sre_parse.py

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e0c19ddc661e56cc7e694be52d3e47f1dfe5af24 by Serhiy Storchaka in branch 'master': bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310) https://github.com/python/cpython/commit/e0c19ddc661e56cc7e694be52d3e47f1dfe5af24 --

[issue33649] asyncio docs overhaul

2018-09-18 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset b042cf10c6084d14279c55a7e0d2d7595ff4e694 by Yury Selivanov in branch 'master': bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389) https://github.com/python/cpython/commit/b042cf10c6084d14279c55a7e0d2d7595ff4e694

[issue33649] asyncio docs overhaul

2018-09-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +8814 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33649] asyncio docs overhaul

2018-09-18 Thread miss-islington
miss-islington added the comment: New changeset 45452b738b7f94221a94e903fb5975222fbb7a8f by Miss Islington (bot) in branch '3.7': bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389) https://github.com/python/cpython/commit/45452b738b7f94221a94e903fb5975222fbb7a8f

[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33649] asyncio docs overhaul

2018-09-18 Thread Miguel Ángel
Change by Miguel Ángel : -- pull_requests: +8811 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +8825 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

MIDI note timing

2018-09-18 Thread Tobiah
I'd like to do some algorithmic composing using python. I've seen various libraries that seem to be capable of sending a MIDI message to a MIDI port, but I don't know where to get the timing from. Normally, with something like CSOUND, the program locks itself to the timing of the soundcard and

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-18 Thread Steve Dower
Steve Dower added the comment: New changeset 1a89cb5c479d8e4f467d7f96e1781c7275cefa88 by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-34582: Adds JUnit XML output for regression tests (GH-9210) https://github.com/python/cpython/commit/1a89cb5c479d8e4f467d7f96e1781c7275cefa88

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Gene Heskett
On Tuesday 18 September 2018 12:45:38 Chandan Kumar Abhimanyu wrote: > how I download and install api-ms-win-crt-runtime-|1-1-0.dll when > I am downloading by googling it is not installable file. > -- > *Chandan Kumar Abhimanyu* > *+91 9876852058* > *Department of Management Studies,* >

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +8824 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-18 Thread Steve Dower
Steve Dower added the comment: That executable doesn't appear to be in a virtual environment - you should be running C:\TEMP\venv\abcd\Scripts\python.exe Does that resolve your problem? -- ___ Python tracker

[issue33649] asyncio docs overhaul

2018-09-18 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +8826 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-18 Thread Steve Dower
Steve Dower added the comment: (Also, the behavior of Py_GetProgramFullPath is intentional, but we do have another bug somewhere to be able to override it for embedding purposes. sys.executable should be None when it does not contain a suitable path for running the normal Python interpreter

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread eryk sun
On Tue, Sep 18, 2018 at 11:45 AM, Chandan Kumar Abhimanyu wrote: > how I download and install api-ms-win-crt-runtime-|1-1-0.dll when I am > downloading by googling it is not installable file. The Universal C Runtime (CRT) is an OS component for Windows Vista and later. Make sure Windows

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-18 Thread Steve Dower
Steve Dower added the comment: New changeset c9276495fc497898544a38b244b38ff61797f32d by Steve Dower (Miss Islington (bot)) in branch '3.6': bpo-34582: Adds JUnit XML output for regression tests (GH-9210) https://github.com/python/cpython/commit/c9276495fc497898544a38b244b38ff61797f32d

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Mark Lawrence
On 18/09/18 17:45, Chandan Kumar Abhimanyu wrote: how I download and install api-ms-win-crt-runtime-|1-1-0.dll when I am downloading by googling it is not installable file. https://www.microsoft.com/en-us/download/details.aspx?id=49984 -- My fellow Pythonistas, ask not what our language

[issue25711] Rewrite zipimport from scratch

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b by Serhiy Storchaka in branch 'master': bpo-25711: Rewrite zipimport in pure Python. (GH-6809) https://github.com/python/cpython/commit/79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b --

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: I get the impression that go uses vfork on Linux, not posix_spawn, because go doesn't use libc (based on reading the referenced issue, not on deep knowledge of go and its implementation). I do wonder why glibc's implementation of posix_spawn doesn't use

[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley
Change by Thomas Sibley : -- nosy: +trs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-18 Thread Mario
Mario added the comment: On 18/09/2018 19:24, Steve Dower wrote: > > Steve Dower added the comment: > > That executable doesn't appear to be in a virtual environment - you should be > running C:\TEMP\venv\abcd\Scripts\python.exe > > Does that resolve your problem? > Nope, I am *not*

[issue34726] Add support of checked hash-based pycs in zipimport

2018-09-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently zipimport refuses to handle checked hash-based pycs (PEP 552). -- components: Library (Lib) messages: 325675 nosy: brett.cannon, eric.snow, ncoghlan, serhiy.storchaka, twouters priority: normal severity: normal status: open title: Add

[issue34727] Windows/2.7.15 IOError [Errno 0] when user interacts with cmd console

2018-09-18 Thread cowlinator
New submission from cowlinator : I can consistently reproduce a bug in 2.7.15 on Windows which causes an unexpected IOError. Steps to reproduce: Enter the following code in a plain-vanilla windows command line console: >>> import sys >>> while True: ... sys.stdout.write('.') Then,

[issue25711] Rewrite zipimport from scratch

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8827 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: I did some more research: * seems to indicate that glibc switched to a different implementation of posix_spawn that uses clone(2) instead of fork()/vfork() to avoid some problems with vfork(). The

Re: Can't import array in 3.7 python version

2018-09-18 Thread MRAB
On 2018-09-18 18:48, Cruey Cruel wrote: I have subscribe to python list, please provide me any resolution forpreviois below email What error message does it print? It might be that you have a named a file the same as one of those in Python's standard library, e.g. "array.py". If that's not

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread MRAB
On 2018-09-18 19:43, Gene Heskett wrote: On Tuesday 18 September 2018 12:45:38 Chandan Kumar Abhimanyu wrote: how I download and install api-ms-win-crt-runtime-|1-1-0.dll when I am downloading by googling it is not installable file. -- *Chandan Kumar Abhimanyu* *+91 9876852058*

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread STINNER Victor
STINNER Victor added the comment: Oh wow, I didn't expect that exposing a constant would be a source of such deep debate! (I'm not saying that the debate is useless or negative, it's useful and constructive, just I'm surprised how system programming can be hard sometimes!) --

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread eryk sun
On Tue, Sep 18, 2018 at 1:43 PM, Gene Heskett wrote: > > > > So apparently the | is a legal filename component, to a windows box. "l1-1-0" starts with "l" (ordinal 0x6c, i.e. lower-case "L"),

[issue34722] Non-deterministic bytecode generation

2018-09-18 Thread Eric Snow
Change by Eric Snow : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34722] Non-deterministic bytecode generation

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not all types are orderable. >>> sorted({'', None}) Traceback (most recent call last): File "", line 1, in TypeError: '<' not supported between instances of 'NoneType' and 'str' -- nosy: +serhiy.storchaka ___

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-18 Thread Steve Dower
Steve Dower added the comment: New changeset d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed by Steve Dower in branch 'master': bpo-34582: Adds JUnit XML output for regression tests (GH-9210) https://github.com/python/cpython/commit/d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed --

PyLint and Mypy real-time (and on-demand) code inspection from within PyCharm/IDEA

2018-09-18 Thread Roberto Leinardi
Hello there, I am the developer of pylint-pycharm and mypy-pycharm, two plugins providing both real-time and on-demand scanning of Python files with PyLint/Mypy from within PyCharm/IDEA. The real-time code inspection works automatically the same way like the PyCharm's build-in PEP8 check (you

Re: transform a "normal" decorator in one for async functions

2018-09-18 Thread Thomas Jollans
On 2018-09-18 16:20, vito.detul...@gmail.com wrote: > but I cannot rewrite this library. Perhaps not, but surely you can write your own decorator that does whatever this library's decorator does for async functions? Presumably you have the code... > is there a way to "convert" a "normal"

[issue34719] Deprecate set to frozenset conversion in set.__contains__

2018-09-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34719] Deprecate set to frozenset conversion in set.__contains__

2018-09-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

Re: transform a "normal" decorator in one for async functions

2018-09-18 Thread vito . detullio
Il giorno martedì 18 settembre 2018 17:15:22 UTC+2, Thomas Jollans ha scritto: > > but I cannot rewrite this library. > > Perhaps not, but surely you can write your own decorator that does > whatever this library's decorator does for async functions? Presumably > you have the code... well,

[issue34719] Deprecate set to frozenset conversion in set.__contains__

2018-09-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: The feature was first implemented in Lib/sets.py (arising from PEP 218) in pure python. It was found to be useful and carried forward to the C implementation for the built-in type. The feature is documented but not highlighted in the Library Reference,

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: You still need to allow the flag as being safe or unsafe depends on the user code as glibc cannot know about the details of what is going to be executed. That is the reason they have the flag, so the user can disambiguate if is safe or not. If we

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Some interesting read: Go is using vfork/posix_spawn when possible: https://github.com/golang/go/issues/5838 And it seems that have interesting results: https://about.gitlab.com/2018/01/23/how-a-fix-in-go-19-sped-up-our-gitaly-service-by-30x/

[issue34722] Non-deterministic bytecode generation

2018-09-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Have a look at line 512 in Python/marshal.c which calls PyObject_GetIter(). We would need to add PySequence_List() and PyList_Sort(). This will slow down marshaling but would make the bytecode deterministic. -- nosy: +rhettinger

Re: Permutations using a recursive generator

2018-09-18 Thread Thomas Jollans
On 2018-09-18 17:05, ast wrote: > Le 18/09/2018 à 17:01, ast a écrit : >> Hello >> >> I found a smart and very concise code to >> generate all permutations of a list. >> I put it here if someone is interested to >> figure out how it works When you say "found a [...] code" I hope you mean "wrote

[issue34724] argparse subparser help indent too short

2018-09-18 Thread Jeremiah Rosen
New submission from Jeremiah Rosen : The help is indented too early for subparsers with long argument names. I'm currently using the ProperIndentParser class from the following gist to create my top level parser, which fixes the issue:

[issue34472] zipfile: does not include optional descriptor signature

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4ba3b50bfe6d50cd82d208023ea23e203ab50589 by Serhiy Storchaka (Silas Sewell) in branch 'master': bpo-34472: Add data descriptor signature to zipfile (GH-8871) https://github.com/python/cpython/commit/4ba3b50bfe6d50cd82d208023ea23e203ab50589

[issue34472] zipfile: does not include optional descriptor signature

2018-09-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +8821 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34724] argparse subparser help indent too short

2018-09-18 Thread TakingItCasual
TakingItCasual added the comment: More detailed explanation on the SO post I found the HelpFormatter class from: https://stackoverflow.com/q/3215/2868017 -- ___ Python tracker

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-18 Thread Mario
New submission from Mario : According to the doc Py_GetProgramFullPath() should return the full path of the program name as set by Py_SetProgramName(). https://docs.python.org/3/c-api/init.html#c.Py_GetProgramFullPath This works well in Linux, but in Windows it is always the name of the

[issue34472] zipfile: does not include optional descriptor signature

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Silas. Since popular ZIP file implementation like Info-ZIP and Java write this signature unconditionally, I think most unzipping software support it if they support reading ZIP files in streaming mode at all, at it is safe

missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Chandan Kumar Abhimanyu
how I download and install api-ms-win-crt-runtime-|1-1-0.dll when I am downloading by googling it is not installable file. -- *Chandan Kumar Abhimanyu* *+91 9876852058* *Department of Management Studies,* *Indian Institute of Technology (ISM), Dhanbad, * *Jharkhand- 826004, India.* --

[issue34472] zipfile: does not include optional descriptor signature

2018-09-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +8822 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34341] Appending to ZIP archive blows up existing Central Directory entries

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8823 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Can't import array in 3.7 python version

2018-09-18 Thread Cruey Cruel
I have subscribe to python list, please provide me any resolution forpreviois below email On Tue, 18 Sep 2018, 23:07 Cruey Cruel, wrote: > Hi team, > Am facing issue in importing array. > > I use alatest version of pythonide and pycharm. > > Telle how can I fix this. > > Thanks and regards >

[issue25711] Rewrite zipimport from scratch

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8828 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34726] Add support of checked hash-based pycs in zipimport

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8829 stage: -> patch review ___ Python tracker ___ ___

[issue34726] Add support of checked hash-based pycs in zipimport

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34726] Add support of checked hash-based pycs in zipimport

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -8829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34341] Appending to ZIP archive blows up existing Central Directory entries

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 29034baf58156e2462b0680e9092c0a3cccb0798 by Serhiy Storchaka in branch '2.7': [2.7] bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683). (GH-9400)

[issue32245] OSError: raw write() returned invalid length on latest Win 10 Consoles

2018-09-18 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> third party stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue34341] Appending to ZIP archive blows up existing Central Directory entries

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker ___

[issue34472] zipfile: does not include optional descriptor signature

2018-09-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8830 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34727] Windows/2.7.15 IOError [Errno 0] when user interacts with cmd console

2018-09-18 Thread Eryk Sun
Eryk Sun added the comment: This may be the same problem as issue 32245, which was a third-party bug that Microsoft fixed in the last Spring update of Windows 10. Which version of Windows are you using? -- nosy: +eryksun ___ Python tracker

[issue34727] Windows/2.7.15 IOError [Errno 0] when user interacts with cmd console

2018-09-18 Thread cowlinator
cowlinator added the comment: I think you are probably right. I'm using Windows 10 Version 1709 (OS Build 16299.611) -- ___ Python tracker ___

[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Eryk Sun
Eryk Sun added the comment: Python doesn't go out of its way to fake a cross-platform POSIX environment in Windows, complete with emulated fork and exec. I don't recommend using nt.execv[e] or the os.exec* functions in Windows. Their behavior is almost always undesired. I'd be in favor of

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-09-18 Thread Yury Selivanov
New submission from Yury Selivanov : asyncio.sleep is a coroutine; passing a *loop* argument to it makes no sense anymore. We should raise a DeprecationWarning in Python 3.8 and 3.9 and remove it in 4.0. -- components: asyncio keywords: easy messages: 325684 nosy: asvetlov,

[issue34727] Windows/2.7.15 IOError [Errno 0] when user interacts with cmd console

2018-09-18 Thread Eryk Sun
Eryk Sun added the comment: With Windows 10 release 1803, I can't reproduce either this problem or the problems from issue 32245. I'm marking this issue closed as a duplicate. Open a new issue if you still experience the problem after updating to Windows 10 release 1803 or 1809. --

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-09-18 Thread Yury Selivanov
Yury Selivanov added the comment: Same for asyncio.wait and asyncio.wait_for. -- ___ Python tracker ___ ___ Python-bugs-list

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2018-09-18 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: bz2 in 2.7 is also affected. Victor, do we want to fix the crash at all in stable branches? If yes, IMHO taking the slight risk of __init__ -> __new__ change is preferable to taking the trouble to implement the alternative backwards-compatible fix (init

[issue34730] aclose() doesn't stop raise StopAsyncIteration / GeneratorExit to __anext__()

2018-09-18 Thread Devin Fee
New submission from Devin Fee : I expected an async-generator's aclose() method to cancel it's __anext__(). Instead, the task isn't cancelled, and (it seems) manually cleanup is necessary. @pytest.mark.asyncio async def test_aclose_cancels(): done = False event = asyncio.Event()

[issue33649] asyncio docs overhaul

2018-09-18 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 471503954a91d86cf04228c38134108c67a263b0 by Yury Selivanov in branch 'master': bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403) https://github.com/python/cpython/commit/471503954a91d86cf04228c38134108c67a263b0

[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley
Thomas Sibley added the comment: Thanks for taking the time to explain. I was just discovering the same myself experimentally. The MS docs I linked to seem a little misleading. orz In that case, do you think a doc patch for os.exec* adding a more nuanced take on Windows support would be

[issue34729] bz2/lzma: Compressor/decompressor crash if __init__ is not called

2018-09-18 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Reclosing (browser cache problem). -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue34729] bz2/lzma: Compressor/decompressor crash if __init__ is not called

2018-09-18 Thread Berker Peksag
Berker Peksag added the comment: We can definitely make the title of that issue more descriptive. Feel free to change it -- IIRC, you don't need additional permissions to change the title of an issue. Thanks! -- ___ Python tracker

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Gene Heskett
On Tuesday 18 September 2018 15:59:52 MRAB wrote: > On 2018-09-18 19:43, Gene Heskett wrote: > > On Tuesday 18 September 2018 12:45:38 Chandan Kumar Abhimanyu wrote: > >> how I download and install api-ms-win-crt-runtime-|1-1-0.dll > >> when I am downloading by googling it is not installable

[issue33649] asyncio docs overhaul

2018-09-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +8831 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Eryk Sun
Eryk Sun added the comment: nt.execv[e] wraps calling the C runtime _wexecv[e] function. The other os.exec* functions are in turn based on these calls. As to spawn, for Windows _P_OVERLAY just means to exit the current process. The source code is published, so you can see how simple the

[issue34729] bz2/lzma: Compressor/decompressor crash if __init__ is not called

2018-09-18 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : The compressor/decompressor classes from bz2 and lzma modules rely on __init__() for initialization, but it is not guaranteed to be called. Method calls on an uninitialized object crash: >>> from bz2 import BZ2Compressor as C >>> c = C.__new__(C) >>>

[issue34729] bz2/lzma: Compressor/decompressor crash if __init__ is not called

2018-09-18 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: I somehow failed to notice #23224 when I searched the tracker. You're right, it's the same, and, moreover, PR 7822 fixes problem with both compressors and decompressors (though it includes tests only for the latter for some reason). I think that this

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: Give all of this, the lesson I'd take away is perhaps that we should just provide the constant in the os module when available at build time (a configure check) and let people who find a need to use it on their system check for its presence and use it in

[issue33649] asyncio docs overhaul

2018-09-18 Thread miss-islington
miss-islington added the comment: New changeset 73c0006e71683b7d5b28192f18a2b9796e4195ef by Miss Islington (bot) in branch '3.7': bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403) https://github.com/python/cpython/commit/73c0006e71683b7d5b28192f18a2b9796e4195ef

[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley
Thomas Sibley added the comment: What about using _execv*() and friends, as documented at ? They appear to use the process overlay feature of _spawnv*() et al., as described at

[issue34729] bz2/lzma: Compressor/decompressor crash if __init__ is not called

2018-09-18 Thread Berker Peksag
Berker Peksag added the comment: I think we usually went with option 1 when we fixed similar issues in the past. See also issue 23224 for the same problem in *Decompressor classes of lzma and bz2 modules. It looks like the attached PR to that issue went with option 2: PR 7822. Perhaps we

[issue9148] os.execve puts process to background on windows

2018-09-18 Thread Thomas Sibley
Thomas Sibley added the comment: It seems like it would be very nice to provide compat if its possible with a minimum of effort. At the very least, a doc patch to os.exec*() seems warranted. I expected to find notes on platform compat in the doc and was pleasantly surprised to see the

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-18 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13285] signal module ignores external signal changes

2018-09-18 Thread Nathaniel Smith
Nathaniel Smith added the comment: Here's another case where this bug bites us: https://github.com/python-trio/trio/issues/673 At startup, Trio checks if SIGINT is currently being handled by Python's default SIGINT handler, and if so it substitutes its own SIGINT handler (which works just

[issue34731] pathlib path.match misshandles multiple `**`

2018-09-18 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : when porting parts of pytest to pathlib we noted that `path.match` does not quite match normal fnmatch for usages of `**` i believe this is related to always splitting the patter completely and not handling `**` in that case Bruno wrote

[issue28908] pydoc getdocloc() is broken

2018-09-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34720] Fix test_importlib for AIX

2018-09-18 Thread Michael Felt
New submission from Michael Felt : Issue32374 added a new subtest (test_bad_traverse) in test_importlib. The test succeeds when a script calling a bad_traverse exits with a non-zero status (e.g., crashes because of segmentation violation) This patch "fixes" Modules/_testmultiphase.c so that

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If this is an optimization, what is the downside of always using vfork()? -- ___ Python tracker ___

[issue34518] Documentation for coroutine objects

2018-09-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Since there is work on asyncio docs overhaul I just want to bring this to your attention since I don't know if this has already been resolved with the merged PRs to master and your thoughts on this. Thanks -- nosy: +yselivanov

  1   2   >