[issue36996] unittest.mock.patch decorator doesn't work with async functions

2019-05-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13473 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13562 ___ Python tracker

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I got the same ModuleNotFoundError on Arch Linux and https://github.com/python/cpython/pull/13563 fixes it. I believe it can fix the issue on Fedora buildbots, too. -- nosy: +yan12125 ___ Python tracker

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset ea2b76bdc5f97f49701213d105b8ec2387ea2fa5 by Inada Naoki in branch '3.7': bpo-27987: align PyGC_Head to alignof(long double) (GH-13335) https://github.com/python/cpython/commit/ea2b76bdc5f97f49701213d105b8ec2387ea2fa5 --

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +13476 pull_request: https://github.com/python/cpython/pull/13566 ___ Python tracker ___

[issue26836] Add memfd_create to os module

2019-05-25 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I managed to create a setup similar to the buildbot builder "AMD64 Fedora Rawhide Clang Installed 3.x" [1] on Arch Linux. Running test_importlib on an installed CPython copy is fine now: $ /usr/bin/python3.8 -m test.regrtest test_importlib Run tests

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report. If the problem is in asyncio.wait_for() function the real network code can be stripped for the leakage example and replaced with `await asyncio.sleep()`. Would you try to boil down the snippet by converting it into a code that I can

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread ixje
ixje added the comment: Perhaps also worth mentioning is that when we supply None as timeout value in the `wait_for()` in the minimal sample, then it still reports 60MB memory usage. Seems pretty steep for doing basically nothing but looping around. --

[issue36461] timeit: Additional changes for autorange

