[issue47148] sys.path.append before import the module causing module don't have doc-string?
Zachary Ware
report at bugs.python.org
Wed Mar 30 16:58:58 EDT 2022
Zachary Ware <zachary.ware at gmail.com> added the comment:
Also cannot reproduce on Windows:
D:\issue47148_test\parent\another folder>type ..\a.py
def multiply():
"""multiply stuff"""
return 2 * 4
D:\issue47148_test\parent\another folder>type b.py
import sys
sys.path.append('..')
import a
print(a.multiply.__doc__)
D:\issue47148_test\parent\another folder>py b.py
multiply stuff
My best advice would be to try to reproduce it again yourself in a clean directory, and/or remove all `*.pyc` files and `__pycache__` directories from your project and try again, making sure you have no environment variables starting with `PYTHON` set. If you still find you're having trouble, please reach out in the Users category of discuss.python.org.
----------
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47148>
_______________________________________
More information about the Python-bugs-list
mailing list