[issue43895] Unnecessary Cache of Shared Object Handles

2021-07-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith, twouters versions: +Python 3.11 ___ Python tracker ___

[issue44570] 3.10.0b3 doesn't trace line events for return in some cases

2021-07-05 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- nosy: +Sergey.Kirpichev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Here is my previous attempt at this, for reference: https://github.com/python/cpython/pull/9853 -- nosy: +pablogsal ___ Python tracker

[issue44571] itertools: takedowhile()

2021-07-05 Thread pavel-lexyr
pavel-lexyr added the comment: I see. If the syntax allows for better ways to do it now, perhaps a move towards deprecation would be a better idea then? This would agree with the Zen. Also, please elaborate more on the generator-based solutions you have in mind. The suggestion stems from a

[issue35277] Upgrade bundled pip/setuptools

2021-07-05 Thread Ned Deily
Ned Deily added the comment: Thanks for the comment. While the original intent of the issue was resolved (by updating the bundled pip), Serhiy's point about the size of the repo increasing is still an issue but there is a more recent issue, Issue36608, with a proposed change that addresses

[issue36608] Replace bundled pip and setuptools with a downloader in the ensurepip module

2021-07-05 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44571] itertools: takedowhile()

2021-07-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: +Library (Lib) versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list

[issue44571] itertools: takedowhile()

2021-07-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion. I agree that the loss of the non-matching element is an irritant. The suggestion to return the first false element would solve that problem but is itself hard to work with. The result would be difficult to reason about

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25602 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27043 ___ Python tracker ___

[issue44563] Failed tee.fromiterable() corrupts the linked list of all GC objects in debug build

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

[issue44563] Failed tee.fromiterable() corrupts the linked list of all GC objects in debug build

2021-07-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 645e527298b1f24625783338076330037d860162 by Miss Islington (bot) in branch '3.10': bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) (GH-27041)

[issue44563] Failed tee.fromiterable() corrupts the linked list of all GC objects in debug build

2021-07-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 324b93295fd81133d2dd597c3e3a0333f6c9d95b by Miss Islington (bot) in branch '3.9': bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) (GH-27042) https://github.com/python/cpython/commit/324b93295fd81133d2dd597c3e3a0333f6c9d95b

[issue44571] itertools: takedowhile()

2021-07-05 Thread pavel-lexyr
New submission from pavel-lexyr : As described in the documentation, itertools.takewhile() returns all the elements until the first one that does not match the provided criterion. In case of a destructive iterator, or one with side effects, not yielding an element downstream may render

[issue44570] 3.10.0b3 doesn't trace line events for return in some cases

2021-07-05 Thread Ned Batchelder
New submission from Ned Batchelder : (from https://github.com/nedbat/coveragepy/issues/1184) This code runs the return statement on line 17 twice. The second time, there is a "line" event and then a "return" event for that line. But the first time, there is only a "return" event: --- 8<

[issue44563] Failed tee.fromiterable() corrupts the linked list of all GC objects in debug build

2021-07-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +25601 pull_request: https://github.com/python/cpython/pull/27042 ___ Python tracker ___

[issue44563] Failed tee.fromiterable() corrupts the linked list of all GC objects in debug build

2021-07-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f64de53ff01e734d48d1d42195443d7d1646f220 by Serhiy Storchaka in branch 'main': bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) https://github.com/python/cpython/commit/f64de53ff01e734d48d1d42195443d7d1646f220 --

[issue44563] Failed tee.fromiterable() corrupts the linked list of all GC objects in debug build

2021-07-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25600 pull_request: https://github.com/python/cpython/pull/27041 ___ Python tracker

[issue44547] fraction.Fraction does not implement __int__.

2021-07-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I am wondering whether one of __int__ or __trunc__ should be deprecated. I would not miss __trunc__. -- nosy: +rhettinger ___ Python tracker

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44566] StopIteration subclass suppressed by contextlib.contextmanager

2021-07-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: +Library (Lib) title: StopIteration subclass raised in body of 'with' statement suppressed -> StopIteration subclass suppressed by contextlib.contextmanager type: -> behavior versions: -Python 3.6, Python 3.7, Python 3.8

[issue43453] docs: runtime_checkable example refers to changed behavior in 3.10

2021-07-05 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43453] docs: runtime_checkable example refers to changed behavior in 3.10

2021-07-05 Thread miss-islington
miss-islington added the comment: New changeset 846cc4d28025ac4319069ec3c6db9526c75efd40 by Miss Islington (bot) in branch '3.10': bpo-43453: Update and re-add example to typing runtime_checkable (GH-27013) https://github.com/python/cpython/commit/846cc4d28025ac4319069ec3c6db9526c75efd40

[issue44566] StopIteration subclass raised in body of 'with' statement suppressed

2021-07-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the explanation. Let's reopen the issue for now. -- status: closed -> open ___ Python tracker ___

[issue44555] Dictionary operations are LINEAR for any dictionary (for a particular code).

2021-07-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I still disagree with this design since it's not > how a person using a hash map expects it to behave. All mapping data structures have tradeoffs. For the core dict type, we chose a structure that benefits most Python users most of the time. If a user

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Sebastian Rittau
Sebastian Rittau added the comment: typing.io is not referenced in either the tests or the implementation for pydoc. What happens is basically: typing.io is a class, so its derived from object. When formatting the docstring for object, the formatter queries the __module__ attribute of all

[issue4600] __class__ assignment error message confusing

2021-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I neglected to mention above what c is. I Irit guessed right as >>> class C: pass ... >>> c = C() is what I (also) usually do for examples and testing. Removing "new-style" elsewhere solved the issue with the error message for "ob.__class__ =

[issue43384] Include regen-stdlib-module-names in regen-all

2021-07-05 Thread Neil Schemenauer
Change by Neil Schemenauer : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: Why not just change "typing.io" to "typing"? -- ___ Python tracker ___ ___ Python-bugs-list

[issue44567] venv fails when called from within long path on Windows

2021-07-05 Thread Steve Dower
Steve Dower added the comment: Oh, and there's no harm in adding a note to that doc section explicitly pointing out that it doesn't enable CPython itself to be installed to a long path, and it may not enable packages to be imported from long paths in all scenarios (as it's very feasible

[issue44567] venv fails when called from within long path on Windows

2021-07-05 Thread Steve Dower
Steve Dower added the comment: It enables it for accessing from within Python, but doesn't enable Python itself to be installed into a long path. And because a venv is essentially an installation, they're included in that. (Possibly %PYTHONPATH% entries are too.) I haven't checked how

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Sebastian Rittau
Sebastian Rittau added the comment: pr-27039 suppresses warnings when accessing `typing.{re,io}.__module__`, which should fix this warning. -- ___ Python tracker ___

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Sebastian Rittau
Change by Sebastian Rittau : -- pull_requests: +25599 pull_request: https://github.com/python/cpython/pull/27039 ___ Python tracker ___

[issue4600] __class__ assignment: new-style? heap? == confusing

2021-07-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Sebastian Rittau
Sebastian Rittau added the comment: We could easily do what Ken did in PR-26811, and add "warnings.filterwarnings("default", category=DeprecationWarning)" to the test, but I would like to understand what is going on first. It seems the warnings are generated by

[issue44569] traceback.py: Allow customization of per-frame line formatting in StackSummary

2021-07-05 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +25598 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27038 ___ Python tracker ___

[issue44567] venv fails when called from within long path on Windows

2021-07-05 Thread schwaerz
schwaerz added the comment: I see. Reading https://docs.python.domainunion.de/3/using/windows.html#removing-the-max-path-limitation I thought that the long paths on Win10 are supposed to be supported in general. Is there any blocker in particular which I should keep in mind? --

[issue44567] venv fails when called from within long path on Windows

2021-07-05 Thread Eryk Sun
Eryk Sun added the comment: The secure CRT string functions such as wcscpy_s() and wcscat_s() invoke the invalid parameter handler if the destination string is too small. This defaults to a fastfail that terminates with the status code 0xC409, subcode 5 (FAST_FAIL_INVALID_ARG). We're

[issue43950] Include column offsets for bytecode instructions

2021-07-05 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25597 pull_request: https://github.com/python/cpython/pull/27037 ___ Python tracker ___

[issue44569] traceback.py: Allow customization of per-frame line formatting in StackSummary

2021-07-05 Thread Ammar Askar
New submission from Ammar Askar : During the implementation of PEP 657, Terry Jan Reedy pointed out that in the format method of traceback.StackSummary there are two roles being fulfilled, there is some logic to handle omitting repeated lines involved in recursive calls and then the core

[issue43453] docs: runtime_checkable example refers to changed behavior in 3.10

2021-07-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25596 pull_request: https://github.com/python/cpython/pull/27036 ___ Python tracker

[issue44568] test_constructor (test.test_ssl.ContextTests) ... Fatal Python error: Segmentation fault

2021-07-05 Thread tongxiaoge
New submission from tongxiaoge : I have reproduced this problem in the latest versions of Python 3.8.10 and 3.9.6. Python 3.8.5 does not have this problem, other versions are not tested. The failure log is as follows: [ 457s] 0:02:34 load avg: 9.29 Re-running test_ssl in verbose mode [ 457s]

[issue44555] Dictionary operations are LINEAR for any dictionary (for a particular code).

2021-07-05 Thread Daniel Fleischman
Daniel Fleischman added the comment: Thank you for your reply. I didn't know that this was the expected behavior (found it at https://wiki.python.org/moin/TimeComplexity): "For these operations, the worst case n is the maximum size the container ever achieved, rather than just the current

[issue44562] types.GenericAlias should decref instead of using delete in tp_new

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

[issue44479] Windows build doesn't regenerate some files

2021-07-05 Thread Steve Dower
Steve Dower added the comment: Great! I backported to 3.10, but we never took the other changes back to 3.9 so it can stop there. -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11

[issue44479] Windows build doesn't regenerate some files

2021-07-05 Thread Steve Dower
Steve Dower added the comment: New changeset f3289a50503ed1a809d77fb03744bdcc7b9f1093 by Steve Dower in branch '3.10': bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on Windows (GH-26984)

[issue43453] docs: runtime_checkable example refers to changed behavior in 3.10

2021-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 17f94e28882e1e2b331ace93f42e8615383dee59 by andrei kulakov in branch 'main': bpo-43453: Update and re-add example to typing runtime_checkable (#27013) https://github.com/python/cpython/commit/17f94e28882e1e2b331ace93f42e8615383dee59

[issue44562] types.GenericAlias should decref instead of using delete in tp_new

2021-07-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 51a29c42f10bd9368db9a21f2f63319be2e30b95 by Ken Jin in branch '3.9': [3.9] bpo-44562: Remove invalid PyObject_GC_Del from error path of types.GenericAlias … (GH-27016) (GH-27028)

[issue43384] Include regen-stdlib-module-names in regen-all

2021-07-05 Thread Andrei Kulakov
Andrei Kulakov added the comment: This can be closed based on PR comment by nascheme. -- nosy: +andrei.avk ___ Python tracker ___

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: Can that be fixed by changing test_pydoc? -- ___ Python tracker ___ ___ Python-bugs-list

[issue44567] venv fails when called from within long path on Windows

2021-07-05 Thread schwaerz
New submission from schwaerz : When trying to create a venv from within a long path name in Windows 10 (long paths enabled in the registry), python crashes. Used python 3.9.6. When reducing the path length by one character, it starts working. When disabling the long path support in Windows, I

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: Sure, I'll have a look. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: Very much so. Irit, do you want to give it a try? (Note there are helpful instructions now in Python/adaptive.md.) -- ___ Python tracker

[issue44479] Windows build doesn't regenerate some files

2021-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, I tried this and it works beautifully! -- ___ Python tracker ___ ___ Python-bugs-list

[issue44479] Windows build doesn't regenerate some files

2021-07-05 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +25595 pull_request: https://github.com/python/cpython/pull/27035 ___ Python tracker ___

[issue43388] shutil._fastcopy_sendfile() makes wrong (?) assumption about sendfile() return value

2021-07-05 Thread Lorenz Hüdepohl
Lorenz Hüdepohl added the comment: Sure, as written it would. As I said: Error handling etc. left out for clarity, just to point out the new structure. -- ___ Python tracker

[issue43388] shutil._fastcopy_sendfile() makes wrong (?) assumption about sendfile() return value

2021-07-05 Thread Andrei Kulakov
Andrei Kulakov added the comment: Wouldn't this create infinite loop if a file cannot be fully copied for some reason? -- nosy: +andrei.avk ___ Python tracker ___

[issue44479] Windows build doesn't regenerate some files

2021-07-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25594 pull_request: https://github.com/python/cpython/pull/27034 ___ Python tracker

[issue44479] Windows build doesn't regenerate some files

2021-07-05 Thread Steve Dower
Steve Dower added the comment: New changeset 1b133ab8412e4f6a53914212df7a7656f376256d by Steve Dower in branch 'main': bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on Windows (GH-26984)

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-07-05 Thread miss-islington
miss-islington added the comment: New changeset 7ac7a0c0f03c60934bc924ee144db170a0e0161f by Sergey Fedoseev in branch 'main': bpo-44022: Fix Sphinx role in NEWS entry (GH-27033) https://github.com/python/cpython/commit/7ac7a0c0f03c60934bc924ee144db170a0e0161f --

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Stefan Behnel
Stefan Behnel added the comment: I only just noticed that the original request is from 2015. My guess is that this is a resolved problem, given the available options. I'll close this ticket as outdated. Please comment if this is still an issue. -- resolution: -> out of date stage:

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Stefan Behnel
Change by Stefan Behnel : -- components: +C API -Interpreter Core type: -> enhancement versions: +Python 3.11 -Python 3.5 ___ Python tracker ___

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Stefan Behnel
Stefan Behnel added the comment: Could you explain a bit why you want to subclass "PyModuleObject" in C? Why isn't a Python subclass or an independent (non-module) C extension type enough? -- ___ Python tracker

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: + PEP 489 authors. -- nosy: +iritkatriel, ncoghlan, petr.viktorin, scoder ___ Python tracker ___

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-07-05 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- nosy: +sir-sigurd nosy_count: 8.0 -> 9.0 pull_requests: +25593 pull_request: https://github.com/python/cpython/pull/27033 ___ Python tracker ___

[issue4600] __class__ assignment: new-style? heap? == confusing

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: The error messages are different now: >>> class C: pass ... >>> c = C() >>> c.__class__ = 1 Traceback (most recent call last): File "", line 1, in TypeError: __class__ must be set to a class, not 'int' object >>> c.__class__ = object Traceback (most recent

[issue44561] Some expired hyperlinks in Python documentation

2021-07-05 Thread Steven Hsu
Change by Steven Hsu : -- pull_requests: +25592 pull_request: https://github.com/python/cpython/pull/27032 ___ Python tracker ___

[issue44562] types.GenericAlias should decref instead of using delete in tp_new

2021-07-05 Thread miss-islington
miss-islington added the comment: New changeset d17cc1ff9fe82b17bbe589b83e440959c8f135d7 by Miss Islington (bot) in branch '3.10': bpo-44562: Use PyType_GenericAlloc in Py_GenericAlias (GH-27021) https://github.com/python/cpython/commit/d17cc1ff9fe82b17bbe589b83e440959c8f135d7 --

[issue44562] types.GenericAlias should decref instead of using delete in tp_new

2021-07-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b324c4c5f763c5116a97db8591e6dcb94456570a by Pablo Galindo in branch 'main': bpo-44562: Use PyType_GenericAlloc in Py_GenericAlias (GH-27021) https://github.com/python/cpython/commit/b324c4c5f763c5116a97db8591e6dcb94456570a --

[issue44562] types.GenericAlias should decref instead of using delete in tp_new

2021-07-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +25591 pull_request: https://github.com/python/cpython/pull/27031 ___ Python tracker ___

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: This looks like a case of specialization. -- nosy: +Mark.Shannon, gvanrossum, iritkatriel ___ Python tracker ___

[issue42889] Incorrect behavior after ast node visits

2021-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: We usually used 'fixed' for 'fixed in this issue'. In any case, 'Resolution' is secdondary to 'Status'. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue44565] python configure config.status: error: cannot find input file: `config.sh.in'

2021-07-05 Thread kevinshi
Change by kevinshi : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44565] python configure config.status: error: cannot find input file: `config.sh.in'

2021-07-05 Thread kevinshi
kevinshi added the comment: thanks i'm resolved! It because system's env has the same name for config.sh -- ___ Python tracker ___

[issue44566] StopIteration subclass raised in body of 'with' statement suppressed

2021-07-05 Thread Thomas Grainger
Change by Thomas Grainger : -- keywords: +patch pull_requests: +25590 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27024 ___ Python tracker ___

[issue44566] StopIteration subclass raised in body of 'with' statement suppressed

2021-07-05 Thread Thomas Grainger
Thomas Grainger added the comment: This is the output: ``` Traceback (most recent call last): File "/home/graingert/projects/close.py", line 5, in foo yield File "/home/graingert/projects/close.py", line 12, in raise StartIrritation __main__.StartIrritation The above exception

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-05 Thread miss-islington
miss-islington added the comment: New changeset 9f47d872dbebdd95fd6b0a3351aeafaf82dfd203 by Miss Islington (bot) in branch '3.9': bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012) https://github.com/python/cpython/commit/9f47d872dbebdd95fd6b0a3351aeafaf82dfd203

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-05 Thread miss-islington
miss-islington added the comment: New changeset 1f8486fd50ad4666078eb40ce9f24e8aac17a395 by Miss Islington (bot) in branch '3.10': bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012) https://github.com/python/cpython/commit/1f8486fd50ad4666078eb40ce9f24e8aac17a395

[issue1462485] StopIteration raised in body of 'with' statement suppressed

2021-07-05 Thread Thomas Grainger
Thomas Grainger added the comment: apologies I meant to post this on a new ticket -- ___ Python tracker ___ ___ Python-bugs-list

[issue44566] StopIteration subclass raised in body of 'with' statement suppressed

2021-07-05 Thread Thomas Grainger
New submission from Thomas Grainger : https://bugs.python.org/issue1462485 import contextlib @contextlib.contextmanager def foo(): yield class StartIrritation(StopIteration): pass with foo(): raise StartIrritation -- messages: 396979 nosy: graingert, ncoghlan,

[issue1462485] StopIteration raised in body of 'with' statement suppressed

2021-07-05 Thread Thomas Grainger
Thomas Grainger added the comment: ``` import contextlib @contextlib.contextmanager def foo(): yield class StartIrritation(StopIteration): pass with foo(): raise StartIrritation ``` -- nosy: +graingert ___ Python tracker

[issue44565] python configure config.status: error: cannot find input file: `config.sh.in'

2021-07-05 Thread kevinshi
New submission from kevinshi : config.status: error: cannot find input file: `config.sh.in' -- components: Installation messages: 396977 nosy: kevinshi priority: normal severity: normal status: open title: python configure config.status: error: cannot find input file: `config.sh.in'

[issue41576] document BaseException in favour of bare except in error tutorial

2021-07-05 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Serhiy/Terry: Is further discussion needed? Can this be closed, or should the proposed PR be applied (after resolving any issues)? -- nosy: +erlendaasland ___ Python tracker

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25588 pull_request: https://github.com/python/cpython/pull/27029 ___ Python tracker

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +25589 pull_request: https://github.com/python/cpython/pull/27030 ___ Python tracker ___

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-05 Thread Ken Jin
Ken Jin added the comment: > This change seems to emit deprecation warnings in test_pydoc. test_typing emits them too as it tests importing things from __all__. -- ___ Python tracker

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-05 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 09302405d22e86884d6058226790c0cdf5b72f14 by Dong-hee Na in branch 'main': bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012) https://github.com/python/cpython/commit/09302405d22e86884d6058226790c0cdf5b72f14 --

[issue44562] types.GenericAlias should decref instead of using delete in tp_new

2021-07-05 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25587 pull_request: https://github.com/python/cpython/pull/27028 ___ Python tracker ___ ___

[issue44562] types.GenericAlias should decref instead of using delete in tp_new

2021-07-05 Thread STINNER Victor
STINNER Victor added the comment: > Revert "bpo-44562: Remove invalid PyObject_GC_Del from error path of > types.GenericAlias … (GH-27016) (GH-27018)" (GH-27022) That's a good idea :-) The reverted commit caused many segfaults on macOS:

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2021-07-05 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Asyncio Event Documentation Links Incorrect ___ Python tracker

[issue44555] Dictionary operations are LINEAR for any dictionary (for a particular code).

2021-07-05 Thread Inada Naoki
Inada Naoki added the comment: iterating whole over the dict is O(n) where n is the historical max size of the dict. On the other hand, there are no guarantee about `next(iter(d))` is O(1). The guarantee is O(n) at worst case. And your example is the worst case. So this is not a bug. As

[issue43248] platform.libc_ver() returns no information on Alpine Linux

2021-07-05 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44534] unittest.mock.Mock.unsafe doc is garbled

2021-07-05 Thread Chris Withers
Chris Withers added the comment: New changeset abb08e3af6aa19928007a349592e95e6de38467f by Jack DeVries in branch 'main': bpo-44534: fix wording and docstring sync in unittest.Mock GH27000 https://github.com/python/cpython/commit/abb08e3af6aa19928007a349592e95e6de38467f -- nosy: