homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:51Nate Soaressetrecipients: + Nate Soares, vstinner, ezio.melotti
2017年06月26日 18:08:51Nate Soaressetmessageid: <1498500531.27.0.587971014084.issue30772@psf.upfronthosting.co.za>
2017年06月26日 18:08:51Nate Soareslinkissue30772 messages
2017年06月26日 18:08:51Nate Soarescreate

AltStyle によって変換されたページ (->オリジナル) /