mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
[3.13] gh-128772: Fix pydoc for methods with __module__ is None (GH-129177) (GH-129653)
(cherry picked from commit 979d766209)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
19ceb342b5
commit
7eba097137
4 changed files with 16 additions and 1 deletions
8
Lib/test/test_pydoc/module_none.py
Normal file
8
Lib/test/test_pydoc/module_none.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
def func():
|
||||
pass
|
||||
func.__module__ = None
|
||||
|
||||
class A:
|
||||
def method(self):
|
||||
pass
|
||||
method.__module__ = None
|
||||
Loading…
Add table
Add a link
Reference in a new issue