[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hmm, the turtle demo is barely usable on the mac: * The "Choose Example from Menu" is a label and not clickable. * The left pane is clickable but does nothing. * When code is chosen from the menu the font-size is small. * The "start" button label is

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The turtle demo is easily accessible through the > menus via Help > Turtle Thanks. I didn't see that one land. It is a nice improvement. -- ___ Python tracker

[issue38669] patch.object should raise another error when first argument is a str

2019-11-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord, xtreak ___ Python tracker ___ ___

[issue38669] patch.object should raise another error when first argument is a str

2019-11-02 Thread Elena Oat
New submission from Elena Oat : When using patch.object with first argument as a string, e.g. ´´patch.object('SomeClass', 'somemethod')´´ this raises ´´AttributeError: Something does not have the attribute 'do_something'´´. This should instead warn user that the correct type for the first

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: @rhettinger: The turtle demo is easily accessible through the menus via Help > Turtle Demo. It is nice to see there are others interested in IDLE's improvement. :-) -- ___ Python tracker

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: This feature may be fine or it may not. I haven't been able to apply the PR and get a working Python 3.9 with Tkinter support, nor have I seen the requested additional screen shots. Ideally, major changes in appearance or functionality should have

[issue38430] Memory leak in ThreadPoolExecutor + run_in_executor

2019-11-02 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-02 Thread Kyle Stanley
Kyle Stanley added the comment: > No, that would be too much work. Writing a thread pool or process pool from > scratch is an extremely tedious task and it will take us years to stabilize > the code. It's not simple. > We should design *our* API correctly though. And that means that we

[issue38653] pkgutil.extend_path fails with zipped eggs if not at first place

2019-11-02 Thread László Kiss Kollár
Change by László Kiss Kollár : -- nosy: +lkollar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24159] Misleading TypeError when pickling bytes to a file opened as text

2019-11-02 Thread stein-k
Change by stein-k : -- nosy: +stein-k ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38430] Memory leak in ThreadPoolExecutor + run_in_executor

2019-11-02 Thread Yury Selivanov
Yury Selivanov added the comment: > We should either remove the API (not realistic dream at least for many years) > or fix it. There is no choice actually. I don't understand. What happens if we don't await the future that run_in_executor returns? Does it get GCed eventually? Why is memory

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-02 Thread Yury Selivanov
Yury Selivanov added the comment: > From my understanding, the executor classes are designed around spawning the > threads (or processes in the case of ProcessPoolExecutor) as needed up to > max_workers, rather than spawning them upon startup. The asynchronous > spawning of threads or

[issue38592] Add pt-br to the language switcher at the Python docs website

2019-11-02 Thread Marco Rougeth
Change by Marco Rougeth : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38657] String format for hexadecimal notation breaks padding with alternative form

2019-11-02 Thread Vedran Čačić
Vedran Čačić added the comment: It seems that you're confusing two things that really don't have much in common. * (field) width is a _number_, saying how many characters (at least) should the formatted output take. * padding is a bool (or maybe a char), saying what should be put inside the

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Can we go back to the original issue? Should we just > document the "early out" behaviour on hitting zero, > or should we follow the suggestion to check for bad > data and raise? I would follow Tim's recommendation to document it and be done with it.

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38668] Update os.path documentation regarding recommended types

2019-11-02 Thread Christoph Reiter
New submission from Christoph Reiter : At the very top of https://docs.python.org/3.9/library/os.path.html there is this section regarding str and bytes: > The path parameters can be passed as either strings, or bytes. They also accept path-like since Python 3.6, see

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-11-02 Thread miss-islington
miss-islington added the comment: New changeset aa1fee8ffb0fb77a873c69d311759081346f8f4a by Miss Skeleton (bot) in branch '3.8': bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679) https://github.com/python/cpython/commit/aa1fee8ffb0fb77a873c69d311759081346f8f4a -- nosy:

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-11-02 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-11-02 Thread miss-islington
miss-islington added the comment: New changeset 72b874a2ac6a7c1931e8b60fb865dc57adb441ee by Miss Skeleton (bot) in branch '3.7': bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679) https://github.com/python/cpython/commit/72b874a2ac6a7c1931e8b60fb865dc57adb441ee --

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-11-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +16545 pull_request: https://github.com/python/cpython/pull/17032 ___ Python tracker ___

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-11-02 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: -miss-islington versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-11-02 Thread miss-islington
miss-islington added the comment: New changeset 8d4fef4ee2a318097f429cf6cbd4fb2e430bb9da by Miss Skeleton (bot) (Ram Rachum) in branch 'master': bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679) https://github.com/python/cpython/commit/8d4fef4ee2a318097f429cf6cbd4fb2e430bb9da

[issue38422] Clarify docstrings of pathlib suffix(es)

2019-11-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +16544 pull_request: https://github.com/python/cpython/pull/17031 ___ Python tracker ___

[issue38279] multiprocessing example enhancement

2019-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I rejected the accompanying PR and the changes it proposed, therefore it seems reasonable to close this issue as well. -- nosy: +pitrou resolution: -> rejected stage: patch review -> resolved status: open -> closed

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you still plan to backport to 3.7 and 3.8? -- ___ Python tracker ___ ___ Python-bugs-list

[issue37607] segfault running code in jupyter on macOS 10.14.5 - crashed on child side of fork pre-exec

2019-11-02 Thread Ned Deily
Ned Deily added the comment: > should I report issue to libcurl It wouldn't hurt although they probably are aware of the problem. -- ___ Python tracker ___

[issue38657] String format for hexadecimal notation breaks padding with alternative form

2019-11-02 Thread Pete Wicken
Pete Wicken added the comment: Given the comments above I appreciate that this is actually due to the padding being the total field width rather than the padding of the digits themselves. Having revised the documentation again, I believe this following line is explaining it: "When no

[issue38667] PYTHONCOERCECLOCALE=0 ignored

2019-11-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38666] is for tuples

2019-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: "is" compares by identity not equality. Since tuples are immutable, the interpreter is free to reuse or not reuse the same tuple instance when it appears multiple times in a program. This is an implementation detail not a bug. -- nosy:

[issue38667] PYTHONCOERCECLOCALE=0 ignored

2019-11-02 Thread Christoph Reiter
New submission from Christoph Reiter : Python 3.7.5rc1 and 3.8.0 on Ubuntu 19.10 $ LC_CTYPE=C PYTHONCOERCECLOCALE=warn python3 -c "import sys; print(sys.getfilesystemencoding())" Python detected LC_CTYPE=C: LC_CTYPE coerced to C.UTF-8 (set another locale or PYTHONCOERCECLOCALE=0 to disable

[issue38666] is for tuples

2019-11-02 Thread sattari
New submission from sattari : The following code gives different results interactive and script mode: e = (1, 2) f = (1, 2) print(e is f) -- messages: 355867 nosy: sattari priority: normal severity: normal status: open title: is for tuples type: behavior versions: Python 3.7, Python

[issue36490] Modernize function signature in Archiving section of shutil doc

2019-11-02 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Sorry for the lack of response on this one; it just slipped off my radar. It seems quite clear that my understanding was incomplete as to why the signatures were expressed this way. As such, I presume this can just be closed as NOTABUG? I'll close in a week

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Tal Einat
Tal Einat added the comment: With the support from Guido and others here and on idle-dev, Terry and I will be moving forward with this change. However, I take Raymond's concern about this "killing our teaching workflow" seriously. Raymond, let's please work to figure out how to make sure

[issue38430] Memory leak in ThreadPoolExecutor + run_in_executor

2019-11-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: The API exists, people use it and get the memory leak. We should either remove the API (not realistic dream at least for many years) or fix it. There is no choice actually. -- ___ Python tracker

[issue38601] Couldn't able to install multiple python minor version in windows due to EXE script

2019-11-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: -Python 3.5, Python 3.6 ___ Python tracker ___

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-02 Thread Kyle Stanley
Kyle Stanley added the comment: > And that's why I like it. If we add ProcessPool it will have the same > argument: concurrency. > max_workers isn't correct, as we want to spawn all threads and all processes > when we start. Thus btw makes me think that initializing threads/processes in >