[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

[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):

[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

[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

[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:

[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

[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 ___ ___

[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 ___

[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 ___ ___

[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

[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:

[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 ___ ___

[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 ___

[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 ___ ___

[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
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

[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

[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
Change by STINNER Victor : -- keywords: +patch, patch, patch pull_requests: +11275, 11276, 11277 stage: -> patch review ___ Python tracker ___

[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 ___

[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

[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

[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:

[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

[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

[issue35537] use os.posix_spawn in subprocess

2019-01-17 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > It should be compared to the current code. Currently, _posixsubprocess uses a > loop calling execv(). I don't think that calling posix_spawn() in a loop > until one doesn't fail is more inefficient. > The worst case would be when applying process

[issue35683] Enable manylinux1 builds on Pipelines for CI testing

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe it was Louie Lu's idea, #30290, to check more than one line. I am glad it helped. -- ___ Python tracker ___

[issue34161] (good first issue) Tutorial 7.1 str.format() code example syntax error

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

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

2019-01-17 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thanks for the info on CS_PATH, Victor. IMHO it'd make sense to use the libc-provided default PATH at least in shutil.which() since its intent is to emulate "which" from the default shell. -- ___ Python tracker

[issue35761] Allow dataclasses to be updated in place

2019-01-17 Thread Eric V. Smith
Eric V. Smith added the comment: What would the interaction be between other_instance and changes? Why is this API different from .replace()? -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker

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

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: /go/so -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the obsolete text is not to revised, it should be removed, as Ned suggested. I don't now think a replacement list is needed. Serhiy, if you have any opinion either way, please say go. -- stage: patch review -> needs patch versions: +Python 3.8

[issue26414] os.defpath too permissive

2019-01-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Remove current directory from posixpath.defpath to enhance security ___ Python tracker

[issue35761] Allow dataclasses to be updated in place

2019-01-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm don't see the point of this proposal. The fields of dataclasses are already mutable, so they can be updated just like any other object (no need for a special mechanism): a = InventoryItem(name='Widget', unit_price=37.25, quantity_on_hand=10)

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

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

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

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

[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

[issue30290] IDLE: add tests for help_about.py

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Postscript: this test that the retrieved text has at least two lines caught a bug in the new Windows Store python distribution. self.assertEqual(printer._Printer__lines[1], dialog._current_textview.textView.get('2.0', '2.end')) The

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

2019-01-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +11298 stage: needs patch -> patch review ___ Python tracker ___ ___

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

2019-01-17 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +11301, 11302 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34161] (good first issue) Tutorial 7.1 str.format() code example syntax error

2019-01-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11304 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34161] (good first issue) Tutorial 7.1 str.format() code example syntax error

2019-01-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11310 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34161] (good first issue) Tutorial 7.1 str.format() code example syntax error

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry for the noise. It seems like a bug to me that GitHub keeps a secret link to the original title and uses it in the merge box. -- ___ Python tracker

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

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset cf27c06229eb4b8280bb5f2b93a57e33163411f4 by Terry Jan Reedy in branch 'master': bpo-23156: Remove obsolete tix install directions (GH-11595) https://github.com/python/cpython/commit/cf27c06229eb4b8280bb5f2b93a57e33163411f4 --

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

2019-01-17 Thread miss-islington
miss-islington added the comment: New changeset ebb08beb08461eb5f147aaca6f86cafa4ea15bff by Miss Islington (bot) in branch '3.7': bpo-23156: Remove obsolete tix install directions (GH-11595) https://github.com/python/cpython/commit/ebb08beb08461eb5f147aaca6f86cafa4ea15bff -- nosy:

[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

[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

[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

[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:

[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:

[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)

[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:

[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

[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

[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

[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:

[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

[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

[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

[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

[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

[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

[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:

[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

[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 ___

[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 ___ ___

[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

[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

[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 ___

[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

[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

[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? --

[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 ___ ___

[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.

[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 --

[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 ___

[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

[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, patch pull_requests: +11286, 11287 stage: -> patch review ___ 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, 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:

[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

[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

[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 ___

[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:

[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 *),

[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:

[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."""

[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

[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

[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

[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

[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,

  1   2   >