Message375756
pdb's whatis command prints 'Function' instead of 'Method' for a bound method:
> python.bat
Running Release|Win32 interpreter...
Python 3.10.0a0 (heads/master-dirty:12695f4c6d, Aug 21 2020, 15:48:06) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class MyClass:
... def mymethod(self):
... pass
...
>>> import pdb
>>> pdb.set_trace()
--Return--
> <stdin>(1)<module>()->None
(Pdb) whatis MyClass().mymethod
Function mymethod
(Pdb) MyClass().mymethod
<bound method MyClass.mymethod of <__main__.MyClass object at 0x0131D5C8>>
(Pdb) |
|
Date |
User |
Action |
Args |
2020-08-21 15:31:01 | iritkatriel | set | recipients:
+ iritkatriel |
2020-08-21 15:31:01 | iritkatriel | set | messageid: <1598023861.67.0.741384423605.issue41609@roundup.psfhosted.org> |
2020-08-21 15:31:01 | iritkatriel | link | issue41609 messages |
2020-08-21 15:31:01 | iritkatriel | create | |
|