Skip to content

Commit

Permalink
Example of cyclic import where the cyclic import does not crash python
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Feb 26, 2023
1 parent 84be32f commit ac45dab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/data/messages/c/cyclic-import/bad/bad.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from .bad2 import count_to_two # [cyclic-import]


def count_to_one():
return 1


def count_to_three():
from .bad2 import count_to_two # [cyclic-import]

return count_to_two() + 1

0 comments on commit ac45dab

Please sign in to comment.