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 KevKeating
Recipients KevKeating, brett.cannon, epaine, eric.snow, ncoghlan
Date 2020-11-09.21:31:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604957505.31.0.377617625461.issue42273@roundup.psfhosted.org>
In-reply-to
Content
An __init__.py shouldn't be necessary.  If I comment out the 'b = lazy_import("foo.b")' line in a.py (i.e. disable the lazy import), then the print statement works correctly as written without any other changes.

Also, I double checked with the colleague who originally ran into this issue, and it turns out he encountered the bug on Linux, not on Mac (still Python 3.8.3).
History
Date User Action Args
2020-11-09 21:31:45KevKeatingsetrecipients: + KevKeating, brett.cannon, ncoghlan, eric.snow, epaine
2020-11-09 21:31:45KevKeatingsetmessageid: <1604957505.31.0.377617625461.issue42273@roundup.psfhosted.org>
2020-11-09 21:31:45KevKeatinglinkissue42273 messages
2020-11-09 21:31:45KevKeatingcreate