Message296928
| Author |
Nate Soares |
| Recipients |
Nate Soares, ezio.melotti, vstinner |
| Date |
2017年06月26日.18:08:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1498500531.27.0.587971014084.issue30772@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
[NOTE: In this comment, I use BB to mean unicode character 0x1D539, b/c the issue tracker won't let me submit a comment with unicode characters in it.]
Directory structure:
repro/
foo.py
test_foo.py
Contents of foo.py:
BB = 1
__all__ = ['BB']
Contents of test_foo.py:
from .foo import *
Error message:
AttributeError: module 'repro.foo' has no attribute 'BB'
If I change foo.py to have `__all__ = ['B']` (note that 'B' is not the same as 'BB'), then everything works "fine", modulo the fact that now foo.B is a thing and foo.BB is not a thing.
[Recall that in the above, BB is a placeholder for U+1D539, which the issuetracker prevents me from writing here.] |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年06月26日 18:08:51 | Nate Soares | set | recipients:
+ Nate Soares, vstinner, ezio.melotti |
| 2017年06月26日 18:08:51 | Nate Soares | set | messageid: <1498500531.27.0.587971014084.issue30772@psf.upfronthosting.co.za> |
| 2017年06月26日 18:08:51 | Nate Soares | link | issue30772 messages |
| 2017年06月26日 18:08:51 | Nate Soares | create |
|