2019-05-25 Thread Michele Angrisano
Michele Angrisano added the comment: I agree with *target_time*. I'm working on it and soon I'm going to update the pr. -- nosy: +mangrisano ___ Python tracker ___

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Would it work to store it on the class then (once)? A motivation for this change should be provided first: the incorrect behavior it is trying to fix or the enhancement it is providing. -- ___ Python tracker

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- pull_requests: +13474 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/13563 ___ Python tracker ___

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: By the way, I think Python.framework is not needed? https://github.com/python/cpython/commit/1bbf7b661f0ac8aac12d5531928d9a85c98ec1a9#diff-206dc381e448d5121da9a6040a2b13c1 -- ___ Python tracker

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread ixje
New submission from ixje : I have a networked process that looks somewhat like this in its most basic form ``` import asyncio shutting_down = False async def read_message(reader, timeout=30): async def _read(reader: asyncio.StreamReader): try: d = await

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I propose to add the Thead.excepthook() method with the signature compatible with sys.excepthook(). This will allow to set easily per-thread hooks and a global hook. -- nosy: +serhiy.storchaka ___ Python

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: I believe buildbots are fixed. Please re-open if you find otherwise. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread SilentGhost
Change by SilentGhost : -- nosy: -SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37043] Buildbots fail when new files are added

2019-05-25 Thread Zachary Ware
Zachary Ware added the comment: The issue here is not with buildbots, but with installation on POSIX platforms. We do now have a couple of buildbots that install Python to a local location before running the tests, which is what flushes this out (see

[issue37039] IDLE: Zoom Height Restore restores to default, not previous size

2019-05-25 Thread Andre Roberge
Andre Roberge added the comment: I have tried on another computer (Windows 10, screen resolution 1920 x 1080, text scaling 100%) and it works as expected: clicking on Restore Height restores the window's height to its original value. Back to the computer where I reported the problem:

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Nice, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread ixje
ixje added the comment: This is the consumption I'm seeing. -- Added file: https://bugs.python.org/file48357/test_leak_minimal_mem_consumption.png ___ Python tracker ___

[issue26836] Add memfd_create to os module

2019-05-25 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13477 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13567 ___ Python tracker

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: long double was changed to double seven years ago to avoid a different kind of undefined behavior... https://github.com/python/cpython/commit/e348c8d154cf6342c79d627ebfe89dfe9de23817#diff-fb41bdaf12f733cf6ab8a82677d03adc We are going in circles here.

[issue37041] IDLE: path browser unusable on some displays

2019-05-25 Thread Andre Roberge
New submission from Andre Roberge : On my computer (Windows 10, screen resolution 3000 x 2000, scaling of text and other elements set at 200% as the recommended value), the path browser is essentially unusable as the items overlap each other. See the attached image. I found that changing

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37043] Buildbots fail when new files are added

2019-05-25 Thread Jason R. Coombs
New submission from Jason R. Coombs : As [reported here](https://bugs.python.org/issue34632#msg343445), I submitted a pull request that passed all tests locally and in CI, but when accepted, build bots started to fail as a result of new files having been added to the project. It seems it's

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Dan Rose
Dan Rose added the comment: Reopening. While my behavioral expectation may be wrong, the current behavior is inappropriate. It would make more sense for count to have a `__contains__` method which raises a TypeError. -- resolution: rejected -> status: closed -> open

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-25 Thread Michael Felt
Michael Felt added the comment: No problem with trying out your tests. Sent from my iPhone > On 25 May 2019, at 00:19, Erwan Le Pape wrote: > > > Erwan Le Pape added the comment: > > Thanks for testing that. It's good that you used an actual address because > that eliminates the

[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2019-05-25 Thread Big Stone
Big Stone added the comment: any hope to have a SQLite refresh in Python-3.8.0b1 for Windows/Mac ? It's generally the ideal / less annoying moment to do so. -- ___ Python tracker

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c3738cfe63b1f2c1dc4a28d0ff9adb4e9e3aae1f by Jason R. Coombs (Chih-Hsuan Yen) in branch 'master': bpo-34632: fix installation of importlib.metadata (#13563) https://github.com/python/cpython/commit/c3738cfe63b1f2c1dc4a28d0ff9adb4e9e3aae1f

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Oops apparently my fix is incomplete. From the builder "AMD64 Fedora Rawhide Clang Installed 3.x" [1]: ModuleNotFoundError: No module named 'test.test_importlib.data' [1] https://buildbot.python.org/all/api/v2/logs/824407/raw --

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: > While typically pdb is not used in tests, it is just good practice, given > that there can only be a single trace function. IMO invoking "good practice" is not sufficient to motivate such a change. The proposed change is not backward compatible. A common

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- pull_requests: +13475 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/13565 ___ Python tracker ___

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread SilentGhost
SilentGhost added the comment: This seem like a misdirected expectation. count returns a regular iterator and the purpose behind it is not to enable membership checks, this only works because it's a regular iterators and normal rules for checking membership are applied. In any case, it is

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: I started trying to replicate the failure. I got as far as this Dockerfile: ``` FROM fedora:rawhide RUN yum install -y clang make git RUN git clone https://github.com/python/cpython WORKDIR cpython RUN ./configure RUN make ``` And then running `./python

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Martin Panter
Martin Panter added the comment: Problems with long-running iterators are already discussed in: Issue 31815: rejected proposal to check for interrupts Issue 33939: proposal to flag iterators as being infinite -- nosy: +martin.panter ___ Python

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-25 Thread daniel hahler
daniel hahler added the comment: > In that case the proposed change builds an implicit stack of trace functions > that is increased each time the interpreter executes this hard breakpoint Very valid and good point. Would it work to store it on the class then (once)? FWIW: pdbpp uses a

[issue37039] IDLE: Zoom Height Restore restores to default, not previous size

2019-05-25 Thread Andre Roberge
Andre Roberge added the comment: As reported on the idle-dev list, on my system (Windows 10, display resolution 3200 x 200, scaling of text at 200% as recommended), the Zoom Height changes the height of the window and Idle's status bar is no longer visible. Clicking on Restore Height does

[issue37042] wait_for(coro, timeout=0) memleak

2019-05-25 Thread ixje
ixje added the comment: Hi Andrew, There is an attached minimal example (that differs from the code given in the first comment). I couldn't attach 2 files. So I pasted the code of one file to showcase how we could run into the issue, then a minimal reproducible example without network code

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: > By the way, I think Python.framework is not needed? Correct. That was an artifact that I unintentionally added. I've submitted https://github.com/python/cpython/pull/13566 to address the two concerns. I've also opened issue37043 and issue37044 to

[issue37044] Build/test artifacts not ignored for framework build

