[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2020-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: #41075 is specifically about history navigation. I tried Shift/Control/Alt - Up/Down and none worked. Rebinding just Up/Down did (in Shell, with Editor unchanged). But not having up/down work to move between lines in the Shell multiline statement entry

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, marking this as closed. -- resolution: -> works for me stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41455] Python Devguide differs from python docs

2020-08-01 Thread Yaroslac
New submission from Yaroslac : As I can see here https://github.com/python/devguide/blob/master/garbage_collector.rst#collecting-the-oldest-generation > the GC only triggers a full collection of the oldest generation if the ratio > long_lived_pending / long_lived_total is above a given value

[issue41075] IDLE: Better support history navigation

2020-08-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +epaine ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41452] Inefficient BufferedReader.read(-1)

2020-08-01 Thread Ma Lin
Ma Lin added the comment: Some underlying stream has fast-path for .readall(). So close this issue. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41451] Cannot subclass typing.Generic with __weakref__ slot in Python 3.6

2020-08-01 Thread Joshua Bronson
Joshua Bronson added the comment: Thanks so much, @oremanj! Indeed, merely subscripting the class triggers the bug, and your 'del slots' workaround does the trick! For completeness, there is an updated (yet more minimal) repro below/attached. """Repro for Python 3.6 slots + weakref +

[issue41454] while loop bug on list

2020-08-01 Thread Eric V. Smith
Eric V. Smith added the comment: You're mutating the list while iterating over it, which is causing the behavior you're seeing. This isn't a bug. See for example https://stackoverflow.com/questions/6260089/strange-result-when-removing-item-from-a-list Also, when reporting bugs in the

[issue41451] Cannot subclass typing.Generic with __weakref__ slot in Python 3.6

2020-08-01 Thread Ned Deily
Ned Deily added the comment: Thank you for the report and for the analysis. As you probably know, Python 3.6 is now in the security phase of its life cycle so generally only fixes for security-related issues are provided at this point. This issue doesn't seem to fall into that category. If

[issue41075] IDLE: Better support history navigation

2020-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: History and up/down is apart of #2704. It has patches that include the up/down change, but I don't expect to use any of them as they are. I tried Shift/Control/Alt - Up/Down and none worked. Rebinding just Up/Down did (in Shell only, leaving up/down

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-08-01 Thread Tim Peters
Tim Peters added the comment: That text is fine, if you feel something needs to be said at all. I really don't. A Pareto distribution of this kind with parameter <= 1.0 has infinite expected value - VERY long tail. Anyone who knows what they're doing already knows that. The reason the

[issue41402] email: ContentManager.set_content calls nonexistent method encode() on bytes

2020-08-01 Thread Johannes Reiff
Johannes Reiff added the comment: Thanks! Is there anything I need to do regarding the Python 3.8 and 3.9 backports? -- ___ Python tracker ___

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: How about this wording? If alpha is smaller than 0.1, an occasional OverflowError can arise when the variate exceeds the range of Python float. I like using 0.1 because it's easy and gives us some wiggle room. The actual cutoff is lower:

[issue41075] IDLE: Better support history navigation

2020-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, history works fine with the current bindings to alt-p and alt-n, or with binding to up or down, but not with binding to modifier-up/down. -- ___ Python tracker

[issue41454] while loop bug on list

2020-08-01 Thread Dexter Ramos
Dexter Ramos added the comment: Thank you Mr. Erick Smith. Now I know. I also tried to find the hard way like this: finding nemo- [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4] --->index [4, 1, 2, 5, 7, 4, 2, 8, 9, 5, 3, 2, 4, 6] --->original list /

[issue29269] test_socket failing in solaris

2020-08-01 Thread Dennis Clarke
Dennis Clarke added the comment: Well here we are in 2020 and Solaris systems are still running just fine. In fact, some big Fujitsu SPARC systems are running in production for years and years and also, no surprise, this test still fails horrifically on old stable Solaris 10. Python is

[issue41454] while loop bug on list

2020-08-01 Thread Dexter Ramos
New submission from Dexter Ramos : The output should have no duplicates but it has. When I added another "5" on the list it goes okay and is still okay if I add more. But when there is only two 5's it won't do its job. -- components: Windows files: app.py messages: 374661 nosy:

[issue41447] Resource Tracker in Multiprocessing Shared Memory not working correctly

2020-08-01 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41445] Adding configure temporary files to gitignore

2020-08-01 Thread fj92f3jj923f923
fj92f3jj923f923 added the comment: Closing it as not important :) -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 5c3270939c09e4c8e80fd26449b718a998701912 by Raymond Hettinger in branch 'master': bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695) https://github.com/python/cpython/commit/5c3270939c09e4c8e80fd26449b718a998701912

[issue40978] Document that typing.SupportsXXX protocols are runtime checkable

2020-08-01 Thread Luciano Ramalho
Luciano Ramalho added the comment: I have added a note about the protocols decorated with `@runtime_checkable` to the `Procools` section of the reorganized `typing.rst` in https://bugs.python.org/issue40979. I also expanded the note about the caveats of `@runtime_checkable` in its entry in

[issue40979] typing module docs: keep text, add subsections

2020-08-01 Thread Luciano Ramalho
Luciano Ramalho added the comment: I have incorporated Guido's suggestions and added additional subsections to make it easier to navigate the page. I also added notes that fix the issue https://bugs.python.org/issue40978 — "Document that typing.SupportsXXX protocols are runtime checkable"

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-08-01 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41449] An article on Python 3 stdout and stderr output buffering

2020-08-01 Thread tedder
Change by tedder : -- nosy: +tedder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41446] New demo, using a web api

2020-08-01 Thread Mariatta
Mariatta added the comment: Thanks for your interest in adding this to CPython but I think this demo does not belong in CPython repository. Perhaps it should be written as a demo for helioviewer API and be part of helioviewer documentation. We already have a documentation for urllib for how