[issue47148] sys.path.append before import the module causing module don't have doc-string?

2022-03-29 Thread Rukchad Wongprayoon


Rukchad Wongprayoon  added the comment:

maybe try on windows? due to i did this on windows

--
status: pending -> open

___
Python tracker 
<https://bugs.python.org/issue47148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47148] sys.path.append before import the module causing module don't have doc-string?

2022-03-29 Thread Rukchad Wongprayoon


Rukchad Wongprayoon  added the comment:

seems like it doesn't appear in the help func too

--

___
Python tracker 
<https://bugs.python.org/issue47148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47148] sys.path.append before import the module causing module don't have doc-string?

2022-03-29 Thread Rukchad Wongprayoon


Rukchad Wongprayoon  added the comment:

here's the example code

parent/a.py
```py
def multiply():
 """multiply stuff"""
 return 69*420
```

parent/another folder/b.py
```py
import sys
sys.path.append('..')
import a
a.multiply.__doc__ # None
```

--

___
Python tracker 
<https://bugs.python.org/issue47148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47148] sys.path.append before import the module causing module don't have doc-string?

2022-03-29 Thread Rukchad Wongprayoon


Change by Rukchad Wongprayoon :


--
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue47148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47148] sys.path.append before import the module causing module don't have doc-string?

2022-03-29 Thread Rukchad Wongprayoon


New submission from Rukchad Wongprayoon :

How to reproduce?

1. Make a random module with doc-string in the function
2. Make a python app in new folder (under the module folder) and import it by 
do 
```py
import sys
sys.path.append("..")
import 
```
3. then every function will don't have doc-string included in their function

--
components: Library (Lib)
messages: 416242
nosy: timelessnesses
priority: normal
severity: normal
status: open
title: sys.path.append before import the module causing module don't have 
doc-string?
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue47148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com