[issue41457] Implement random.shuffled

2020-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue26393 and issue27964. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> random.shuffled ___ Python tracker

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Look at the next subsection for example with 1. and 2. -- nosy: +terry.reedy ___ Python tracker ___

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-02 Thread Raymond Hettinger
New submission from Raymond Hettinger : For float inputs, the math.prod() function could be made smarter about avoiding overflow() and underflow(). That would also improve commutativity as well. Other tools like math.hypot() already take measures to avoid overflow/underflow and to improve

[issue41440] os.cpu_count doesn't work on VxWorks RTOS

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do you know if any core devs have experience with VxWorks? It is not even listed in https://devguide.python.org/experts/#platforms. -- nosy: +terry.reedy ___ Python tracker

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread Nathan Maynes
Nathan Maynes added the comment: I'd like to create a pull request for this issue. Should be able to complete it this evening. -- nosy: +nmaynes ___ Python tracker ___

[issue41459] pickle.load raises SystemError on malformed input

2020-08-02 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41439] test_uuid.py and test_ssl.py failures on OS without os.fork

2020-08-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: some test cases in test_uuid.py and test_ssl.py fail on some operating systems because of no os.fork support -> test_uuid.py and test_ssl.py failures on OS without os.fork ___ Python tracker

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2020-08-02 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: The ticket could be closed, right? The fix was merged quite some time ago. -- nosy: +Tiger-222 ___ Python tracker ___

[issue41459] pickle.load raises SystemError on malformed input

2020-08-02 Thread Guillaume
New submission from Guillaume : pickle.load() raises a criptic SystemError with malformed input, whereas I would have expected an UnpicklingError. "SystemError: deallocated bytearray object has exported buffers" Because pickle is not meant for use on untrusted input, this likely would not

[issue7291] urllib2 cannot handle https with proxy requiring auth

2020-08-02 Thread Alexey Namyotkin
Alexey Namyotkin added the comment: It has been 5 years, now the urllib3 is actively used, but it also inherited this problem: if no authentication data has been received, then the method _tunnel raises an exception OSError that does not contain response headers. Accordingly, this exception

[issue41439] test_uuid.py and test_ssl.py failures on OS without os.fork

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are this and similar issues theoretical ("if Python were implemented on such systems...") or actual ("python is implemented on one such system (VxWorks?) and these tests fail"). If the latter, does the test suite pass at least with respect to, in this

[issue41439] test_uuid.py and test_ssl.py failure on OSes without os.fork

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Similar issues: #41440 os.cpu_count #41442 unix shell #41443 some posix.x functions PR 21684 is fine as far as it goes, and I could merge and backport, but I don't know about our test policy with respect to need and minimized OSes. We do not put conditions

[issue41424] [tkinter] Grammatical error in "Packer" docs

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

[issue41459] pickle.load raises SystemError on malformed input

2020-08-02 Thread Guillaume
Guillaume added the comment: Updated Components. I believe pickle fit in the Library category. Note this was discovered with python 3.8.5 -- components: +Library (Lib) -Argument Clinic ___ Python tracker

[issue41455] Python Devguide differs from python docs

2020-08-02 Thread Yaroslav
Yaroslav added the comment: 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

[issue41455] Python Devguide differs from python docs

2020-08-02 Thread Yaroslav
Yaroslav added the comment: Here's opened PR. https://github.com/python/cpython/pull/21703 -- nosy: -python-dev ___ Python tracker ___

[issue38628] Issue with ctypes in AIX

2020-08-02 Thread David Edelsohn
David Edelsohn added the comment: I thought that the ctypes documentation mentioned that Arrays passed by Value are converted to Structures. I cannot find it in the ctypes documentation at the moment. But Modules/_ctypes/stgdict.c has a large comment about passing Arrays by Value as

[issue38628] Issue with ctypes in AIX

2020-08-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: David, is the issue you mention in your message at 2020-02-05 reproducible with valid usage of ctypes (that is, by calling a C function with the correct signature)? What do you mean with "this is documented in Python ctypes"? -- nosy:

[issue41456] loop.run_in_executor creat thread but not destory it after the task run over

2020-08-02 Thread Guo Xiyong
New submission from Guo Xiyong : code like this: import asyncio import time import threading def sync_test(): time.sleep(1) async def run_test(): loop = asyncio.get_event_loop() for _ in range(10): # r = await loop.getaddrinfo('wq.io', 443) # print(r)

[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-02 Thread Rishav Kundu
Change by Rishav Kundu : -- keywords: +patch nosy: +xrisk nosy_count: 3.0 -> 4.0 pull_requests: +20844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21701 ___ Python tracker

[issue41457] Implement random.shuffled

2020-08-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41457] Implement random.shuffled

2020-08-02 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +20848 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21704 ___ Python tracker ___

[issue41457] Implement random.shuffled

2020-08-02 Thread Ram Rachum
New submission from Ram Rachum : Writing the patch now. Thread: https://mail.python.org/archives/list/python-id...@python.org/thread/OHLXVKIBMNSQO6BCFK6LEHSYNXDB6OQJ/ -- components: Library (Lib) messages: 374683 nosy: cool-RR priority: normal severity: normal status: open title:

[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-08-02 Thread Rishav Kundu
Rishav Kundu added the comment: Submitted a PR. Please let me know if I missed something :) -- ___ Python tracker ___ ___

[issue41395] pickle and pickletools cli interface doesn't close input and output file.

2020-08-02 Thread Amir Mohamadi
Change by Amir Mohamadi : -- nosy: +Amir nosy_count: 6.0 -> 7.0 pull_requests: +20845 pull_request: https://github.com/python/cpython/pull/21702 ___ Python tracker ___

[issue41455] Python Devguide differs from python docs

2020-08-02 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +20846 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21703 ___ Python tracker

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2020-08-02 Thread Ned Deily
Ned Deily added the comment: Fixed in 3.9.0 -- nosy: +ned.deily resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker

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

2020-08-02 Thread Luciano Ramalho
Luciano Ramalho added the comment: The merged PR that fixed https://bugs.python.org/issue40979 also fixes this issue. It is now documented that these protocols are runtime checkable, with caveats. -- ___ Python tracker

[issue41398] cgi module, parse_multipart fails

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: So per the stackoverflow explanation you shouldn’t do that? Should we close this? -- nosy: +gvanrossum ___ Python tracker ___

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread Nathan Maynes
Change by Nathan Maynes : -- keywords: +patch pull_requests: +20850 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21707 ___ Python tracker ___

[issue41390] Errors and warnings on generate bytecode files

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: You're going to have to ignore that status or skip the offending files. -- nosy: +gvanrossum resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue41459] pickle.load raises SystemError on malformed input

2020-08-02 Thread Eric V. Smith
Eric V. Smith added the comment: As a rule, we don't put a lot of effort into handling malformed pickle input. Is this causing some practical problem? -- nosy: +eric.smith ___ Python tracker

[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-08-02 Thread Howard A. Landman
Howard A. Landman added the comment: Made some progress. By running it under gdb and breaking in malloc_printerr(), I got a better stack trace: Breakpoint 1, malloc_printerr (str=0x76e028f8 "free(): invalid pointer") at malloc.c:5341 5341malloc.c: No such file or directory. (gdb) bt

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

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe you’ll get some explanation or pointers on python-list. Or were you volunteering to write something? -- nosy: +gvanrossum ___ Python tracker

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20852 pull_request: https://github.com/python/cpython/pull/21708 ___ Python tracker

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +20853 pull_request: https://github.com/python/cpython/pull/21709 ___ Python tracker ___

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ecaf949cc487887883c14dff7a96e09ac9404994 by Nathan M in branch 'master': bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707) https://github.com/python/cpython/commit/ecaf949cc487887883c14dff7a96e09ac9404994 --

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset ab72fdeb82c3ab045b480cd4bb4f928c12653ecb by Luciano Ramalho in branch 'master': bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and ordering (#21574)

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

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: Thank you so much for your hard work and flexibility! The chapter is in much better shape now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, I was looking for this. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +20849 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21706 ___ Python tracker

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

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: Looks like a duplicate of https://bugs.python.org/issue38119 -- nosy: +gvanrossum resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread miss-islington
miss-islington added the comment: New changeset 905c7de6e4bbccf8c3dfa593fa287aecac497472 by Miss Islington (bot) in branch '3.9': bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707) https://github.com/python/cpython/commit/905c7de6e4bbccf8c3dfa593fa287aecac497472

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-08-02 Thread miss-islington
miss-islington added the comment: New changeset 45d37cbb04279a52c63dd180aacda7d35e02a0ef by Miss Islington (bot) in branch '3.8': bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707) https://github.com/python/cpython/commit/45d37cbb04279a52c63dd180aacda7d35e02a0ef

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20854 pull_request: https://github.com/python/cpython/pull/21710 ___ Python tracker

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

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think that waiting another six months is going to make this happen either. Maybe you can petition realpython.com to publish something about this. Honestly it sounds like this ties too many different topics together to easily fit in the library

[issue41210] Docs: More description of reason about LZMA1 data handling with FORMAT_ALONE

2020-08-02 Thread Hiroshi Miura
Hiroshi Miura added the comment: Here is a draft of additional text Usage of :const:`FILTER_LZMA1` with :const:`FORMAT_RAW` is not recommended. Because it may produce a wrong output in a certain condition, decompressing a combination of :const:`FILTER_LZMA1` and BCJ filters in

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

2020-08-02 Thread Anatoli Babenia
Anatoli Babenia added the comment: Not sure I can volunteer - need to find a sustenance ASAP. But given that nothing moved in this direction over the past 6 months, another week spent not writing this stuff won't change anything. In any case it would start with the following problem - "Logs

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4bc8445c392e22fb926eeea50d3e943b6241affa by Miss Islington (bot) in branch '3.8': bpo-41425: Make tkinter doc example runnable (GH-21706) https://github.com/python/cpython/commit/4bc8445c392e22fb926eeea50d3e943b6241affa --

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

2020-08-02 Thread Anatoli Babenia
Anatoli Babenia added the comment: To avoid too much outside reference, the commit message I am unsure of is this. > Run Python 3 in unbuffered mode to see lines in `docker logs` as soon as they > appear. When Python 3 is not attached to a terminal, it turns on the > buffering, like when

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

2020-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: I don't know anything about Docker, so I can't help you there. Please don't reopen the issue again. -- resolution: -> wont fix status: open -> closed ___ Python tracker

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

2020-08-02 Thread Anatoli Babenia
Anatoli Babenia added the comment: The point is that without a clear description of buffering in Python 3, it is impossible to understand what goes when Python is wrapped by Docker, supervisord, redirected to file etc. -- ___ Python tracker

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

2020-08-02 Thread Anatoli Babenia
Anatoli Babenia added the comment: I didn't reopen the issue explicitly. Just pressed the submit button again when the notification about edited bug appeared. -- ___ Python tracker

[issue41260] datetime: strftime method takes different keyword argument: fmt (pure) or format (C)

2020-08-02 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +20856 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21712 ___ Python tracker

[issue28002] ast.unparse can't roundtrip some f-strings

2020-08-02 Thread Shantanu
Shantanu added the comment: Just bumping this issue, as per dev guide, since https://github.com/python/cpython/pull/19612 has been ready for about two months. Would be grateful for review :-) -- ___ Python tracker

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c36dbac588e1d99975f285a874bb20e9f5040af4 by Ankit Chandawala in branch 'master': bpo-41425: Make tkinter doc example runnable (GH-21706) https://github.com/python/cpython/commit/c36dbac588e1d99975f285a874bb20e9f5040af4 --

[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2020-08-02 Thread Hiroshi Miura
Change by Hiroshi Miura : -- title: Docs: More description of reason about LZMA1 data handling with FORMAT_ALONE -> Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW ___ Python tracker

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3c4fc864ce931db90214c54d742062a80dbef7c4 by Miss Islington (bot) in branch '3.9': bpo-41425: Make tkinter doc example runnable (GH-21706) https://github.com/python/cpython/commit/3c4fc864ce931db90214c54d742062a80dbef7c4 --

[issue29269] test_socket failing in solaris

2020-08-02 Thread Brian Vandenberg
Brian Vandenberg added the comment: Solaris will be around for at least another 10-15 years. The least you could do is look into it and offer some speculations. -- ___ Python tracker

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-08-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +20855 pull_request: https://github.com/python/cpython/pull/21711 ___ Python tracker ___

[issue41460] Translation Error in in Functional Programming HOWTO page

2020-08-02 Thread 李冰
New submission from 李冰 : There seems a translation error in Python Documentation in Functional Programming HOWTO page. The page's English version's url is https://docs.python.org/3/howto/functional.html And the Japanese version's url is https://docs.python.org/ja/3/howto/functional.html. In