[issue35750] process finished with exit code -1073740940 (0xc0000374)

2019-01-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: fixed -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue17005] Add a topological sort algorithm

2019-01-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: As the name been already discussed ? I fear that topsort might only be clear to people already knowing what it does. topoligical_sort would be more discoverable and explicit and one can always do from functools import topological_sort as tsort if he want

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: I'm working on PR but I found an issue. shutil.which() behaves differently than subprocess, distutils.spawn.find_executable() and os.execv() when PATH is set but set to an empty string: * os.get_exec_path() returns [''] * shutil.which() returns None: DON'T

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-01-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch, patch pull_requests: +11275, 11276 stage: -> patch review ___ Python tracker ___ __

[issue35755] Remove current directory from posixpath.defpath to enhance security

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

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-01-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch, patch, patch pull_requests: +11275, 11276, 11277 stage: -> patch review ___ Python tracker ___

[issue34782] Pdb crashes when code is executed in a mapping that does not define `__contains__`

2019-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks to me like an error in the user code. What is the use case of passing an object that does not implement the mapping interface as locals to pdb.run()? -- ___ Python tracker

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 11586 to remove the current directory from os.defpath. I would prefer to first decide how the os, subprocess, shutil and distutils modules have to handle a PATH variable set to an empty string, before merging my PR. I would prefer to have the same

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is how the which command behaves: $ /usr/bin/which python /usr/bin/python $ PATH= /usr/bin/which python $ PATH=. /usr/bin/which python ./python $ PATH=: /usr/bin/which python ./python I think shutil.which() should behave similarly unless there are good

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2019-01-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @berker.peksag I have converted the patch at https://bugs.python.org/file40470/issue23078.patch and pushed it to a GitHub branch https://github.com/python/cpython/compare/master...tirkarthi:bpo23078 . I am willing to open a PR attributing to @fov i

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: Alexey Izbyshev: > Would it make sense to use os.confstr('CS_PATH') instead of a hardcoded path, > or is identical behavior on all POSIX platforms preferred to that? I didn't know this variable. man confstr says: _CS_PATH: A value for the PATH variable whic

[issue35756] Using `return value` in a generator function skips the returned value on for-loop iteration

2019-01-17 Thread Greg Ewing
Greg Ewing added the comment: There is no bug here; the current implementation is working as intended. The word "yields" in the quoted section of the PEP indeed refers to the "yield" keyword and nothing else. Possibly that could be clarified, but I believe it's already clear enough when read

[issue35537] use os.posix_spawn in subprocess

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: Alexey Izbyshev > So, if we can't change os.execvp() and/or current subprocess behavior, > posix_spawnp seems to be ruled out. My main motivation for using posix_spawn() is performance. An optimization should not justify to introduce a backward incompatible

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: > I'm sorrry, I read the issue too quickly and misunderstood it. I guess that > it's a duplicate of bpo-23428: "Use the monotonic clock for thread conditions > on POSIX platforms". This issue is blocked the libc... Oops, I wanted to post this comment on bpo-

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-31267 "threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available" as a duplicate of this issue. -- ___ Python tracker

[issue35747] Python threading event wait influenced by date change

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: Oops, I posted the following comment on the wrong issue... I wanted to post the following comment on this issue! I'm sorrry, I read the issue too quickly and misunderstood it. I guess that it's a duplicate of bpo-23428: "Use the monotonic clock for thread co

[issue35747] Python threading event wait influenced by date change

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: > looks like duplicate of bugs.python.org/issue23428 Yes. I close this issue as a duplicate of bpo-23428. Let's discuss the bug there! -- stage: -> resolved status: open -> closed superseder: -> Use the monotonic clock for thread conditions on POS

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-35747 "Python threading event wait influenced by date change" as a duplicate of the issue. -- ___ Python tracker ___ __

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: > Is there any progress on the issue? Should someone take over? It's a limitation of the libc, not directly of Python. The problem is that the sem_timedwait() function of the glibc doesn't allow to specify which clock is used: https://sourceware.org/bugzilla

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-12822: "NewGIL should use CLOCK_MONOTONIC if possible". -- ___ Python tracker ___ __

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2019-01-17 Thread Andrey Ovchinnikov
Change by Andrey Ovchinnikov : -- nosy: +anikey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Stefan Krah
Stefan Krah added the comment: If gcc-8.0.1-0.14.fc28.ppc64le miscompiles memcpy(), perhaps the upstream priority in https://bugzilla.redhat.com/show_bug.cgi?id=1540995 should be "release blocker". CC David Edelsohn, whose PPC64 buildbot (presumably big endian) works. -- nosy: +David

[issue35486] subprocess module import hooks breaks back compatibility

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

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-17 Thread miss-islington
miss-islington added the comment: New changeset cee29b46a19116261b083dc803217aa754c7df40 by Miss Islington (bot) (Nick Coghlan) in branch 'master': bpo-35486: Note Py3.6 import system API requirement change (GH-11540) https://github.com/python/cpython/commit/cee29b46a19116261b083dc803217aa754

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11278, 11279 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11279, 11280, 11283 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11278, 11279, 11280 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11279, 11280, 11281, 11283 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11279, 11280, 11281, 11282, 11283 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-17 Thread miss-islington
miss-islington added the comment: New changeset 422db3777874f4f31fc8f4e718f440a2abc59347 by Miss Islington (bot) in branch '3.7': bpo-35486: Note Py3.6 import system API requirement change (GH-11540) https://github.com/python/cpython/commit/422db3777874f4f31fc8f4e718f440a2abc59347 -

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2019-01-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > One workaround is to use Python to use the mutex+cond implementation of > pthread locks, since this one is already able to use CLOCK_MONOTONIC: That this have any drawbacks? -- nosy: +pablogsal ___ Python

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2019-01-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > One workaround is to use Python to use the mutex+cond implementation of > pthread locks, since this one is already able to use CLOCK_MONOTONIC: Does this have any drawbacks? -- ___ Python tracker

[issue34148] Fatal read error on socket transport

2019-01-17 Thread yjq
Change by yjq : -- title: Fatal error on SSL transport -> Fatal read error on socket transport ___ Python tracker ___ ___ Python-bug

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread David Heiberg
David Heiberg added the comment: Ahh yes of course, I will remove that from the notes. With regards to the second note, would it do any harm to leave it in? I suppose it does imply that this was possible before... -- ___ Python tracker

[issue35713] Fatal Python error: _PySys_BeginInit: can't initialize sys module

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: What is your OS (name and version)? What is your compiler (name and version)? > Fatal Python error: _PySys_BeginInit: can't initialize sys module I have no idea why you get this error. You should try to run this function in a debugger like gdb and run the c

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

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 89669ffe10a9db6343f6ee42239e412c8ad96bde by Victor Stinner (Dong-hee Na) in branch 'master': bpo-35283: Add deprecation warning for Thread.isAlive (GH-11454) https://github.com/python/cpython/commit/89669ffe10a9db6343f6ee42239e412c8ad96bde ---

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset f1d8e7cf17a010d2657822e06a41b30c9542a8c7 by Victor Stinner (David H) in branch 'master': bpo-35701: Added __weakref__ slot to uuid.UUID (GH-11570) https://github.com/python/cpython/commit/f1d8e7cf17a010d2657822e06a41b30c9542a8c7 -- __

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

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: Ok, master now emits a deprecation warning. Is it worth it to emit a pending deprecation warning in Python 3.7? -- ___ Python tracker ___ __

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: I understand that the reported issue is now fixed, so I close the issue. Note: uuid.UUID of Python 3.7 doesn't use slots. -- keywords: -3.7regression resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What's New changes still are needed. Are weak references to UUID used in any existing code, or just in the code that is planned to be written? -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open _

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: > What's New changes still are needed. Sorry, what do you want to document? The fact that uuid.UUID now use slots? If yes, maybe reopen bpo-30977 instead? This issue is only about fixing a regression caused by bpo-30977 (it wasn't possible to create a weak

[issue35759] inspect module does not implement introspection API for asynchronous generators

