[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: New changeset 9fd87a5fe5c468cf94265365091267838b004b7f by Eric Snow in branch 'main': bpo-45020: Revert "Drop the frozen .h files from the repo." (gh-28380) https://github.com/python/cpython/commit/9fd87a5fe5c468cf94265365091267838b004b7f --

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-15 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26795 pull_request: https://github.com/python/cpython/pull/28380 ___ Python tracker ___

[issue45180] possible wrong result for difflib.SequenceMatcher.ratio()

2021-09-15 Thread Tim Peters
Tim Peters added the comment: Please stop re-opening this. The issue tracker is not a "help desk", and your confusions aren't necessarily Python bugs ;-) If you post something that looks like an actual bug, I'll re-open the report. SequenceMatcher works on sequences. HtmlFiff works on

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: Never mind. It's pretty late here so I'm going to revert it and sort it out in the morning. -- ___ Python tracker ___

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW, Python/frozen_modules/__hello__.h is still in the repo somehow. -- ___ Python tracker ___

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: Looks like that last commit broke one of the buildbots: https://buildbot.python.org/all/#/builders/483/builds/812 I'll fix that right away. -- ___ Python tracker

[issue45186] Marshal output isn't completely deterministic.

2021-09-15 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26794 pull_request: https://github.com/python/cpython/pull/28379 ___ Python tracker ___

[issue45180] possible wrong result for difflib.SequenceMatcher.ratio()

2021-09-15 Thread Nabeel Alzahrani
Nabeel Alzahrani added the comment: Here are the steps that I used to calculate 0.2 for the last example: I used class difflib.HtmlDiff to find the number of changed chars (addedChars, deletedChars, and changedChars) which is 1172 (let us call it delta) The size of both strings a and b in

[issue45180] possible wrong result for difflib.SequenceMatcher.ratio()

2021-09-15 Thread Tim Peters
Tim Peters added the comment: I have no idea why you think the result should be 0.2. 0.5630188679245283 looks correct to me with autojunk disabled: sm = SequenceMatcher(None, a, b, autojunk=False) total = 0 for m in sm.get_matching_blocks(): print(m, repr(a[m.a : m.a + m.size]))

[issue45180] possible wrong result for difflib.SequenceMatcher.ratio()

2021-09-15 Thread Nabeel Alzahrani
Change by Nabeel Alzahrani : -- resolution: not a bug -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue45155] Add default arguments for int.to_bytes()

2021-09-15 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45155] Add default arguments for int.to_bytes()

2021-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 07e737d002cdbf0bfee53248a652a86c9f93f02b by Barry Warsaw in branch 'main': bpo-45155 : Default arguments for int.to_bytes(length=1, byteorder=sys.byteorder) (#28265)

[issue45215] Add docs for Mock name and parent args and deprecation warning when wrong args are passed

2021-09-15 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch pull_requests: +26793 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28378 ___ Python tracker ___

[issue45215] Add docs for Mock name and parent args and deprecation warning when wrong args are passed

2021-09-15 Thread Andrei Kulakov
New submission from Andrei Kulakov : Currently using *name* and *parent* args in Mock and MagicMock is problematic in a few ways: *name* - any value can be passed silently but at a later time, any value except for an str will cause an exception when repr() or str() on the mock object is

[issue45180] possible wrong result for difflib.SequenceMatcher.ratio()

2021-09-15 Thread Nabeel Alzahrani
Nabeel Alzahrani added the comment: But when I turn off the "autojunk" feature for the following example, I get the wrong ratio of 0.5 instead of the correct ratio of 0.2 with autojunk enabled. a=""" #include #include using namespace std; int main() { string userPass; int

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: New changeset a9757bf34d8b4cb3c24bbb70d50a06c815e2e8f3 by Eric Snow in branch 'main': bpo-45020: Drop the frozen .h files from the repo. (gh-28375) https://github.com/python/cpython/commit/a9757bf34d8b4cb3c24bbb70d50a06c815e2e8f3 --

[issue45193] IDLE Show completions pop-up not working on Ubuntu Linux

2021-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: 0c64569ac7066a97e4482c6d6e4d780806692ae5 a5bc0ffc520e09226f85d5fa8faaa83be0acee68 are ready to be cherrypicked into into the 3.10.0 release branch. Once that is done, 'release blocker' can be removed, but issue should remain open for a separate fix for

[issue25625] "chdir" Contex manager for pathlib

2021-09-15 Thread Cameron Simpson
Change by Cameron Simpson : -- nosy: +cameron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: We can once GH-28375 lands. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: Can we close this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: FYI, I have a PR up for dropping the .h files: https://github.com/python/cpython/pull/28375. -- ___ Python tracker ___

[issue21736] Add __file__ attribute to frozen modules

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: > Note that the filename information is already available in the > code object's co_filename attribute. Hm, in the latest (3.11) main that's not true -- co_filename is set to something like "". And that's about right, since the filename contained in the

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: On Wed, Sep 15, 2021 at 12:03 PM Guido van Rossum wrote: > I would move "default to "on" (except if actually running out of the source > tree)" to the "maybe" category. I left a few comments in other deps. I think > we should start by turning this on by default

[issue45204] test_peg_generator: test_soft_keyword() logs many messages into stdout

2021-09-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39710] "will be returned as unicode" reminiscent from Python 2

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the patch, Hubert Badocha! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39710] "will be returned as unicode" reminiscent from Python 2

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a75a2577259a55d816de24a4cca16aad74e02aa5 by Hubert Badocha in branch 'main': bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985) https://github.com/python/cpython/commit/a75a2577259a55d816de24a4cca16aad74e02aa5

[issue45209] multiprocessing tests log: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown

2021-09-15 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26792 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28377 ___ Python tracker ___

[issue45214] implement LOAD_NONE opcode

2021-09-15 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +26791 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28376 ___ Python tracker ___

[issue45209] multiprocessing tests log: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown

2021-09-15 Thread Nikita Sobolev
Nikita Sobolev added the comment: The problem was in `test_shared_memory_cleaned_after_process_termination` test. ``` » ./python.exe -m test -v test_multiprocessing_forkserver -m test_shared_memory_cleaned_after_process_termination == CPython 3.11.0a0 (heads/main:09b4ad11f3, Sep 15 2021,

[issue45214] implement LOAD_NONE opcode

2021-09-15 Thread Irit Katriel
Change by Irit Katriel : -- assignee: iritkatriel components: Interpreter Core nosy: iritkatriel priority: normal severity: normal status: open title: implement LOAD_NONE opcode type: performance versions: Python 3.11 ___ Python tracker

[issue45019] Freezing modules has manual steps but could be automated.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: New changeset 3814e2036d96e2b6c69afce61926bb0a2a34d2d9 by Eric Snow in branch 'main': bpo-45019: Clean up the frozen __hello__ module. (gh-28374) https://github.com/python/cpython/commit/3814e2036d96e2b6c69afce61926bb0a2a34d2d9 --

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: Setting __file__ on frozen modules is only one example. I actually need the stdlib dir to be preserved for other uses. FWIW, I think you're probably right about __file__ on frozen modules. That said, further discussion about __file__ (or __path__) is probably

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26790 pull_request: https://github.com/python/cpython/pull/28375 ___ Python tracker ___

[issue5846] Deprecate obsolete functions in unittest

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think that PR 28299 is correct. We want to deprecate these functions which are implemented in the unittest.loader module, not just names exported to the unittest module. -- ___ Python tracker

[issue45187] Some tests in test_socket are not run

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Dangling threads in skipped tests in test_socket ___ Python tracker ___ ___

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26789 pull_request: https://github.com/python/cpython/pull/28317 ___ Python tracker ___

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Serhiy! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45019] Freezing modules has manual steps but could be automated.

2021-09-15 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26788 pull_request: https://github.com/python/cpython/pull/28374 ___ Python tracker ___

[issue45205] test_compileall logs "Compiling ..." messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9443ce4eedbcaffb3262e7ede1dd100678e85506 by Miss Islington (bot) in branch '3.9': bpo-45205: Make test_compileall quiet (GH-28356) (GH-28364) https://github.com/python/cpython/commit/9443ce4eedbcaffb3262e7ede1dd100678e85506 --

[issue45205] test_compileall logs "Compiling ..." messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 17000b5a80e6ec071ea5007dcc6792e9daaaf0f2 by Miss Islington (bot) in branch '3.10': bpo-45205: Make test_compileall quiet (GH-28356) (GH-28370) https://github.com/python/cpython/commit/17000b5a80e6ec071ea5007dcc6792e9daaaf0f2 --

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2746045a37e0d56ffdd8bb79f961bd7df0d1afba by Miss Islington (bot) in branch '3.9': bpo-45167: Fix deepcopying of GenericAlias (GH-28324) (GH-28368) https://github.com/python/cpython/commit/2746045a37e0d56ffdd8bb79f961bd7df0d1afba --

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset de4c9c0bdc9b62e68dacd0c4bac20d7f4c527511 by Miss Islington (bot) in branch '3.10': bpo-45167: Fix deepcopying of GenericAlias (GH-28324) (GH-28367) https://github.com/python/cpython/commit/de4c9c0bdc9b62e68dacd0c4bac20d7f4c527511 --

[issue45205] test_compileall logs "Compiling ..." messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Victor! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45019] Freezing modules has manual steps but could be automated.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: New changeset 4b30aaa0c9dc4da956199dbd48af9c06089cb271 by Eric Snow in branch 'main': bpo-45019: Silence a warning in test_ctypes. (gh-28362) https://github.com/python/cpython/commit/4b30aaa0c9dc4da956199dbd48af9c06089cb271 --

[issue45183] Unexpected exception with zip importer

2021-09-15 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-15 Thread Łukasz Langa
Change by Łukasz Langa : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45207] test_gdb logs "Function ... not defined" messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Victor! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45207] test_gdb logs "Function ... not defined" messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1c70efcbb57ab4eb65ca604b39606fceff6db4f5 by Miss Islington (bot) in branch '3.9': bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355) (GH-28366) https://github.com/python/cpython/commit/1c70efcbb57ab4eb65ca604b39606fceff6db4f5

[issue45207] test_gdb logs "Function ... not defined" messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset bbaf5c27e659cf372c34a6fe7ca31a2f5cb20a50 by Miss Islington (bot) in branch '3.10': bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355) (GH-28365) https://github.com/python/cpython/commit/bbaf5c27e659cf372c34a6fe7ca31a2f5cb20a50

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Erlend! ✨  ✨ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 97802a8edb3f15aef9ecc1cac97c4c1b4ed3fdfc by Miss Islington (bot) in branch '3.9': bpo-45089: Improve sqlite3 trace callback docs (GH-28238) (GH-28372) https://github.com/python/cpython/commit/97802a8edb3f15aef9ecc1cac97c4c1b4ed3fdfc --

[issue42969] pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful

2021-09-15 Thread Jeremy Maitin-Shepard
Jeremy Maitin-Shepard added the comment: Another possible resolution would to simply make threads that attempt to acquire the GIL after Python starts to finalize hang (i.e. sleep until the process exits). Since the GIL can never be acquired again, this is in some sense the simplest way to

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 87f0ac8c1de83ac63447b9fe799dfb1657a5a9db by Miss Islington (bot) in branch '3.10': bpo-45089: Improve sqlite3 trace callback docs (GH-28238) (GH-28371) https://github.com/python/cpython/commit/87f0ac8c1de83ac63447b9fe799dfb1657a5a9db --

[issue45208] test_pdb: test_checkline_is_not_executable() logs messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0e4f913da88791644150282e38ba21d1fca5fd91 by Miss Islington (bot) in branch '3.10': bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354) (GH-28363)

[issue45186] Marshal output isn't completely deterministic.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: That's a good idea. It's certainly cleaner than the approach I took (optionally pass in to marshal.dumps() the list of "before" object/refcount pairs to compare in w_ref()). Adding a flag to marshal.dumps() to opt out shouldn't be too big a deal. (I expect

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2021-09-15 Thread Hasan
Change by Hasan : -- pull_requests: +26787 pull_request: https://github.com/python/cpython/pull/28373 ___ Python tracker ___ ___

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: I tried this: - remove the generated .h files - touched dictobject.c - touched dictobject.h After each step I tried to rebuild. Each case the compilation of frozen.c failed and then the build stopped, so apparently the .h files weren't generated early

[issue45193] IDLE Show completions pop-up not working on Ubuntu Linux

2021-09-15 Thread miss-islington
miss-islington added the comment: New changeset a5bc0ffc520e09226f85d5fa8faaa83be0acee68 by Miss Islington (bot) in branch '3.10': bpo-45193: News for IDLE PR_28343 (GH-28348) https://github.com/python/cpython/commit/a5bc0ffc520e09226f85d5fa8faaa83be0acee68 --

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 51056b40e711d84692d099ac8970077b33c7fafd by Erlend Egeberg Aasland in branch 'main': bpo-45089: Improve sqlite3 trace callback docs (GH-28238) https://github.com/python/cpython/commit/51056b40e711d84692d099ac8970077b33c7fafd -- nosy:

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +26786 pull_request: https://github.com/python/cpython/pull/28372 ___ Python tracker ___

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26785 pull_request: https://github.com/python/cpython/pull/28371 ___ Python tracker

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2563dd2d0a1cf793afca328ae9e195b72bd2b391 by Łukasz Langa in branch '3.10': [3.10] bpo-34602: Quadruple stack size on macOS when compiling with UBSAN (GH-27309) (GH-28280)

[issue5846] Deprecate obsolete functions in unittest

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ff6d2cc55aac5cc53e331cae145d0cf35ec647b0 by Erlend Egeberg Aasland in branch 'main': bpo-5846: Deprecate obsolete methods in `unittest` (GH-28299) https://github.com/python/cpython/commit/ff6d2cc55aac5cc53e331cae145d0cf35ec647b0 -- nosy:

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Steve Dower
Steve Dower added the comment: Should be able to, yeah. Though I didn't test that. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45205] test_compileall logs "Compiling ..." messages

2021-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +26784 pull_request: https://github.com/python/cpython/pull/28370 ___ Python tracker ___

[issue45193] IDLE Show completions pop-up not working on Ubuntu Linux

2021-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9d76d28867c28bcc881b851547a9cd7ac003ae88 by Terry Jan Reedy in branch 'main': bpo-45193: News for IDLE PR_28343 (GH-28348) https://github.com/python/cpython/commit/9d76d28867c28bcc881b851547a9cd7ac003ae88 --

[issue45193] IDLE Show completions pop-up not working on Ubuntu Linux

2021-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +26783 pull_request: https://github.com/python/cpython/pull/28369 ___ Python tracker ___

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26781 pull_request: https://github.com/python/cpython/pull/28367 ___ Python tracker

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +26782 pull_request: https://github.com/python/cpython/pull/28368 ___ Python tracker ___

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5dce51a8875d9639786741e962b3cb208596b096 by Serhiy Storchaka in branch 'main': bpo-45167: Fix deepcopying of GenericAlias (GH-28324) https://github.com/python/cpython/commit/5dce51a8875d9639786741e962b3cb208596b096 --

[issue45207] test_gdb logs "Function ... not defined" messages

2021-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +26780 pull_request: https://github.com/python/cpython/pull/28366 ___ Python tracker ___

[issue45207] test_gdb logs "Function ... not defined" messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 84a6061e29e9dc13909bdf6f541f48c2a4f1d410 by Victor Stinner in branch 'main': bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355) https://github.com/python/cpython/commit/84a6061e29e9dc13909bdf6f541f48c2a4f1d410 -- nosy:

[issue45207] test_gdb logs "Function ... not defined" messages

2021-09-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26779 pull_request: https://github.com/python/cpython/pull/28365 ___ Python tracker

[issue45205] test_compileall logs "Compiling ..." messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset cc057ff5227b3a4ded637caa7ba51b67b06abaaa by Victor Stinner in branch 'main': bpo-45205: Make test_compileall quiet (GH-28356) https://github.com/python/cpython/commit/cc057ff5227b3a4ded637caa7ba51b67b06abaaa -- nosy: +lukasz.langa

[issue45205] test_compileall logs "Compiling ..." messages

2021-09-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26778 pull_request: https://github.com/python/cpython/pull/28364 ___ Python tracker

[issue45208] test_pdb: test_checkline_is_not_executable() logs messages

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e08e491a6ceea8ca105612df10147418c4e105b8 by Victor Stinner in branch 'main': bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354) https://github.com/python/cpython/commit/e08e491a6ceea8ca105612df10147418c4e105b8

[issue45208] test_pdb: test_checkline_is_not_executable() logs messages

2021-09-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26777 pull_request: https://github.com/python/cpython/pull/28363 ___ Python tracker

[issue45204] test_peg_generator: test_soft_keyword() logs many messages into stdout

2021-09-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 764e6823a7632c2091db93da04c15900350ad524 by Pablo Galindo Salgado in branch 'main': bpo-45204: Reduce verbosity of test_peg_generator (GH-28360) https://github.com/python/cpython/commit/764e6823a7632c2091db93da04c15900350ad524 -- nosy:

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: I would move "default to "on" (except if actually running out of the source tree)" to the "maybe" category. I left a few comments in other deps. I think we should start by turning this on by default in PGO builds. Separately, I encourage you to collect

[issue45186] Marshal output isn't completely deterministic.

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: I would propose that marshal internally make an extra pass over its input in order to determine which objects are referenced multiple times. This will speed up reading marshalled data (in addition to addressing the reproducibility issue with debug builds)

[issue45019] Freezing modules has manual steps but could be automated.

2021-09-15 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26776 pull_request: https://github.com/python/cpython/pull/28362 ___ Python tracker ___

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: Is this now done? I.e. can we now drop the frozen .h files from the repo? -- nosy: +gvanrossum ___ Python tracker ___

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly I find it debatable whether we're doing anyone a favor by publishing the __file__ of the corresponding stdlib file for frozen modules. There will be situations where this points to the wrong file, and editing the file will not have an effect

[issue45209] multiprocessing tests log: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown

2021-09-15 Thread Nikita Sobolev
Nikita Sobolev added the comment: I would like to work on this, if no one has started yet. -- nosy: +sobolevn ___ Python tracker ___

[issue45020] Freeze all modules imported during startup.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: At this point the fundamental work is done. Here are some follow-up tasks to wrap up this issue: * freeze the remaining stdlib modules imported during startup (os, site, codecs, encodings.*) + blocked by bpo-45186 and bpo-45188 * default to "on" (except if

[issue45213] Frozen modules are looked up using a linear search.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: Realistically, I doubt this will ever be a problem. The list of frozen modules is fairly small and the loop in the C code is a lightweight. So it isn't that big of a deal relative to the other costs involved in import. Even if the number of frozen modules

[issue45213] Frozen modules are looked up using a linear search.

2021-09-15 Thread Eric Snow
New submission from Eric Snow : When looking up a frozen modules, we loop over the array of frozen modules until we find a match (or don't). See find_frozen() in Python/import.c. The frozen importer sits right after the builtin importer and right before the file-based importer. This means

[issue45083] Need to use the exception class qualname when rendering exception (in C code)

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26775 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28361 ___ Python tracker

[issue45204] test_peg_generator: test_soft_keyword() logs many messages into stdout

2021-09-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +26774 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28360 ___ Python tracker

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Dangling threads are reported when run test_socket tests which raise SkipTest in setUp() in refleak mode. $ ./python -m test -R 3:3 test_socket -m testBCM 0:00:00 load avg: 2.53 Run tests sequentially 0:00:00 load avg: 2.53 [1/1] test_socket beginning 6

[issue45019] Freezing modules has manual steps but could be automated.

2021-09-15 Thread Eric Snow
Eric Snow added the comment: On Wed, Sep 15, 2021 at 7:51 AM Karthikeyan Singaravelan wrote: > The PR 28319 seems to have introduced a new deprecation warning in tests : I'll fix that. -- ___ Python tracker

[issue45083] Need to use the exception class qualname when rendering exception (in C code)

2021-09-15 Thread Diego Ramirez
Change by Diego Ramirez : -- nosy: +DiddiLeija ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-15 Thread Eric Snow
New submission from Eric Snow : Currently we calculate a number of filesystem paths during runtime initialization in Modules/getpath.c (with the key goal of producing what will end up in sys.path). Some of those paths are preserved and some are not. In cases where the discarded data comes

[issue45188] De-couple the Windows builds from freezing modules.

2021-09-15 Thread Steve Dower
Steve Dower added the comment: New changeset 09b4ad11f323f8702cde795e345b75e0fbb1a9a5 by Steve Dower in branch 'main': bpo-45188: Windows now regenerates frozen modules at the start of build instead of late (GH-28322)

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-15 Thread Zachary Ware
Change by Zachary Ware : Removed file: https://bugs.python.org/file50281/MicrosoftOnlineServicesTerms(WW)(English)(February2021)(CR).docx ___ Python tracker ___

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-09-15 Thread Zachary Ware
Change by Zachary Ware : -- components: -2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, C API, Cross-Build, Demos and Tools, Distutils, Documentation, Extension Modules, FreeBSD, IDLE, IO, Installation, Library (Lib), Parser, Regular Expressions, SSL, Subinterpreters,

[issue45202] Add 'remove_barry_from_BDFL' future to revert effects of 'from __future__ import barry_as_FLUFL'

2021-09-15 Thread Eric V. Smith
Eric V. Smith added the comment: I agree this should be rejected due to pointlessness and complexity. I'll give my usual advice: if you really want to see this happen, I suggest opening a discussion on the python-ideas mailing list. Then if there's consensus to go ahead, this issue can be

  1   2   >