[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Ram Rachum
Ram Rachum added the comment: Speaking of that check, the error message is 'Total of weights must be greater than zero', which is a bit misleading. 'All weights must be positive or zero' would be more accurate. Would you like a PR for that? --

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Ram Rachum
Ram Rachum added the comment: Yes, but the docs say that the weights are assumed to be nonnegative. I'm assuming the check is done on total because it'd be expensive to do it on each item. A user reading that error message could understand that it's okay for weights to be negative as long

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > 'All weights must be positive or zero' would be more accurate. That's not what the test checks. It literally checks for "total <= 0.0". -- ___ Python tracker

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-13 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: Also, forgot to add The app crashes pretty quickly for me, to reproduce the error all I have to do is run the colormixer demo and move any of the bars up and down a couple of times. -- ___ Python tracker

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-13 Thread wyz23x2
wyz23x2 added the comment: Ping... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > A user reading that error message could understand that it's > okay for weights to be negative as long as the total isn't, > which as far as I understand isn't true. This seems like another made up issue. One could also argue the opposite case that

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran turtledemo and played with colormixer a few years ago, so slightly older Windows should not matter. Was Python installed with the python.org installer? (The appdate path suggests so.) Your single-user versus my all-user install should not matter.

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread AmirHossein Haji Mohammad Sadegh
New submission from AmirHossein Haji Mohammad Sadegh : It's not wrong but in the example for "continue" in the tutorial, the code prints "Found an even number" for even numbers and "Found a number" for odd numbers. Maybe it would be better if we print "Found an odd number" for odd numbers.

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-13 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: Ran the following tests on Python 3.8.5 32bit colormixer crashed with the same error, python -m turtle did not crash Here's the output of the test suite: PS C:\Users\tusha\AppData\Local\Programs\Python\Python38-32> .\python.exe -m test -ugui -j0 ==

[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Florian Bruhin
Florian Bruhin added the comment: Ah, also see https://bugs.python.org/issue21071#msg292409 where the same thing was mentioned as part of another issue as well. After some discussions in the Python IRC channel, I guess it's acceptable for dicts to raise a ByteWarning here - after all, there

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2020-09-13 Thread Antony Lee
Antony Lee added the comment: To be honest, I don't really remember what exact use case I had in my mind 2 years ago (as I probably worked around it in one way or another). However, one example that I can think of (and that I have actually implemented before) is auto-conversion of C

[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Edson Tadeu M. Manoel
New submission from Edson Tadeu M. Manoel : Here is the inconsistent behavior, when running with `python -bb` (or just `python -b`), caused by an internal cache: >>> import struct >>> struct.calcsize(b'!d') # cache for '!d' uses bytes 8 >>> struct.calcsize('!d') # so there's

[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Florian Bruhin
Florian Bruhin added the comment: Taking the freedom of adding people involved in the `struct` module to the nosy list. -- nosy: +The Compiler, mark.dickinson, meador.inge ___ Python tracker

[issue41777] When using `python -bb`, `struct.calcsize` raises a warning when used with str argument after being used with bytes (might be a larger problem with dicts)

2020-09-13 Thread Edson Tadeu M. Manoel
Edson Tadeu M. Manoel added the comment: > I'm not sure if this warning is intentional, since in Python 3 there seems to > be no special reason for dicts to try to compare 'a' with b'a' (other than > possible implementation details). Okay, there's one special reason, it's the fact that 'a'

[issue41773] Clarify handling of infinity and nan in random.choices

2020-09-13 Thread Ram Rachum
Ram Rachum added the comment: Thanks for your time, and I accept your decision here. I'd appreciate it though if you wouldn't use the term "made up issue" on something that happened to me a couple of days ago. Our opposing positions each have their pros and cons, and it makes sense to me

[issue38967] Improve error message in enum for member name surrounded by underscore.

2020-09-13 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Rubén, for the patch. Thank you, Karthikeyan, for not making me backport it. :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 ___

[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman
Ethan Furman added the comment: New changeset 38c8d3930eb872258a82339bcba3bce1d0e3ac2c by Ethan Furman in branch '3.8': [3.8] bpo-37479: Enum - use correct __format__ (GH-14545) https://github.com/python/cpython/commit/38c8d3930eb872258a82339bcba3bce1d0e3ac2c --

[issue19968] Python does not play well with 'stow'.

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: Closing, as the OP said "Since I can work around it easily enough, I'm set for now." -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Jason! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker

[issue22256] pyvenv should display a progress indicator while creating an environment

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: Can we close this? I guess this enhancement is no longer needed. -- ___ Python tracker ___ ___

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +21284 stage: -> patch review pull_request: https://github.com/python/cpython/pull/9 ___ Python tracker ___

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Emmanuel Arias
New submission from Emmanuel Arias : On this paragrapah the clarification about IIS7 seems there's not connection beacuase is in other sentence. Move the punctuation to connect both the last sentence with the information in the parenthesis. I think the NEWS is not necessary here. --

[issue28499] Logging module documentation needs a rework.

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: As there's (AFAIK) been no progress on this, I'd like to close this issue. Any objections? -- ___ Python tracker ___

[issue40721] PEP0435 (enums) -- there is no standard on enum item letters case

2020-09-13 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +21286 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22231 ___ Python tracker ___

[issue41778] Change a punctuation on documentation

2020-09-13 Thread miss-islington
miss-islington added the comment: New changeset 94bfdee25db31941b187591ae5ae9bf3ed431090 by Emmanuel Arias in branch 'master': bpo-41778: Change a punctuation on documentation. (GH-9) https://github.com/python/cpython/commit/94bfdee25db31941b187591ae5ae9bf3ed431090 -- nosy:

[issue41778] Change a punctuation on documentation

2020-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +21285 pull_request: https://github.com/python/cpython/pull/22230 ___ Python tracker ___

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: I think that's a good change. It makes it clear when reading the source that the print statement at the end of the loop is only executed for odd numbers. Sure, you know this if you execute the code, or if you know how python for loops and continue work. But

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +21287 pull_request: https://github.com/python/cpython/pull/22232 ___ Python tracker ___

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset b3d11abcbc0fcf794f9be29aa78bb3d100a54960 by Emmanuel Arias in branch '3.9': [3.9] bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22232) https://github.com/python/cpython/commit/b3d11abcbc0fcf794f9be29aa78bb3d100a54960

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38967] Improve error message in enum for member name surrounded by underscore.

2020-09-13 Thread miss-islington
miss-islington added the comment: New changeset 2ec67526a6ed3312f4fac22b527ca0ff161531b8 by Zackery Spytz in branch 'master': bpo-38967: Improve the error msg for reserved _sunder_ names in enum (GH-18370) https://github.com/python/cpython/commit/2ec67526a6ed3312f4fac22b527ca0ff161531b8

[issue12174] Multiprocessing logging levels unclear

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: I'd like to close this issue as out of date - anyone object? -- ___ Python tracker ___ ___

[issue40721] PEP0435 (enums) -- there is no standard on enum item letters case

2020-09-13 Thread Ethan Furman
Ethan Furman added the comment: For Python code at least, Guido has proclaimed: https://mail.python.org/pipermail/python-ideas/2016-September/042340.html I recommend naming all enums UPPER_CASE. They're constants (within a namespace) and that's the rule for constants. It's helpful for the

[issue30842] pyenv activate for bash and tcsh

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: If no PR is forthcoming for this, I'd like to close this issue as out of date. Any objections? -- ___ Python tracker ___

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset d09bead93990eed26ecb8fcd02a8a3f6e8fa73b7 by Miss Islington (bot) in branch '3.8': bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22230) https://github.com/python/cpython/commit/d09bead93990eed26ecb8fcd02a8a3f6e8fa73b7

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread Neeraj
Change by Neeraj : -- keywords: +patch nosy: +neerajsamtani nosy_count: 3.0 -> 4.0 pull_requests: +21288 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22234 ___ Python tracker

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread miss-islington
miss-islington added the comment: New changeset b48389d95093c3f912549add8da339edc164bf0d by Sergey Fedoseev in branch 'master': bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763)

[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2020-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: What it prints is irrelevant to static checking. Currently the typeshed stub for the code already exports RegexFlag, so that the following passes mypy but fails at runtime: ``` from re import * def foo(flag: RegexFlag): return match("[a-z]+", "ABC",

[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +21282 pull_request: https://github.com/python/cpython/pull/7 ___ Python tracker ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +21280 pull_request: https://github.com/python/cpython/pull/5 ___ Python tracker ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +21281 pull_request: https://github.com/python/cpython/pull/6 ___ Python tracker ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset c978be283db768743d995f04414c65439a632bdd by Miss Islington (bot) in branch '3.9': bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) (GH-5)

[issue40352] SocketHandler silently drops log messages on re-connect

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: @Oleg In the interests of clarity, can you please give more detail about the network topology and sequence of events in your use case? Where the machine with the SocketHandler is, where the socket server is that it's sending to, where the TCP balancer comes

[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2020-09-13 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +21283 pull_request: https://github.com/python/cpython/pull/8 ___ Python tracker ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- nosy: +sir-sigurd nosy_count: 4.0 -> 5.0 pull_requests: +21279 pull_request: https://github.com/python/cpython/pull/21763 ___ Python tracker ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip
Change by Vinay Sajip : -- versions: +Python 3.10, Python 3.9 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset bf50b0e80a8a0d651af2f953b662eeadd27c7c93 by Miss Islington (bot) in branch '3.8': bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763) (GH-6)

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip
Change by Vinay Sajip : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33239] tempfile module: functions with the 'buffering' option are incorrectly documented

2020-09-13 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-13 Thread Ned Deily
Ned Deily added the comment: In general, we do not backport documentation changes to branches in the security-fix phase of their life cycles and their online versions are only updated for a release. -- status: open -> closed versions: -Python 3.6, Python 3.7

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-13 Thread Jeremy Kloth
Jeremy Kloth added the comment: The error from importing numpy comes from attempting to load a 64-bit DLL in a 32-bit process. This stems from the shared user install directory (now fixed in 3.9, I believe). There is most likely a mix of 32- and 64-bit extensions in the user install

[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily nosy_count: 6.0 -> 7.0 pull_requests: +21290 pull_request: https://github.com/python/cpython/pull/22235 ___ Python tracker ___

[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +21292 pull_request: https://github.com/python/cpython/pull/22237 ___ Python tracker ___

[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +21291 pull_request: https://github.com/python/cpython/pull/22236 ___ Python tracker ___

[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread Ned Deily
Ned Deily added the comment: New changeset 7dbbea75cec27a48b68cc07c23f3f317cacf4a16 by Ned Deily in branch 'master': bpo-39883: Update macOS installer copy of LICENSE. (GH-22235) https://github.com/python/cpython/commit/7dbbea75cec27a48b68cc07c23f3f317cacf4a16 --

[issue41513] High accuracy math.hypot()

2020-09-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +21293 pull_request: https://github.com/python/cpython/pull/22238 ___ Python tracker ___

[issue39883] Use BSD0 license for code in docs

2020-09-13 Thread miss-islington
miss-islington added the comment: New changeset 3c618d0a073ea6863d1b4e2616e284308fbc12fc by Miss Islington (bot) in branch '3.8': bpo-39883: Update macOS installer copy of LICENSE. (GH-22235) https://github.com/python/cpython/commit/3c618d0a073ea6863d1b4e2616e284308fbc12fc --

[issue38486] Dead links in mailbox doc

2020-09-13 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 6.0 -> 7.0 pull_requests: +21294 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22239 ___ Python tracker

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have suggested that you upload the test results as a file. Anyway, 8 errors: the two locale failures I expected (failures #1, #6), test_distutils (#5, multiple failures), test_compileall (#4), and failures for buffer (#2), copy_reg (#3), pickle

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2020-09-13 Thread Daniel Jewell
Daniel Jewell added the comment: In playing with Lib/zipfile.py and Lib/zipimport.py, I noticed that zipfile has supported opportunistic loading of bz2/lzma for ~9 years. However, zipimport assumes only zlib will be used. (Yet, zipfile.PyZipFile will happily create zlib/bz2/lzma ZIP