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 eric.smith
Recipients baskakov, eric.smith
Date 2021-08-16.00:55:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629075326.48.0.37980744066.issue44922@roundup.psfhosted.org>
In-reply-to
Content
I get a circular import error:

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import codegen
  File "/cygdrive/c/home/eric/codegen.py", line 1, in <module>
    from main import AtomX
  File "/cygdrive/c/home/eric/main.py", line 9, in <module>
    codegen.inheritance_map(AtomX("qwerty"))
AttributeError: partially initialized module 'codegen' has no attribute 'inheritance_map' (most likely due to a circular import)

So I can't reproduce this problem.
History
Date User Action Args
2021-08-16 00:55:26eric.smithsetrecipients: + eric.smith, baskakov
2021-08-16 00:55:26eric.smithsetmessageid: <1629075326.48.0.37980744066.issue44922@roundup.psfhosted.org>
2021-08-16 00:55:26eric.smithlinkissue44922 messages
2021-08-16 00:55:26eric.smithcreate