Zachary Ware <zachary.w...@gmail.com> added the comment:
I can't reproduce this without the `-OO` option: -OO : do -O changes and also discard docstrings; add .opt-2 before .pyc extension Note that I did slightly adjust your `b.py` script to do `print(a.multiply.__doc__)`, but here's what I tried: ~/issue47148_test/parent/another folder $ cat ../a.py def multiply(): """multiply stuff""" return 69*420 ~/issue47148_test/parent/another folder $ cat b.py import sys sys.path.append('..') import a print(a.multiply.__doc__) ~/issue47148_test/parent/another folder $ python b.py multiply stuff ~/issue47148_test/parent/another folder $ python -O b.py multiply stuff ~/issue47148_test/parent/another folder $ python -OO b.py None ---------- nosy: +zach.ware resolution: -> works for me status: open -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue47148> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com