New submission from Tianrui Luo :
Fairly easy to reproduce.
`__all__` in a module seems unable to track name with `φ`.
The following minimal reproducing example also fails for function name of `aφ`
or `φb`.
```python3
Python 3.7.7 (default, May 7 2020, 21:25:33)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tmp import *
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'tmp' has no attribute 'ϕ'
```
The `tmp.py` file.
```python
# tmp.py
__all__ = ['ϕ']
def ϕ():
print('"__all__" doesn\'t like me')
return
```
--
components: Unicode
messages: 375330
nosy: ezio.melotti, tianrluo, vstinner
priority: normal
severity: normal
status: open
title: module `__all__` cannot detect function name with `φ`
type: behavior
versions: Python 3.7
___
Python tracker
<https://bugs.python.org/issue41542>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com