2019-01-17 Thread Thomas Krennwallner
New submission from Thomas Krennwallner : The `inspect` module does not contain functions for determining the current state of asynchronous generators. That is, there is no introspection API for asynchronous generators that match the API for generators and coroutines: https://docs.python.org/

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was already documented. We need to fix the documentation. See the discussion above. -- ___ Python tracker ___ ___

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: Extract of memoryview pack_signal() function: #define PACK_SINGLE(ptr, src, type) \ do { \ type x; \ x = (type)src; \ memcpy(ptr, (char *)&x, siz

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: https://docs.python.org/dev/whatsnew/3.8.html#optimizations """uuid.UUID now uses __slots__ to reduce its memory footprint. Note that this means that instances can no longer be weak-referenced and that arbitrary attributes can no longer be added to them."""

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-17 Thread David Heiberg
David Heiberg added the comment: Should the note on arbitrary attributes also be removed? If this was documented previously then I don't see the need for it here, but if this has never been documented then maybe some other way of wording it may be sensible to include? -- ___

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-17 Thread Tal Einat
Tal Einat added the comment: The recently merged PR GH-10454 significantly reduced the overhead of Squeezer's write() interception. The overhead should now be entirely insignificant. IMO that deals with the "... and is slow" part of this issue. We've still to decide whether the auto-squee

[issue35759] inspect module does not implement introspection API for asynchronous generators

2019-01-17 Thread Thomas Krennwallner
Change by Thomas Krennwallner : -- pull_requests: +11284 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35759] inspect module does not implement introspection API for asynchronous generators

2019-01-17 Thread Thomas Krennwallner
Change by Thomas Krennwallner : -- pull_requests: +11284, 11285 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Florian Weimer added the comment: I believe this is a GCC bug, and filed . -- ___ Python tracker ___ _

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11286 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11286, 11287 stage: -> patch review ___ Python tracker ___ ___ P

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11286, 11287, 11288 stage: -> patch review ___ Python tracker ___ ___

[issue35710] Make dataclasses.field() accept another name for __init__ field's name

2019-01-17 Thread Théophile Chevalier
Change by Théophile Chevalier : -- nosy: +theophile ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I opened https://github.com/python/cpython/pull/11591 to remove _valid_mask_octets, _is_valid_netmask and _is_hostmask from ipaddress, the patch proposed in issue27860 has a larger scope so it's probably better to remove those unused methods in this issue. Doe

[issue35760] test_asyncio: test_async_gen_asyncio_gc_aclose_09() race condition

2019-01-17 Thread STINNER Victor
New submission from STINNER Victor : The test fails once on AMD64 Windows8.1 Non-Debug 3.x when the Python test suite is run in parallel, but pass if the test is run alone (when the system is more "idle"). https://buildbot.python.org/all/#/builders/12/builds/1898

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I opened https://github.com/python/cpython/pull/11591 to remove > _valid_mask_octets, _is_valid_netmask and _is_hostmask from ipaddress, the > patch proposed in issue27860 has a larger scope so it's probably better to > remove those unused method

[issue35759] inspect module does not implement introspection API for asynchronous generators

2019-01-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: see also msg300475 -- nosy: +ncoghlan, xtreak, yselivanov ___ Python tracker ___ ___ Py

[issue33687] uu.py calls os.path.chmod which doesn't exist

2019-01-17 Thread Berker Peksag
Berker Peksag added the comment: New changeset 17f05bbc78dbcd1db308266c31370da9ec1b1d47 by Berker Peksag (Timo Furrer) in branch 'master': bpo-33687: Fix call to os.chmod() in uu.decode() (GH-7282) https://github.com/python/cpython/commit/17f05bbc78dbcd1db308266c31370da9ec1b1d47 --

[issue33687] uu.py calls os.path.chmod which doesn't exist

2019-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11289, 11290 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue33687] uu.py calls os.path.chmod which doesn't exist

2019-01-17 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -11290 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35761] Allow dataclasses to be updated in place

2019-01-17 Thread Théophile Chevalier
New submission from Théophile Chevalier : Calling dataclasses.replace(instance, **changes) returns a new object of the same type. >From my understanding there is, however, no method to update in place fields >of a dataclass from another one. I propose to add dataclasses.update(instance_to_upd

[issue35761] Allow dataclasses to be updated in place

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue16638] support multi-line docstring signatures in IDLE calltips

2019-01-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since many of the criteria mentioned in msg219204 are now implemented or out of date, should this issue now be re-closed? -- nosy: +cheryl.sabella ___ Python tracker __

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11291 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11291, 11292 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11291, 11292, 11293 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue33687] uu.py calls os.path.chmod which doesn't exist

2019-01-17 Thread Berker Peksag
Berker Peksag added the comment: New changeset a261b737617ca8d52e04bf3ead346b1b8786a212 by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-33687: Fix call to os.chmod() in uu.decode() (GH-7282) https://github.com/python/cpython/commit/a261b737617ca8d52e04bf3ead346b1b8786a212 -

[issue33687] uu.py calls os.path.chmod which doesn't exist

2019-01-17 Thread Berker Peksag
Berker Peksag added the comment: Thank you for the report, Poul-Henning and thank you for the PR, Timo! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: > If gcc-8.0.1-0.14.fc28.ppc64le miscompiles memcpy(), perhaps the upstream > priority in https://bugzilla.redhat.com/show_bug.cgi?id=1540995 should be > "release blocker". With the bug, memoryview doesn't round properly float: rounds to zero rather than ro

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: The bug occurs when GCC emits a single instruction (stxsspx) for cast + memcpy. I understand that the struct module is not affected because there is a condition branch (if) between the cast ("float x = ...") and the memcpy(). static int np_float(char *p, PyO

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Stefan Krah
Stefan Krah added the comment: Okay, so it's not a severe bug. That leaves us with the question what to do about it. As I said above, other call sites could be affected, too: _struct.c: static int np_float(char *p, PyObject *v, const formatdef *f) { float x = (float)PyFloat_AsDouble(v);

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Stefan Krah
Stefan Krah added the comment: Our mails apparently crossed. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Stefan Krah
Stefan Krah added the comment: Or to put it differently, should we put a specific fix for a single gcc version into memoryview.c? For all we know, a fix will be pushed to Fedora 28 in the next 4 months. -- ___ Python tracker

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Florian Weimer added the comment: We don't know yet if the GCC bug is specific to POWER. That depends on what causes it. Other targets my have double-to-float conversion instructions which hard-code the wrong rounding mode. -- ___ Python tracker

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: A colleague working on clang asked me to test clang: no, clang doesn't have the bug. test_buffer pass as expected with clang -O3. Machine code of the cast + memcpy: (gdb) p $f31 $1 = -21.101 (gdb) disassemble $pc,$pc+40 => 0x10078fbc :

[issue35762] subprocess.Popen with universal_newlines and nonblocking streams failes with "can't concat NoneType to bytes"

2019-01-17 Thread Samuel Bayer
New submission from Samuel Bayer : This bug is probably related to issue 24560. This: >>> import subprocess, fcntl, os p = subprocess.Popen(["python", "-c", 'import time; time.sleep(5)'], stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, universal_ne

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread STINNER Victor
STINNER Victor added the comment: "Or to put it differently, should we put a specific fix for a single gcc version into memoryview.c? For all we know, a fix will be pushed to Fedora 28 in the next 4 months." Right now, test_buffer is skipped in the python3.spec of Fedora (recipe to build the

[issue35734] Remove unused _BaseV4._is_valid_netmask in ipaddress

2019-01-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I changed the subject of this issue as the scope of issue27860 is larger. I will review them and open a new PR for them if appropriate once this one is accepted. -- title: ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Stefan Krah
Stefan Krah added the comment: > For me, the main risk is to forget to remove the workaround once a new GCC > version will be released (in N months). This is why I suggested using the reproducer in configure.ac, setting something like HAVE_GCC_MEMCPY_ROUNDING_BUG and then either a) wrap the *

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would it help if define PACK_SINGLE as below? #define PACK_SINGLE(ptr, src, type) \ do { \ union { \ type value; \ unsigned char raw[siz

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Florian Weimer added the comment: No, GCC will optimize away the union. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2019-01-17 Thread Sergey Bon.
Change by Sergey Bon. : -- keywords: +patch pull_requests: +11294 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2019-01-17 Thread Sergey Bon.
Change by Sergey Bon. : -- keywords: +patch, patch pull_requests: +11294, 11295 stage: -> patch review ___ Python tracker ___ ___ P

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2019-01-17 Thread Sergey Bon.
Change by Sergey Bon. : -- keywords: +patch, patch, patch pull_requests: +11294, 11295, 11296 stage: -> patch review ___ Python tracker ___ ___

[issue35537] use os.posix_spawn in subprocess

2019-01-17 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thank you for the answers, Kyle! > I'll be preparing a patch for our posix_spawn's signal handling. Great! > My mistake in my setuid assessment was pointed out to me- it doesn't seem > like a highly likely attack vector, but it is indeed possible. The spe

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2019-01-17 Thread Berker Peksag
Berker Peksag added the comment: While I agree having more tests are a good thing, I'm not sure if the test in PR 11437 should be merged as it's not specifically testing a feature of the mock module. patch.dict() basically does the following operation (ignoring possible AttributeErrors):

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2019-01-17 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -10872 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35683] Enable manylinux1 builds on Pipelines for CI testing

2019-01-17 Thread Steve Dower
Steve Dower added the comment: I have made the changes I suggested (though correctly...), but ultimately we need to create our own Docker image suitable for running these tests. So for now, I'm proposing in my PR to make most of the change, as well as a few other Pipelines/test-related impro

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2019-01-17 Thread Felipe
Felipe added the comment: Please go ahead with the PR. I can't push this one through, but would be great to have this finally land! On Thu, 17 Jan 2019 at 03:42, Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > @berker.peksag I hav

[issue32866] zipimport loader.get_data() requires absolute zip file path

2019-01-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I believe this bug does not affect Python 3.8: (Using a Python 3.8 virtualenv): % python demo.pyz Reading: resource.txt Length: 19 % python `pwd`/demo.pyz Reading: resource.txt Length: 19 I think it's too risky (and too much work, given it would have to b

[issue32866] zipimport loader.get_data() requires absolute zip file path

2019-01-17 Thread Nina Zakharenko
Change by Nina Zakharenko : -- nosy: +nnja ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2019-01-17 Thread Chris Markiewicz
Chris Markiewicz added the comment: Just a bump to note that the PR (10441) is ready for another round of review. -- nosy: +cjmarkie ___ Python tracker ___ ___

[issue34766] BaseProxy cache should be cleaned when Manager client is reconnected

2019-01-17 Thread Yongnan Wu
Yongnan Wu added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue35763] IDLE calltips: make positional note less obtrusive

2019-01-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : #19903 made calltip.getargspec use inspect.signature. The latter may include '/' following positional-only arguments. Slashes are possible for the growing number of C-coded functions processed with Argument Clinic. They appear in both help output and ID

[issue35764] IDLE: revise calltip doc

2019-01-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : Add cross-reference from Menu section entry. Document '/' for builtins. Check other details. (Also remove 'extension' from end of previous entry.) -- assignee: terry.reedy components: IDLE messages: 333898 nosy: terry.reedy priority: normal sever

[issue35763] IDLE calltips: make positional note less obtrusive

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: #35764 is about revising the calltip doc, including adding something about '/' in signatures. -- ___ Python tracker ___

[issue16638] support multi-line docstring signatures in IDLE calltips

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: The standard calltip box is two lines: signature and docstring header. In most cases, such as int, iter, and min, the effect of this patch is to get both lines of a docstring signature, so the result is not abnormally big. And I agree with Serhiy that gett

[issue23156] Update tix install information in tkinter tix chapter of doc

2019-01-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since tix has been deprecated since 3.6 (according to the docs with commit bd63353b7433ea8aa831ffb158ac29fb646a6fc9), should this ticket be closed as out of date? -- nosy: +cheryl.sabella ___ Python tracker

  1   2   >