2019-05-25 Thread Jason R. Coombs
New submission from Jason R. Coombs : When developing on macOS, after some build/test operations (I'm not sure exactly which, but seemingly relating to a framework build), artifacts are generated which aren't ignored. As a result, it's easy for them to leak into a merge request as they did

[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset f7fba6cfb62edfc22e9b2e12a00ebaf5f348398e by Jason R. Coombs in branch 'master': bpo-34632 fix buildbots and remove artifact (GH-13566) https://github.com/python/cpython/commit/f7fba6cfb62edfc22e9b2e12a00ebaf5f348398e --

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-05-25 Thread daniel hahler
daniel hahler added the comment: I've just found that I've created an issue with regard to `do_debug` for this already (https://bugs.python.org/issue36388), and a PR: https://github.com/python/cpython/pull/12479. -- ___ Python tracker

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the type to behavior because the hard-coded pixel heights prevent the browsers form being usable on at least one HiDPI monitor. I closed #37041 in favor of this on the presumption that ttk.Treeview will work on such monitors, at least after

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andre, we need to severely trim quotes when posting by email. A summary with added info. Andre: 2000 pixels / 183 mm = 10.9 pixels / mm Terry: 1440 pixels / 336 mm = 4.3 pixels / mm Andre: Windows Display setting text size, custom scaling = 200%, 200% Terry:

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: And of course, someone who has this issue can at worse recompile Python without pymalloc. -- ___ Python tracker ___

[issue37043] Buildbots fail when new files are added

2019-05-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: In GH-13565, @yan12125 provides [this reference](https://github.com/python/buildmaster-config/blob/master/master/custom/factories.py) to the buildbot code that copies the code and thus imposes the requirement to declare source directories. --

[issue37043] Buildbots fail when new files are added

2019-05-25 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not marking this bug as "Fixed" as the original complaint about obmalloc'd structs with a long double not being aligned is still going to be true on 32-bit platforms for 2.7 - 3.7. We've merely increased the obmalloc alignment to 16-bytes on 64-bit

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: commit reverted in https://github.com/python/cpython/commit/2156fec1f7a8f9972e90cdbaf404e3fd9eaccb35 -- ___ Python tracker ___

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Dan Rose
Dan Rose added the comment: The general problem with infinite iterators is indeed a bigger issue and its resolution would probably resolve this issue too. With the examples you gave at least the user can ctrl-c to interrupt. Entering an infinite, *uninterruptible* loop is a consequence so

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +13478 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13569 ___ Python tracker ___

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-25 Thread Michael Felt
Michael Felt added the comment: On 23/05/2019 18:16, Jake Tesler wrote: > Jake Tesler added the comment: > > Michael Felt - > If you would like some help with adding/building AIX support for this > functionality, tag me, I'd be glad to help out! :) > > -- Thanks - I'll try to look at

[issue37051] Glossary item "hashable" incorrect

2019-05-25 Thread John Riehl
New submission from John Riehl : The entry in the glossary for "hashable" (https://docs.python.org/3/glossary.html#term-hashable) states "All of Python’s immutable built-in objects are hashable." Tuples are described as immutable sequence types

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: > I propose to add the Thead.excepthook() method with the signature compatible > with sys.excepthook(). This will allow to set easily per-thread hooks and a > global hook. I don't see the relationship between the API (signature) and the

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, how is zoom/restore height working on your Mac? On my updated Macbook Air Mohave, the zoom bottom margin of 88 is too large. Since IDLE starts fully zoomed on this small screen, I determined this by shrinking Shell and then zooming it. The result

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you. Along with your path browser report, things are much clearer. With variable pixel densities and custom settings, we cannot use fixed pixel or even mm numbers. 114 is right for me because I have Display Setting "Change the size of text, apps, and

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2019-05-25 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I created pull request bpo-29699 to fix this issue. It adds an additional exception handler to ignore FileNotFoundError for most of the try blocks that already handle OSError. I decided not to add it to the initial os.open() call. This should provide the

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Dan Rose
Dan Rose added the comment: Oops you are right. These enter uninterruptible loops too. They are exceptional situations and should do the expected thing - throw exceptions as well. -- ___ Python tracker

[issue37046] Implement PEP 586: add Literal type constructor to typing

2019-05-25 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi : The actual implementation is performed by type checkers like mypy. We just need to add `Literal` to the `typing` module. -- assignee: levkivskyi components: Library (Lib) messages: 343503 nosy: gvanrossum, levkivskyi, michael0x2a priority: normal

[issue37047] Refactor AsyncMock setup logic in create_autospec

2019-05-25 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : * In create_autospec there is some logic to detect if the function is an async function this could be refactored out as a private function. * create_autospec has initialization code for async mock. For synchronous functions this is done with

[issue37048] ssl module: QUIC support for HTTP/3

2019-05-25 Thread Jeremy Lainé
Jeremy Lainé added the comment: I have started implementing a QUIC stack in Python [1] so I'll share a couple of thoughts in addition to Christian's two valid points: - SSLSocket is almost certainly not going to be the right entry point. QUIC's interface to TLS is entirely focused on passing

[issue37050] Remove expr_text from ast node FormattedValue

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36933] sys.set_coroutine_wrapper documented as to be removed in 3.8 (still there)

2019-05-25 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Some discussion in https://github.com/python/cpython/pull/13349#discussion_r284567113 -- ___ Python tracker ___

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Andre Roberge
Andre Roberge added the comment: On Sat, May 25, 2019 at 9:49 PM Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > Thank you. Along with your path browser report, things are much > clearer. With variable pixel densities and custom settings, we cannot > use fixed pixel or even

[issue4356] Add "key" argument to "bisect" module functions

2019-05-25 Thread Kevin G
Kevin G added the comment: Can anyone add "reverse" support? Key and reverse support are both functional requirement. -- nosy: +flyingosprey ___ Python tracker ___

[issue37047] Refactor AsyncMock setup logic in create_autospec

2019-05-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13482 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13574 ___ Python tracker

[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-25 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +13481 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13573 ___ Python tracker

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have a 27" 2560X1440 screen. For me: >>> import tkinter; tkinter.Tk().tk.call('tk', 'scaling') 1.333... I presume 3200x200 should be 3200x2000 and that the diagonal size is small enough that the screen is a HiDPI screen, making tk's scaling above 1.4, so

[issue37050] Remove expr_text from ast node FormattedValue

2019-05-25 Thread Eric V. Smith
New submission from Eric V. Smith : I added the expr_text optional field to the FormattedValue node in order to implement the '=' feature of f-strings (see issue 36817). However, the expr_text field isn't strictly needed. Instead, the same feature could be added with another Constant string

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Andre Roberge
Andre Roberge added the comment: Thanks. I did a quick check. 114 solves the problem of the Restore Height not working, but the status bar is still hidden. To me, the crucial part of the problem was the restore height not working, so I'd be happy with this. At 164, I can see parts of the

[issue36933] sys.set_coroutine_wrapper documented as to be removed in 3.8 (still there)

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +13485 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13577 ___ Python tracker

[issue3693] Obscure array.array error message

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: -13484 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3693] Obscure array.array error message

2019-05-25 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13484 pull_request: https://github.com/python/cpython/pull/13577 ___ Python tracker ___

[issue22385] Define a binary output formatting mini-language for *.hex()

2019-05-25 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +13486 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13578 ___ Python tracker

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2019-05-25 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +13487 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13580 ___ Python tracker

[issue37046] Implement PEP 586: add Literal type constructor to typing

2019-05-25 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +13480 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13572 ___ Python tracker

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 25/05/2019 à 23:09, STINNER Victor a écrit : > > I don't see the relationship between the API (signature) and the ability to > set a per-thread hook. > > I'm not convinced that a per-thread hook is needed. Indeed, if you write your own Thread class, you

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +13483 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13576 ___ Python tracker

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread STINNER Victor
STINNER Victor added the comment: > Indeed, if you write your own Thread class, you can add a try...except > in the Thread.run() method. You don't need a dedicated > Thread.excepthook() method. Exactly. You can already do you best in your run() method to handle exceptions.

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: if someone runs into an actual need for this on 32-bit builds, please provide details and feel free to reopen the issue. closing as i don't believe there is any more for us to do. -- resolution: -> wont fix stage: needs patch -> resolved status:

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: -Python 2.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37045] Implement PEP 591: add Final qualifier and @final decorator to typing

2019-05-25 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi : The actual implementation is performed by type checkers like mypy. We just need to add the names to the `typing` module. -- assignee: levkivskyi components: Library (Lib) messages: 343501 nosy: gvanrossum, levkivskyi, msullivan priority: normal

[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-05-25 Thread Ned Deily
Ned Deily added the comment: I don't understand what the issue is here. Can you explain or point to an explanation of why Homebrew is not linking to SQLite? Is it just not to the Apple-supplied SQLite? -- components: +macOS nosy: +ned.deily, ronaldoussoren

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current patch fixed the hidden status bar on Windows. I just had to increase the margin reserved for the taskbar from 76 to 114. This will also work if the taskbar is moved to the top of the screen. If the taskbar is moved to either side or if it is

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-25 Thread Marco Sulla
Marco Sulla added the comment: > if you have entry points installed then moving them to another > machine would break their shebang lines. Not if you port it on the same OS using, for example #!/usr/bin/env python3 > And even if you do it on your local machine there's no guarantee >

[issue22385] Define a binary output formatting mini-language for *.hex()

2019-05-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given that we have f-strings, I don't think a format mini language makes as much sense. My PR adds support for separators to the .hex() methods (and to binascii.hexlify) via a parameter. Extending beyond what MicroPython already does in its binascii

[issue37041] IDLE: path browser unusable on some displays

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another reason to replace IDLE's custom tree widget with hard-coded constants with ttk.Treeview. I am closing this because I believe that #31552 will solve this problem. For an initial check, run the following test code, extracted from

[issue37045] Implement PEP 591: add Final qualifier and @final decorator to typing

2019-05-25 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +13479 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13571 ___ Python tracker

[issue36979] ncurses extension uses wrong include path

2019-05-25 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: This explains some of the build/linkage problems encountered in issue #36630, and that I encountered while working on issue #36982. -- nosy: +yan12125 ___ Python tracker

[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-25 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi : The actual implementation is performed by type checkers like mypy. We just need to add `TypedDict` to the `typing` module. -- assignee: levkivskyi components: Library (Lib) messages: 343506 nosy: gvanrossum, levkivskyi priority: normal severity:

[issue37048] ssl module: QUIC support for HTTP/3

2019-05-25 Thread Christian Heimes
New submission from Christian Heimes : This ticket collects information for QUIC [1][2] support and tracks, which APIs have to be added to Python in order to implement a QUIC protocol stack on top of Python's ssl and socket module. QUIC is a "UDP-Based Multiplexed and Secure Transport"

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread STINNER Victor
STINNER Victor added the comment: > A Thread.excepthook() method does not allow to notify exceptions raised in > C-created threads ("dummy threads"). The main difference between sys.excepthook and threading.excepthook is that the threading hook displays the thread name. Which output do you

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, I had overlooked the issue with global variables at shutdown. Though that issue only occurs with daemonic threads, since non-daemonic threads are joined before global variables are cleared. In any case, I think the namedtuple / structseq solution is

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread STINNER Victor
STINNER Victor added the comment: > In any case, I think the namedtuple / structseq solution is elegant, because > we can add additional information later I used the same design for the new sys.unraisablehook in bpo-36829 and I'm already working on adding a new 'err_msg' field to the

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding the __contains__() method to the count iterator would not solve the general problem with infinite iterators. For example with the following expressions: -1 in filter(None, itertools.count()) -1 in map(float, itertools.count()) It is not

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread miss-islington
miss-islington added the comment: New changeset 1b85f4ec45a5d63188ee3866bd55eb29fdec7fbf by Miss Islington (bot) in branch '3.7': bpo-27987: pymalloc: align by 16bytes on 64bit platform (GH-12850) https://github.com/python/cpython/commit/1b85f4ec45a5d63188ee3866bd55eb29fdec7fbf --

[issue37039] IDLE: Zoom Height Restore restores to default, not previous size

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andre Roberge reported on idle-dev that Restore Height has no effect for him with Python 3.7.3, 32 bit, on Windows 10. Since it works for me on Win 10, 3.7.3-32 bit local debug build and 3.7.3-64 bit installed and ditto for 3.8, I am initially baffled.

[issue1230540] sys.excepthook doesn't work in threads

2019-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: A Thread.excepthook() method does not allow to notify exceptions raised in C-created threads ("dummy threads"). Also, as I said already, you can get the current thread by calling threading.current_thread() in the except hook. There is no need to pass it

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is what I've found for (32-bit) ARM: - "long double" is 8 bytes long, so it's probably the same as "double" (see http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0274b/index.html) - the standard alignment for "double" is 8 bytes (see

[issue37044] Build/test artifacts not ignored for framework build

2019-05-25 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >