[issue40129] Add test classes for custom __index__, __int__, __float__ and __complex__

2020-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this makes the world better. It just makes it more intertwined. Currently, I can read the test code in isolation and understand it. But with the proposed PR, a person now needs to know more of what is in test_support. I really like seein

[issue12735] request full Unicode collation support in std python library

2020-03-31 Thread Ahmad Azizi
Ahmad Azizi added the comment: Remember, sorting standard Persian(Farsi) characters does not work properly with current implementation of Python 3.x As the result, python is probably unable to sort properly in some other languages. Here is correct order of alphabet in Persian: "آ","ا",

[issue40110] multiprocessing.Pool.imap() should be lazy

2020-03-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: +Library (Lib) nosy: +rhettinger type: -> enhancement versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker __

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-31 Thread Kyle Stanley
Kyle Stanley added the comment: I'm currently busy today, but I'll have some time to explore a few different potential solutions tomorrow. If I can't find anything to fix it by the end of the day, I'll prepare a PR to revert PR-19149, and re-apply it later (after more thoroughly testing to e

[issue40094] Add os.waitstatus_to_exitcode() function

2020-03-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6b982c22e5fdbfecc24e440515b63f7253f695c4 by Victor Stinner in branch 'master': bpo-40094: Add run_command() to setup.py (GH-19266) https://github.com/python/cpython/commit/6b982c22e5fdbfecc24e440515b63f7253f695c4 -- __

[issue40131] Zipapp example has parameters in the wrong order

2020-03-31 Thread Leron Gray
New submission from Leron Gray : The second example listed here for zipapp has the parameters in the wrong order. https://docs.python.org/3/library/zipapp.html?highlight=zipapp#examples It should be create_archive("myapp", "myapp.pyz") since the parameters are (source, target). The document

[issue40121] socket module missing audit events

2020-03-31 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +18624 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19267 ___ Python tracker ___ _

[issue40121] socket module missing audit events

2020-03-31 Thread Steve Dower
Steve Dower added the comment: Thanks, Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25878] CPython on Windows builds with /W3, not /W4

2020-03-31 Thread Alexander Riccio
Alexander Riccio added the comment: Ok, so a draft of this produces 34 warnings, but makes way more changes to the .vcxproj and .filters files than I think it should: https://github.com/ariccio/cpython/commit/60152aa065a3ad861f0359a8ada7f2fbc83a3933 Before I submit a PR, I think I should fig

[issue35815] Able to instantiate a subclass with abstract methods from __init_subclass__ of the ABC

2020-03-31 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- Removed message: https://bugs.python.org/msg334467 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue35815] Able to instantiate a subclass with abstract methods from __init_subclass__ of the ABC

2020-03-31 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: __init_subclass__ is called way before (in the type_new, when type is in the process of getting created) the object's __new__ (object_new) (which raises that TypeError). -- ___ Python tracker

[issue40110] multiprocessing.Pool.imap() should be lazy

2020-03-31 Thread Tim Peters
Tim Peters added the comment: "Lazy" has several possible aspects, of which Pool.imap() satisfies some: - Its iterable argument is materialized one object at a time. - It delivers results one at a time. So, for example, if `worker` is a function that takes a single int, then pool = mult

[issue40094] Add os.waitstatus_to_exitcode() function

2020-03-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18625 pull_request: https://github.com/python/cpython/pull/19268 ___ Python tracker ___ __

[issue27635] pickle documentation says that unpickling may not call __new__

2020-03-31 Thread Furkan Onder
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 4.0 -> 5.0 pull_requests: +18626 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19269 ___ Python tracker

[issue27635] pickle documentation says that unpickling may not call __new__

2020-03-31 Thread Furkan Onder
Furkan Onder added the comment: There is still an mistake in the document. I sent a pr to fix it. -- ___ Python tracker ___ ___ Pyt

[issue40094] Add os.waitstatus_to_exitcode() function

2020-03-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset afeaea2d6e346f627b24cc9e84e2986a7266a70e by Victor Stinner in branch 'master': bpo-40094: Add missing import to wait_process() (GH-19268) https://github.com/python/cpython/commit/afeaea2d6e346f627b24cc9e84e2986a7266a70e -- ___

[issue40113] Turtle demo

2020-03-31 Thread Steven D'Aprano
Steven D'Aprano added the comment: > the program is supposed to draw a function like y=sin(x) but is drawing > y=abs(sin(x)). It would have been nice if you had described the problem this way from your initial bug report, instead of saying that the turtle was moving backwards. I understood

[issue40125] update OpenSSL 1.1.1 in multissltests.py to 1.1.1f

2020-03-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ba8a2bcebfdb41acafea9a195e45e9d177dc216f by Benjamin Peterson in branch '2.7': [2.7] closes bpo-40125: Update multissltests.py to use OpenSSL 1.1.1f. (GH-19251) https://github.com/python/cpython/commit/ba8a2bcebfdb41acafea9a195e45e9d177dc216

[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-03-31 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- pull_requests: +18628 pull_request: https://github.com/python/cpython/pull/19273 ___ Python tracker ___

[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-03-31 Thread Paulo Henrique Silva
Paulo Henrique Silva added the comment: As discussed on PR19172, this module uses a global state in functions that do not receive a PyModule* and right now converting such cases to per-module state is not trivial. I will wait for PEP-573 implementation that will hopefully make this easier.

[issue40128] IDLE Show completions pop-up not working on macOS

2020-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: My first though was that the 'guy' had executed 'import math' and you had not. (See the IDLE doc at https://docs.python.org/3/library/idle.html or, within IDLE, Help => IDLE Help, "Editing and navigations" section, "completions' subsection, 2nd to last para

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-31 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner @petr.viktorin I 'd like to experiment dict vector call and finalize the work. Can I proceed it? -- ___ Python tracker ___ __

[issue40122] The implementation and documentation of "dis.findlables" don't match

2020-03-31 Thread laike9m
Change by laike9m : -- keywords: +patch pull_requests: +18629 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19274 ___ Python tracker _

[issue40122] The implementation and documentation of "dis.findlables" don't match

2020-03-31 Thread laike9m
laike9m added the comment: I've created a PR to fix documentation. https://github.com/python/cpython/pull/19274 I'll create a new issue for making the function accept a code object. -- ___ Python tracker __

<    1   2