Skip to content

Instantly share code, notes, and snippets.

@datagrok
Last active June 6, 2021 14:23
Show Gist options
  • Save datagrok/40bf84d5870c41a77dc6 to your computer and use it in GitHub Desktop.
Save datagrok/40bf84d5870c41a77dc6 to your computer and use it in GitHub Desktop.
Circular imports in Python 2 and Python 3: when are they fatal? When do they work?
@RomanKhudobei
Copy link

Hi. Thanks for this information. I'm learning Django Rest Framework and faced with cyclic import. I was searching a lot but anything didn't work. From your suggestions only last works for me. I don't know why. Maybe I do something wrong. Looks ugly, but working. If you can look at my attempts, I'll be very thankful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment