GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — [3.11] gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) by miss-islington · Pull Request #94460 · python/cpython Conversation
|
|
Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Isn't 3.11 and 3.10 in feature freeze? Cc @pablogsal |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This is a bugfix, isn't it? The bug being they is was incorrectly identifying Maybe I am missing something, thought. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I read this as a feature change to allow duck typed Function-like objects to pass iscoroutinefunction/isgeneratorfunction/isasyncgeneratorfunction |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
All the descriptions of the issue and the tests are about |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ambv Thoughts? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Yeah this affects both more than AsyncMock and more than iscoroutinefunction |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also the notes in the PR reflect the old approach and not the approach used in the code:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hummm, @ambv I think this should then not have been backported. We should revert both backports |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I dunno, this feels like a bug that is being fixed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I agree with @cjw296 that this is a bug fix. Instead of hard-coding I agree that the description of the PR could better indicate what the change is vs what problem it fixes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Well, but wouldn't this affect other code that currently is behaving in a (arguably incorrect) given way? Technically that prevents the backport unless all possible affected code is surely doing it wrong. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
At the very least, lest improve the NEWS entry, please. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
If it's behaving in an incorrect way before this fix, isn't that just another indication this is a bugfix? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, as long as every affected case is behaving incorrectly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.