[issue45192] The tempfile._infer_return_type function cannot infer the type of os.PathLike objects.

2021-09-13 Thread Kyungmin Lee
Kyungmin Lee added the comment: for example: ``` from typing import Union class FakePath: def __init__(self, path): self.path = path def __fspath__(self) -> Union[str, bytes]: return self.path if __name__ == "__main__": from tempfile import TemporaryDirectory

[issue45192] The tempfile._infer_return_type function cannot infer the type of os.PathLike objects.

2021-09-13 Thread Kyungmin Lee
New submission from Kyungmin Lee : The tempfile module has been updated to accept an object implementing os.PathLike protocol for path-related parameters as of Python 3.6 (e.g. dir parameter). An os.PathLike object represents a filesystem path as a str or bytes object (i.e. def

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

2021-09-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 13, 2021, at 22:12, Vedran Čačić wrote: > > > Vedran Čačić added the comment: > > I'd say yes. Of course, one way to ascertain that would be to conduct a valid > pool. ;-) People can always comment otherwise in the Discourse thread. --

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

2021-09-13 Thread Vedran Čačić
Vedran Čačić added the comment: I'd say yes. Of course, one way to ascertain that would be to conduct a valid pool. ;-) -- ___ Python tracker ___

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

2021-09-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 13, 2021, at 13:39, Vedran Čačić wrote: > > The poll is invalid, since the option that most people want is deliberately > not offered. *Is* there an option that most people want? -- ___ Python tracker

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

2021-09-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 13, 2021, at 13:38, STINNER Victor wrote: > It seems like your proposal is mostly guided by: convert an int to a byte > (bytes string of length 1). IMO this case is special enough to justify the > usage of a different function. Like bchr() ? >

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

2021-09-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: > I'd probably say "In the face of ambiguity, refuse the temptation to guess". > > As there's disagreement about the 'correct' default, make it None and require > either "big" or "little" if length > 1 (the default). Jelle suggested that over in Discourse,

[issue45191] Error.__traceback__.tb_lineno is wrong

2021-09-13 Thread nahco314
New submission from nahco314 : I think that the emphasis of the errors caused by some of these equivalent expressions is wrong or inconsistent. expr1: 1 .bit_length("aaa") expr2: 1 \ .bit_length("aaa") expr3: 1 \ .bit_length(*["aaa"]) Below is the __traceback__.tb_lineno of the error

[issue45190] unicode 14.0 upgrade

2021-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : Unicode 14.0 is expected on September 14. We'll need to do the usual table regenerations. -- assignee: benjamin.peterson components: Unicode messages: 401747 nosy: benjamin.peterson, ezio.melotti, vstinner priority: normal severity: normal

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

2021-09-13 Thread Matthew Barnett
Matthew Barnett added the comment: I wonder whether there should be a couple of other endianness values, namely, "native" and "network", for those cases where you want to be explicit about it. If you use "big" it's not clear whether that's because you want network endianness or because the

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

2021-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://www.tcl.tk/man/tcl8.6/TclCmd/update.html -- ___ Python tracker ___ ___ Python-bugs-list

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

2021-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pablo (and Ned) PR_26672 (and backports) added one line to idlelib/autocomplete_w.py, 206 or 209. acw.update_idletasks() # Need for tk8.6.8 on macOS: #40128. NEWs item included "The added update_idletask call should be harmless and possibly helpful

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

2021-09-13 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +26731 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28322 ___ Python tracker

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-13 Thread neonene
neonene added the comment: With msvc 16.10.3 and 16.11.2 (latest), PR25244 told me the amount of code in _PyEval_EvalFrameDefault() is over the limit of PGO. In the old version of _PyEval_EvalFrameDefault (b98eba5), the same issue can be caused adding any-code anywhere with more than 20

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-09-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset a390bb6d66027517498e75b6b91a91be5f136d28 by Miss Islington (bot) in branch '3.10': bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) (GH-28321)

[issue45189] Drop the "list_frozen" command from _test_embed.

2021-09-13 Thread Eric Snow
New submission from Eric Snow : In Programs/_test_embed.c the "list_frozen" command prints out the name of each frozen module (defined in Python/frozen.c). The only place this is used is in Tools/scripts/generate_stdlib_module_names.py (in list_frozen()). That script can be updated to call

[issue45020] Freeze all modules imported during startup.

2021-09-13 Thread Eric Snow
Eric Snow added the comment: On Mon, Sep 13, 2021 at 2:59 PM Guido van Rossum wrote: > If you reduce the number of modules being frozen you could probably manage > to land this (or most of it) before tackling those other issues. Yeah, that's what I'm doing. :) --

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

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

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-09-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset 9f93018b69d72cb48d3444554261ae3b0ea00c93 by Hugo van Kemenade in branch 'main': bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) https://github.com/python/cpython/commit/9f93018b69d72cb48d3444554261ae3b0ea00c93

[issue45020] Freeze all modules imported during startup.

2021-09-13 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26729 pull_request: https://github.com/python/cpython/pull/28320 ___ Python tracker ___

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

2021-09-13 Thread Eric Snow
Eric Snow added the comment: New changeset a2d8c4b81b8e68e2ffe10945f7ca69174c14e52a by Eric Snow in branch 'main': bpo-45019: Do some cleanup related to frozen modules. (gh-28319) https://github.com/python/cpython/commit/a2d8c4b81b8e68e2ffe10945f7ca69174c14e52a --

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

2021-09-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Just reread the thread. AFAICT not a single use case was presented for having system byte ordering as the default. However, multiple respondents have pointed out that a default to system byte ordering is a bug waiting to happen, almost ensuring that

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

2021-09-13 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26728 pull_request: https://github.com/python/cpython/pull/28319 ___ Python tracker ___

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant that the current __getattr__ breaks deepcopy(). It can break also other protocols. It already has a list of exceptions, we need to add "__copy__" and "__deepcopy__" in this list. Or maybe exclude all dunder names by default and use a white list?

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

2021-09-13 Thread Steve Dower
Steve Dower added the comment: Only thing I'd add is that you should just be able to list the required .c files in _freeze_module.vcxproj (formerly known as freeze_importlib.vcxproj) rather than depending on pythoncore.vcxproj. That will generate twice as many .obj files for those modules

[issue45020] Freeze all modules imported during startup.

2021-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: If you reduce the number of modules being frozen you could probably manage to land this (or most of it) before tackling those other issues. -- ___ Python tracker

[issue45157] DTrace on RHEL7, generated Include/pydtrace_probes.h fails to build: error: impossible constraint in ‘asm’

2021-09-13 Thread STINNER Victor
STINNER Victor added the comment: Issue worked around by disabling LTO on RHEL7 buildbots: https://github.com/python/buildmaster-config/commit/b8e56c0a545b8f5176c6984dd38a4e2630f21306 -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue45020] Freeze all modules imported during startup.

2021-09-13 Thread Eric Snow
Change by Eric Snow : -- dependencies: +De-couple the Windows builds from freezing modules., Marshal output isn't completely deterministic. ___ Python tracker ___

[issue45187] Some tests in test_socket are not run

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 28317 makes test classes in test_socket be autocollected instead of explicitly enumerated. This will save as from similar errors in future. -- ___ Python tracker

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

2021-09-13 Thread Eric Snow
New submission from Eric Snow : Currently for Windows builds, generating the frozen modules depends on first building python.exe. One consequence of this is that we must keep all frozen module .h files in the repo (which we'd like to avoid for various reasons). We should be able to freeze

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

2021-09-13 Thread Vedran Čačić
Vedran Čačić added the comment: The poll is invalid, since the option that most people want is deliberately not offered. -- ___ Python tracker ___

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

2021-09-13 Thread STINNER Victor
STINNER Victor added the comment: > In the PEP 467 discussion, I proposed (...) Since this PEP is controversial, and this issue seems to be controversial as well, maybe this idea should be part of the PEP. -- ___ Python tracker

[issue45187] Some tests in test_socket are not run

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

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

2021-09-13 Thread STINNER Victor
STINNER Victor added the comment: >>> (65).to_bytes() b'A' It seems like your proposal is mostly guided by: convert an int to a byte (bytes string of length 1). IMO this case is special enough to justify the usage of a different function. What if people expect int.to_bytes() always return

[issue45186] Marshal output isn't completely deterministic.

2021-09-13 Thread Eric Snow
Eric Snow added the comment: One consequence of this is that frozen module .h files can be different for debug vs. non-debug, which causes CI (and Windows builds) to fail. -- ___ Python tracker

[issue45187] Some tests in test_socket are not run

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Test classes ISOTPTest, J1939Test, BasicUDPLITETest, UDPLITETimeoutTest in test_socket are not included in the list of test classes and are not run by regrtest. -- components: Tests messages: 401725 nosy: serhiy.storchaka priority: normal

[issue45186] Marshal output isn't completely deterministic.

2021-09-13 Thread Eric Snow
Eric Snow added the comment: FYI, I came up with a fix (for frozen modules, at least) in https://github.com/python/cpython/pull/28107. -- ___ Python tracker ___

[issue45186] Marshal output isn't completely deterministic.

2021-09-13 Thread Eric Snow
New submission from Eric Snow : (See: https://github.com/python/cpython/pull/28107#issuecomment-915627148) The output from marshal (e.g. PyMarshal_WriteObjectToString(), marshal.dump()) may be different depending on if it is a debug or non-debug build. I found this while working on freezing

[issue45185] test.test_ssl.TestEnumerations is not run

2021-09-13 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45185] test.test_ssl.TestEnumerations is not run

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : test.test_ssl.TestEnumerations is not run when run ssl tests. If add it to the list of test classes it fails: == ERROR: test_options (test.test_ssl.TestEnumerations)

[issue45184] Add `pop` function to remove context manager from (Async)ExitStack

2021-09-13 Thread Andreas H.
Andreas H. added the comment: I see your point. But even with `pop` or `remove` it is still a stack or stack-like. In the normal case the context managers are still released in reverse order as they were added. Order cannot be changed arbitrarily. There is just the additional function of

[issue38222] pathlib Path objects should support __format__

2021-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would be in favour of adding Path.__format__, even though I'm not terribly convinced by the use case presented. -- ___ Python tracker ___

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

2021-09-13 Thread Matthew Barnett
Matthew Barnett added the comment: I'd probably say "In the face of ambiguity, refuse the temptation to guess". As there's disagreement about the 'correct' default, make it None and require either "big" or "little" if length > 1 (the default). -- nosy: +mrabarnett

[issue35474] mimetypes.guess_all_extensions potentially mutates list

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

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 06c26f4d2909eae196ac81c9ed9b41e747e42685 by Miss Islington (bot) in branch '3.10': bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28289)

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9cd8fb8d6356c17dafa1be727cab3d438f6df53f by Miss Islington (bot) in branch '3.9': bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28290)

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: Serhiy, can you elaborate how GH-28306 can break protocols using other special methods? I can't come up with an example. -- nosy: +lukasz.langa ___ Python tracker

[issue45173] Remove configparser deprecations

2021-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1fc41ae8709e20d741bd86c2345173688a5e84b0 by Hugo van Kemenade in branch 'main': bpo-45173 Remove configparser deprecations (GH-28292) https://github.com/python/cpython/commit/1fc41ae8709e20d741bd86c2345173688a5e84b0 -- nosy:

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread miss-islington
miss-islington added the comment: New changeset 218fe2cb798df32a722f61b95db280f6685ec3e6 by Miss Islington (bot) in branch '3.9': bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305) https://github.com/python/cpython/commit/218fe2cb798df32a722f61b95db280f6685ec3e6

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

2021-09-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I created a Discourse poll: https://discuss.python.org/t/what-should-be-the-default-value-for-int-to-bytes-byteorder/10616 -- ___ Python tracker

[issue38222] pathlib Path objects should support __format__

2021-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: > log_dir = Path('logs/{date}') > log_file = Path(str(path).format(time.strftime('%Y-%m-%d')) / 'log.txt' (I think you're missing "date=" in the call to .format().) Could you show what you think this would look like if Path.__format__ existed? I don't think

[issue38222] pathlib Path objects should support __format__

2021-09-13 Thread Richard
Richard added the comment: Sorry, that should have been: log_dir = Path('logs/{date}') -- ___ Python tracker ___ ___

[issue38222] pathlib Path objects should support __format__

2021-09-13 Thread Richard
Richard added the comment: I would like for this to be reconsidered. Yes, you can use str(), but converting back and forth becomes really clunky: log_dir = 'logs/{date}' log_file = Path(str(path).format(time.strftime('%Y-%m-%d')) / 'log.txt' -- nosy: +nyuszika7h

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

2021-09-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That’s okay, Brandt’s improved sys.byteorder is fastest . % ./python.exe -m timeit -r11 -s 'x=3452452454524' 'x.to_bytes(10, "little")' 200 loops, best of 11: 94.6 nsec per loop % ./python.exe -m timeit -r11 -s 'x=3452452454524' 'x.to_bytes(10, "big")'

[issue45184] Add `pop` function to remove context manager from (Async)ExitStack

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you can remove context managers in arbitrary order it is no longer a stack. I think that it is just a wrong tool for your problem. Just maintain a collection of opened connections. Set or dict can be better that list or deque. -- nosy:

[issue45119] test_signal.test_itimer_virtual() failed on AMD64 Fedora Rawhide: Linux kernel 5.15 regression

2021-09-13 Thread STINNER Victor
STINNER Victor added the comment: Update: Frederic Weisbecker proposed a kernel fix: https://lkml.org/lkml/2021/9/13/1647 -- ___ Python tracker ___

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 85dc53a463967659075744ad911d08a32aa70dd5 by Victor Stinner in branch 'main': bpo-21302: Update time.sleep() doc for clock_nanosleep() (GH-28311) https://github.com/python/cpython/commit/85dc53a463967659075744ad911d08a32aa70dd5 --

[issue41710] acquire(timeout) of threading.Lock and threading.Condition is affected by jumps in system time: Python should use sem_clockwait(CLOCK_MONOTONIC)

2021-09-13 Thread STINNER Victor
Change by STINNER Victor : -- title: Timeout is affected by jumps in system time -> acquire(timeout) of threading.Lock and threading.Condition is affected by jumps in system time: Python should use sem_clockwait(CLOCK_MONOTONIC) ___ Python tracker

[issue4492] httplib code thinks it closes connection, but does not

2021-09-13 Thread Irit Katriel
Irit Katriel added the comment: The code has changed quite a lot since this was created and it no longer matches the description in this issue. -- nosy: +iritkatriel resolution: -> out of date stage: test needed -> resolved status: open -> closed

[issue45022] Update libffi to 3.4.2

2021-09-13 Thread Zachary Ware
Zachary Ware added the comment: The 3.8 branch has been updated to point to the `libffi-3.3.0` tag; you can either update to the latest revision of 3.8 or pull in just 8c3a10e58b12608c3759fee684e7aa399facae2a -- ___ Python tracker

[issue45184] Add `pop` function to remove context manager from (Async)ExitStack

2021-09-13 Thread Andreas H.
New submission from Andreas H. : Currently it is not possible to remove context managers from an ExitStack (or AsyncExitStack). Workarounds are difficult and generally do accesses implementation details of (Async)ExitStack. See e.g. https://stackoverflow.com/a/37607405. It could be done as

[issue45168] dis output for LOAD_CONST is confusing

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

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread Éric Araujo
Éric Araujo added the comment: At this point, it seems that there would be more value in reporting this to setuptools than on bpo. -- ___ Python tracker ___

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-09-13 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- nosy: +hugovk nosy_count: 1.0 -> 2.0 pull_requests: +26725 pull_request: https://github.com/python/cpython/pull/28312 ___ Python tracker ___

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-09-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26724 pull_request: https://github.com/python/cpython/pull/28311 ___ Python tracker ___

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 85a4748118c3793be7047ecbcbfc79dd07cb2a75 by Livius in branch 'main': bpo-21302: Add clock_nanosleep() implementation for time.sleep() (GH-28111) https://github.com/python/cpython/commit/85a4748118c3793be7047ecbcbfc79dd07cb2a75 --

[issue20524] format error messages should provide context information

2021-09-13 Thread Nikita Sobolev
Nikita Sobolev added the comment: > I think that would require some major surgery to the code, but would be worth > it. I've decided to take an easy path: https://github.com/python/cpython/pull/28310 ``` PyErr_Format(PyExc_ValueError, "Invalid format specifier: '%s' for

[issue20524] format error messages should provide context information

2021-09-13 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch nosy: +sobolevn nosy_count: 4.0 -> 5.0 pull_requests: +26723 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/28310 ___ Python tracker

[issue40080] Stripping annotations out as a new optimization mode

2021-09-13 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45183] Unexpected exception with zip importer

2021-09-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread miss-islington
miss-islington added the comment: New changeset 2f1d9bca144f3bbb4199111f4763ef05daea8526 by Miss Islington (bot) in branch '3.10': bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305) https://github.com/python/cpython/commit/2f1d9bca144f3bbb4199111f4763ef05daea8526

[issue45183] Unexpected exception with zip importer

2021-09-13 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +pablogsal, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45183] Unexpected exception with zip importer

2021-09-13 Thread Ronald Oussoren
New submission from Ronald Oussoren : The attached file demonstrates the problem: If importlib.invalidate_caches() is called while the zipfile used by the zip importer is not available the import system breaks entirely. I found this in a testsuite that accedently did this (it should have

[issue45181] Rewrite loading sqlite3 tests

2021-09-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45181] Rewrite loading sqlite3 tests

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3e19409d6443c66a6a7d62f58b2bb4e8330e56c4 by Serhiy Storchaka in branch 'main': bpo-45181: Simplify loading sqlite3 tests (GH-28304) https://github.com/python/cpython/commit/3e19409d6443c66a6a7d62f58b2bb4e8330e56c4 --

[issue45022] Update libffi to 3.4.2

2021-09-13 Thread Ghostkeeper
Ghostkeeper added the comment: It seems this just broke our Windows build process of Python 3.8, since the cpython-bin-deps repository now contains only a libffi-8.lib while the the Python 3.8 branch still refers to libffi-7.lib in libffi.props:

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +26722 pull_request: https://github.com/python/cpython/pull/28309 ___ Python tracker ___

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26721 pull_request: https://github.com/python/cpython/pull/28308 ___ Python tracker

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9260e6739865c966c3ec6c5c289e0b96f848403e by Serhiy Storchaka in branch 'main': bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305) https://github.com/python/cpython/commit/9260e6739865c966c3ec6c5c289e0b96f848403e

[issue45156] mock.seal has infinite recursion with int class attributes

2021-09-13 Thread Nikita Sobolev
Nikita Sobolev added the comment: I've proposed a solution, based on the assumption that we don't need to recurse into `_SpecState` props: ``` if isinstance(m._mock_children.get(attr), _SpecState): continue ``` It seems like a simple and reasonable thing to do. Link:

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-13 Thread STINNER Victor
Change by STINNER Victor : -- title: Performance regression 3.10b1 and later on Windows -> Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build ___ Python tracker

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-09-13 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-09-13 Thread Petr Viktorin
Petr Viktorin added the comment: > I’m not convinced. I’m more concerned with the obscurity of the API. If I > saw its use in some code I was reviewing, I’d look it up, and then I’d know > exactly what it was doing. I know you would. But there are many others who just try things until they

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is better to narrow the __getattr__. It can break protocols using other special methods. -- nosy: +gvanrossum, serhiy.storchaka ___ Python tracker

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-13 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___ Python-bugs-list

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-13 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch nosy: +uriyyo nosy_count: 1.0 -> 2.0 pull_requests: +26720 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28306 ___ Python tracker

[issue5846] Deprecate obsolete functions in unittest

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 851811f5772c43f72f445e2ce1ac3ea9da951ae3 by Serhiy Storchaka in branch 'main': bpo-5846: Do not use obsolete unittest functions. (GH-28303) https://github.com/python/cpython/commit/851811f5772c43f72f445e2ce1ac3ea9da951ae3 --

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

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

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : requires_zlib is a decorator factory which returns a decorator, not a decorator. It should always be followed by parenthesis. In Lib/distutils/tests/test_bdist_rpm.py it is used improperly, so the corresponding tests were never ran. --

[issue45177] Use shared test loader when possible when running test suite

2021-09-13 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Also, TestLoader has mutable attribute "errors". I am not sure that it is > good idea to share it between unrelated tests. Noted. I'm closing this. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed

[issue45177] Use shared test loader when possible when running test suite

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue45181. Most of this code is gone. Also, TestLoader has mutable attribute "errors". I am not sure that it is good idea to share it between unrelated tests. -- ___ Python tracker

[issue45181] Rewrite loading sqlite3 tests

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

[issue45181] Rewrite loading sqlite3 tests

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR rewrites the loading of sqlite3 tests. Instead of explicitly enumerating test modules and test classes in every module, and manually creating test suites, it uses unittest discover ability. Every new test files and test classes will be

[issue5846] Deprecate obsolete functions in unittest

2021-09-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 4.0 -> 5.0 pull_requests: +26717 pull_request: https://github.com/python/cpython/pull/28303 ___ Python tracker

[issue17913] stat.filemode returns "-" for sockets and unknown types

2021-09-13 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the ping. The issue has been fixed a long time ago. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker