[issue38364] inspect.iscoroutinefunction / isgeneratorfunction / isasyncgenfunction can't handle partialmethod objects

2022-03-05 Thread Jameel A.
Change by Jameel A. : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue38364> ___ ___ Python-bugs-list mailing list Unsub

[issue38364] inspect.iscoroutinefunction / isgeneratorfunction / isasyncgenfunction can't handle partialmethod objects

2022-03-05 Thread Jameel Al-Aziz
Jameel Al-Aziz added the comment: I've recently ran into this via unittest.mock.patch.object. Mocking an asynchronous partial method returns MagicMock and not AsyncMagicMock, causing some pretty hard to debug failures. -- nosy: +me3 ___ Python

[issue10297] decimal module documentation is misguiding

2010-11-03 Thread hafiza jameel
New submission from hafiza jameel fizabre...@gmail.com: the documentation does not show the import statement of decimal module in the introduction: http://docs.python.org/library/decimal.html import should have been done like this: from decimal import * -- assignee: d...@python