[issue46082] type casting of bool

2021-12-15 Thread aziz
New submission from aziz : >>> st = "True" >>> bool(st) True >>> st = "False" >>> bool(st) True >>> >>> stk = "False" >>> bool(stk) True >>> eval(stk) False -- components: 2to3 (

[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 ___ P